From e92a00ca199ab4f64acc39a245f354164ce8f13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20N=C3=B6the?= Date: Sat, 14 Mar 2020 13:26:58 +0100 Subject: [PATCH] ldap: fix anonymous binds Before, ldap_bind_dn: ldab_bind_pw: was inserted into the saslauthd.conf, which made anonymous binds impossible. --- prosody/rootfs/defaults/saslauthd.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prosody/rootfs/defaults/saslauthd.conf b/prosody/rootfs/defaults/saslauthd.conf index 9e6afdb..ffcc211 100644 --- a/prosody/rootfs/defaults/saslauthd.conf +++ b/prosody/rootfs/defaults/saslauthd.conf @@ -1,8 +1,10 @@ {{ if eq (.Env.AUTH_TYPE | default "internal") "ldap" }} ldap_servers: {{ .Env.LDAP_URL }} ldap_search_base: {{ .Env.LDAP_BASE }} +{{ if .Env.LDAP_BINDDN }} ldap_bind_dn: {{ .Env.LDAP_BINDDN }} ldap_bind_pw: {{ .Env.LDAP_BINDPW }} +{{ end }} ldap_filter: {{ .Env.LDAP_FILTER | default "uid=%u" }} ldap_version: {{ .Env.LDAP_VERSION | default "3" }} ldap_auth_method: {{ .Env.LDAP_AUTH_METHOD | default "bind" }}