From cdcbd3731ca089e522109168a7ba2b9d9c9a1436 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Fri, 22 Sep 2017 18:35:52 +0200 Subject: [PATCH] add dn & dnpass --- Dockerfile | 2 +- rootfs/etc/confd/templates/dovecot-ldap.conf.ext.tmpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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"}}