File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ set -eu
1414ulimit -n $LDAP_NOFILE
1515
1616echo ' Replacing values with ENV values'
17+ sed -i " s|{{ LDAP_ADMIN_PASSWORD }}|${LDAP_ADMIN_PASSWORD} |" /etc/saslauthd.conf
1718sed -i " s|{{ LDAP_AUTH_BASE_DN }}|${LDAP_AUTH_BASE_DN} |" /etc/saslauthd.conf
1819sed -i " s|{{ LDAP_BASE_DN }}|${LDAP_BASE_DN} |" /etc/saslauthd.conf
1920sed -i " s|{{ LDAP_AUTH_BASE_DN }}|${LDAP_AUTH_BASE_DN} |" /etc/openldap/slapd.conf
@@ -26,6 +27,7 @@ echo 'Checking if replacement worked'
2627set -x
2728grep -q -F " ldap_bind_dn: cn=admin,${LDAP_BASE_DN} " /etc/saslauthd.conf
2829grep -q -F " ldap_search_base: ${LDAP_AUTH_BASE_DN} " /etc/saslauthd.conf
30+ grep -q -F " ldap_bind_pw: ${LDAP_ADMIN_PASSWORD} " /etc/saslauthd.conf
2931grep -q -F " ,${LDAP_AUTH_BASE_DN} " /etc/openldap/slapd.conf
3032grep -q -F " suffix \" ${LDAP_BASE_DN} \" " /etc/openldap/slapd.conf
3133grep -q -F " ${LDAP_CONFIG_PASSWORD} " /etc/openldap/slapd.conf
3537
3638echo ' Starting...'
3739horust --unsuccessful-exit-finished-failed
40+ ldap_bind_pw: {{ LDAP_ADMIN_PASSWORD }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ldap_version: 3
55ldap_auth_method: bind
66ldap_mech: SRP
77ldap_bind_dn: cn=admin,{{ LDAP_BASE_DN }}
8- ldap_bind_pw: admin
8+ ldap_bind_pw: {{ LDAP_ADMIN_PASSWORD }}
99ldap_search_base: {{ LDAP_AUTH_BASE_DN }}
1010ldap_scope: sub
1111ldap_filter: (&(mail=%u@%r)(objectclass=PostfixBookMailAccount)(mailEnabled=TRUE))
You can’t perform that action at this time.
0 commit comments