下面展示一些 内联代码片
。
version: '3'
services:
openldap:
image: 'osixia/openldap:stable'
container_name: 'ldap-server'
restart: always
privileged: true
ports:
- '389:389'
- '636:636'
environment:
- TZ=Asia/Shanghai
- LDAP_ORGANISATION=163 ##企业邮箱,这里以163邮箱为例
- LDAP_DOMAIN=163.com ##建议使用企业邮箱后缀
- LDAP_ADMIN_PASSWORD=123456789 ##管理员密码
- LDAP_CONFIG_PASSWORD=123456789 ##管理员密码
volumes:
- ldap_data:/var/lib/ldap
- ldap_conf:/etc/ldap
- ldap_db:/container
logging:
driver: 'json-file'
options:
max-size: '100m'
max-file: '5'
ldapadmin:
image: 'osixia/phpldapadmin:stable'
container_name: 'ldapadmin'
restart: always
privileged: true
ports:
- '8080:80'
depends_on:
- openldap
environment:
- TZ=Asia/Shanghai
#- PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt
#- PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key
- PHPLDAPADMIN_HTTPS=false
- PHPLDAPADMIN_LDAP_HOSTS=ldap-server
volumes:
- ldap_certifates:/container/service/phpldapadmin/assets/apache2/certs
- ldap_php:/container/service/phpldapadmin/assets/config
logging:
driver: 'json-file'
options:
max-size: '100m'
max-file: '5'
self-service-password:
image: 'tiredofit/self-service-password:5.2.3'
container_name: 'self-service-password'
restart: always
ports:
- '80:80'
environment:
- LDAP_SERVER=ldap://11.11.11.11:389 ##建议使用虚拟机IP地址
- LDAP_BINDDN=cn=admin,dc=163,dc=com ##管理员DN
- LDAP_BINDPASS=123456789
- LDAP_BASE_SEARCH=ou=users,dc=163,dc=com ##用户检索目录
- MAIL_FROM=dongxiansheng@163.com ##修改密码时所用的邮件发送人
- SMTP_DEBUG=0
- SMTP_HOST=smtp.163.com ##邮件传送协议服务器
- SMTP_USER=dongxiansheng@163.com ##同MAIL_FROM
- SMTP_PASS=xoNvOf51v ##开启POP3/SMTP/IMAP,授权码是用于登录第三方邮件客户端的专用密码
- SMTP_PORT=465 ##云主机禁用了25,所以这里用的465
- SMTP_SECURE_TYPE=ssl
- SMTP_AUTH_ON=true
- PASSWORD_MIN_SPECIAL=1
- PASSWORD_MIN_LENGTH=8
- PASSWORD_MAX_LENGTH=12
- NOTIFY_ON_CHANGE=true
- MAIL_CONTENTTYPE=text/html
- SMTP_TIMEOUT=60
- PASSWORD_MIN_DIGIT=1
- PASSWORD_SHOW_POLICY=always
volumes:
- password_data:/www/ssp
- password_logs:/www/logs
logging:
driver: 'json-file'
options:
max-size: '100m'
max-file: '5'
volumes:
ldap_data: {}
ldap_conf: {}
ldap_db: {}
ldap_certifates: {}
ldap_php: {}
password_data: {}
password_logs: {}
修改邮箱返回地址为空
volumes/root_password_data/_data/conf/config.inc.php
$reset_url = “http://11.11.11.11/index.php”;