diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-06-14 11:48:53 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-06-14 11:48:53 +0200 |
commit | 3534ba1a19844e55982cb773599671d2fdb4be02 (patch) | |
tree | 0a523f5c5c5c00c7d31d75c87609afef2fe8c65e /consul/configuration/email/postfix/ldap-virtual-domains.cf.tpl | |
parent | 9b7fd2fc0ac6f11e47a9355ba6ec7db0f0e42dbe (diff) | |
download | infrastructure-3534ba1a19844e55982cb773599671d2fdb4be02.tar.gz infrastructure-3534ba1a19844e55982cb773599671d2fdb4be02.zip |
Read domain name from LDAP
Diffstat (limited to 'consul/configuration/email/postfix/ldap-virtual-domains.cf.tpl')
-rw-r--r-- | consul/configuration/email/postfix/ldap-virtual-domains.cf.tpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/consul/configuration/email/postfix/ldap-virtual-domains.cf.tpl b/consul/configuration/email/postfix/ldap-virtual-domains.cf.tpl new file mode 100644 index 0000000..e013953 --- /dev/null +++ b/consul/configuration/email/postfix/ldap-virtual-domains.cf.tpl @@ -0,0 +1,12 @@ +bind = yes +bind_dn = {{ key "secrets/email/postfix/ldap_binddn" | trimSpace }} +bind_pw = {{ key "secrets/email/postfix/ldap_bindpwd" | trimSpace }} +version = 3 +timeout = 20 +start_tls = no +tls_require_cert = no +server_host = ldap://bottin2.service.2.cluster.deuxfleurs.fr +scope = sub +search_base = ou=domains,ou=groups,dc=deuxfleurs,dc=fr +query_filter = (&(objectclass=dNSDomain)(domain=%s)) +result_attribute = domain |