Add the domainname from container to vhost
This commit is contained in:
parent
0cf8895d36
commit
eab0efb4d4
|
@ -103,9 +103,8 @@ if [ "$ENABLE_LDAP" = 1 ]; then
|
||||||
-e 's|^dnpass\s*=.*|dnpass = '${LDAP_BIND_PW:="admin"}'|g' \
|
-e 's|^dnpass\s*=.*|dnpass = '${LDAP_BIND_PW:="admin"}'|g' \
|
||||||
/etc/dovecot/dovecot-ldap.conf.ext
|
/etc/dovecot/dovecot-ldap.conf.ext
|
||||||
|
|
||||||
# Add base domain to vhost
|
# Add domainname to vhost.
|
||||||
# TODO get domain from LDAP_SEARCH_BASE like dc=foo,dc=bar ==> foo.bar
|
echo $(domainname) >> /tmp/vhost.tmp
|
||||||
#echo ${domain} >> /tmp/vhost.tmp
|
|
||||||
|
|
||||||
echo "Enabling dovecot LDAP authentification"
|
echo "Enabling dovecot LDAP authentification"
|
||||||
sed -i -e '/\!include auth-ldap\.conf\.ext/s/^#//' /etc/dovecot/conf.d/10-auth.conf
|
sed -i -e '/\!include auth-ldap\.conf\.ext/s/^#//' /etc/dovecot/conf.d/10-auth.conf
|
||||||
|
|
Loading…
Reference in New Issue