diff --git a/Dockerfile b/Dockerfile index 755b5f1..b549851 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM registry.gitlab.com/thallian/docker-confd-env:master -RUN apk add --no-cache dovecot dovecot-ldap libressl ssmtp +RUN apk add --no-cache dovecot dovecot-ldap libressl ssmtp ca-certificates RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ dovecot-pigeonhole-plugin-ldap diff --git a/rootfs/etc/confd/templates/dovecot-ldap.conf.ext.tmpl b/rootfs/etc/confd/templates/dovecot-ldap.conf.ext.tmpl index 0b32820..751b3ab 100644 --- a/rootfs/etc/confd/templates/dovecot-ldap.conf.ext.tmpl +++ b/rootfs/etc/confd/templates/dovecot-ldap.conf.ext.tmpl @@ -1,4 +1,6 @@ uris = {{getenv "LDAP_URI"}} +dn = {{getenv "LDAP_BIND_DN"}} +dnpass = {{getenv "LDAP_BIND_PASSWORD"}} tls = {{getenv "LDAP_USE_TLS" "yes"}} auth_bind = yes base = {{getenv "LDAP_BASE_DN"}}