소스 검색

ldap: actually fix anonymous binds (Fixes #234)

Erik E. Lorenz 5 년 전
부모
커밋
edfd8f2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      prosody/rootfs/defaults/saslauthd.conf

+ 1 - 1
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 }}