ldap自助密码修改-self-service-password
version: "3" services: self-service-password: container_name: self-service-password image: tiredofit/self-service-password:latest restart: always ports: - 8389:80 environment: - LDAP_SERVER=ldap://x.x.x.x:389 #ldap服务器的地址和端口 - LDAP_BINDDN=cn=admin,dc=xxx,dc=com,dc=cn - LDAP_BINDPASS=xxxxxx #admin 的密码- LDAP_BASE_SEARCH=dc=xxx,dc=com,dc=cn - LDAP_LOGIN_ATTRIBUTE=cn - MAIL_FROM=xxx@a.com.cn - SMTP_DEBUG=0 - SMTP_HOST=smtp.exmail.qq.com - SMTP_USER=xxx@a.com.cn - SMTP_PASS=xxxxx- SMTP_PORT=465 - SMTP_SECURE_TYPE=ssl - SMTP_AUTH_ON=true - NOTIFY_ON_CHANGE=true - PASSWORD_HASH=MD5 - PASSWORD_MIN_LENGTH=8 #密码位数 - PASSWORD_MAX_LENGTH=30 #密码最大长度 - PASSWORD_MIN_UPPERCASE=1 #至少1个大写 - PASSWORD_MIN_LOWERCASE=1 #至少1个小鞋 - PASSWORD_MIN_DIGIT=1 #至少1个数字 - PASSWORD_MIN_SPECIAL=1 #至少1个特殊字符 - PASSWORD_NO_REUSE=true - PASSWORD_SPECIAL_CHARACTERS=^a-zA-Z0-9 #指定除 a-zA-A0-9以外的都为特殊字符 - PASSWORD_DIFFERENT_LOGIN=true - PASSWORD_SHOW_POLICY_POSITION=above #提示位置 - PASSWORD_SHOW_POLICY=always #一直显示密码策略提示 - DEFAULT_ACTION=change - BACKGROUND_IMAGE=images/oa.jpeg #指定背景图 - LOGO=images/logo.png #更换logo volumes: - /etc/localtime:/etc/localtime - /data/openldap/self-service-password/htdocs:/www/ssp - /data/openldap/self-service-password/logs:/www/logs deploy: resources: limits: memory: 2G reservations: memory: 512M
上面的配置保存到文件:docker-compose.yaml
#docker-compose run -d --build
http://x.x.x.x:8389 #使用地址访问即可