openldap安装配置
//
# 使用docker-compose部署
- 拉取镜像
docker pull osixia/phpldapadmin:latest
docker pull osixia/openldap:latest
mkdir /opt/openldap && cd /opt/openldap
1
2
3
2
3
- 配置yml
vi openldap-docker-compose.yml
version: "3"
services:
openldap:
restart: always
container_name: openldap
image: "osixia/openldap:latest"
environment:
LDAP_ORGANISATION: "yfklife"
LDAP_DOMAIN: "yfklife.cn"
LDAP_ADMIN_PASSWORD: "yfk123456"
LDAP_CONFIG_PASSWORD: "yfk123456"
volumes:
- /opt/ldap/data:/var/lib/ldap
- /opt/ldap/config:/etc/ldap/slapd.d
ports:
- '389:389'
phpldapadmin:
restart: always
container_name: phpldapadmin
image: "osixia/phpldapadmin:latest"
environment:
PHPLDAPADMIN_HTTPS: "false"
PHPLDAPADMIN_LDAP_HOSTS: openldap
depends_on:
- openldap
links:
- "openldap:openldap"
ports:
- '28080:80'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
docker-compose -f openldap-docker-compose.yml up -d
这个28080端口使用nginx代理和gitlab或jenkins一样,proxy_pass拷贝粘贴就好
访问: http://ip:28080/
账号:cn=admin,dc=yfklife,dc=cn
密码:yfk123456
# 创建Ldap User
# 创建OU组织
- 查看
# 创建用户
- 登录验证
- 登录用户
//
如果此文章对您有帮助,点击 -->> 请博主喝咖啡 (opens new window)
上次更新: 2022/01/24, 23:01:25