diff --git a/apps/openldap/2.6.8/data.yml b/apps/openldap/2.6.8/data.yml new file mode 100644 index 00000000..fc035526 --- /dev/null +++ b/apps/openldap/2.6.8/data.yml @@ -0,0 +1,33 @@ +additionalProperties: + formFields: + - envKey: LDAP_ROOT + default: dc=example,dc=org + labelEn: LDAP baseDN + labelZh: LDAP baseDN + random: false + required: true + type: text + - envKey: LDAP_ADMIN_USERNAME + default: admin + labelEn: LDAP admin username + labelZh: LDAP 管理员用户名 + random: false + required: true + rule: paramCommon + type: text + - envKey: LDAP_ADMIN_PASSWORD + default: adminpassword + labelEn: LDAP admin password + labelZh: LDAP 管理员密码 + random: true + required: true + rule: paramComplexity + type: password + - envKey: LDAP_PORT + default: 1389 + edit: true + labelEn: LDAP listening port + labelZh: LDAP 监听端口 + required: true + rule: paramPort + type: number \ No newline at end of file diff --git a/apps/openldap/2.6.8/docker-compose.yml b/apps/openldap/2.6.8/docker-compose.yml new file mode 100644 index 00000000..e602dea6 --- /dev/null +++ b/apps/openldap/2.6.8/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3' +services: + openldap: + image: bitnami/openldap:2.6.8 + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - ${LDAP_PORT}:1389 + environment: + LDAP_ROOT: ${LDAP_ROOT} + LDAP_ADMIN_USERNAME: ${LDAP_ADMIN_USERNAME} + LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD} + volumes: + - './data:/bitnami/openldap' + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/apps/openldap/2.6.8/scripts/init.sh b/apps/openldap/2.6.8/scripts/init.sh new file mode 100644 index 00000000..e88dbaeb --- /dev/null +++ b/apps/openldap/2.6.8/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +DIR="./data/" + +if [ -d "$DIR" ]; then + echo "目录 $DIR 已存在" +else + echo "目录 $DIR 不存在,正在创建..." + mkdir -p "$DIR" + if [ $? -eq 0 ]; then + echo "目录 $DIR 创建成功" + else + echo "目录 $DIR 创建失败" + fi +fi + +chown -R 1001:1001 $DIR \ No newline at end of file diff --git a/apps/openldap/2.6.8/scripts/upgrade.sh b/apps/openldap/2.6.8/scripts/upgrade.sh new file mode 100644 index 00000000..e88dbaeb --- /dev/null +++ b/apps/openldap/2.6.8/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +DIR="./data/" + +if [ -d "$DIR" ]; then + echo "目录 $DIR 已存在" +else + echo "目录 $DIR 不存在,正在创建..." + mkdir -p "$DIR" + if [ $? -eq 0 ]; then + echo "目录 $DIR 创建成功" + else + echo "目录 $DIR 创建失败" + fi +fi + +chown -R 1001:1001 $DIR \ No newline at end of file diff --git a/apps/openldap/README.md b/apps/openldap/README.md new file mode 100644 index 00000000..5789b182 --- /dev/null +++ b/apps/openldap/README.md @@ -0,0 +1,26 @@ +# OpenLDAP + +[OpenLDAP](https://openldap.org/) 是轻型目录访问协议(Lightweight Directory Access Protocol,LDAP)的自由和开源的实现。 + +该应用使用了 Bitnami 构建的 OpenLDAP Docker 镜像,通过该应用可以快速部署 OpenLDAP 服务。 + +## 相关链接 + +- OpenLDAP 官网: +- Bitnami OpenLDAP 构建仓库: + +## License + +Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/apps/openldap/data.yml b/apps/openldap/data.yml new file mode 100644 index 00000000..bf111ccf --- /dev/null +++ b/apps/openldap/data.yml @@ -0,0 +1,18 @@ +name: OpenLDAP +tags: + - 数据库 +title: OpenLDAP +description: OpenLDAP 是一个开源的 LDAP(Lightweight Directory Access Protocol) 服务软件。 +additionalProperties: + key: openldap + name: OpenLDAP + tags: + - Database + shortDescZh: OpenLDAP 是一个开源的 LDAP(Lightweight Directory Access Protocol) 服务软件。 + shortDescEn: OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol. + type: database + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://openldap.org/ + document: https://hub.docker.com/r/bitnami/openldap diff --git a/apps/openldap/logo.png b/apps/openldap/logo.png new file mode 100644 index 00000000..db06da25 Binary files /dev/null and b/apps/openldap/logo.png differ