From edfd8f252977cc08564038da5999ef6d1a110673 Mon Sep 17 00:00:00 2001 From: "Erik E. Lorenz" Date: Thu, 19 Mar 2020 18:43:00 +0100 Subject: [PATCH] ldap: actually fix anonymous binds (Fixes #234) --- prosody/rootfs/defaults/saslauthd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosody/rootfs/defaults/saslauthd.conf b/prosody/rootfs/defaults/saslauthd.conf index ffcc211..4005ce0 100644 --- a/prosody/rootfs/defaults/saslauthd.conf +++ b/prosody/rootfs/defaults/saslauthd.conf @@ -1,7 +1,7 @@ {{ if eq (.Env.AUTH_TYPE | default "internal") "ldap" }} ldap_servers: {{ .Env.LDAP_URL }} ldap_search_base: {{ .Env.LDAP_BASE }} -{{ if .Env.LDAP_BINDDN }} +{{ if .Env.LDAP_BINDDN | default "" | toBool }} ldap_bind_dn: {{ .Env.LDAP_BINDDN }} ldap_bind_pw: {{ .Env.LDAP_BINDPW }} {{ end }}