prosody/rootfs/defaults/saslauthd.conf: Remove default values from conditionals

pull/1798/head
le-firehawk 6 months ago
parent 9fadec4fdf
commit eee1330cc8
No known key found for this signature in database
  1. 8
      prosody/rootfs/defaults/saslauthd.conf

@ -10,7 +10,7 @@ ldap_search_base: {{ .Env.LDAP_BASE }}
ldap_version: {{ .Env.LDAP_VERSION | default "3" }}
ldap_auth_method: {{ .Env.LDAP_AUTH_METHOD | default "bind" }}
{{ if .Env.LDAP_BINDDN | default "" }}
{{ if .Env.LDAP_BINDDN }}
ldap_bind_dn: {{ .Env.LDAP_BINDDN }}
ldap_bind_pw: {{ .Env.LDAP_BINDPW | default "MISSING PASSWORD" }}
{{ end }}
@ -18,14 +18,14 @@ ldap_bind_pw: {{ .Env.LDAP_BINDPW | default "MISSING PASSWORD" }}
ldap_filter: {{ .Env.LDAP_FILTER | default "uid=%u" }}
ldap_group_attr: {{ .Env.LDAP_GROUP_ATTR | default "uniqueMember" }}
{{ if .Env.LDAP_GROUP_DN | default "" }}
{{ if .Env.LDAP_GROUP_DN }}
ldap_group_dn: {{ .Env.LDAP_GROUP_DN }}
ldap_group_match_method: {{ .Env.LDAP_GROUP_MATCH_METHOD | default "attr" }}
{{ end }}
{{ if .Env.LDAP_GROUP_SEARCH_BASE | default "" }}
{{ if .Env.LDAP_GROUP_SEARCH_BASE }}
ldap_group_search_base: {{ .Env.LDAP_GROUP_SEARCH_BASE | default .Env.LDAP_BASE }}
{{ end }}
{{ if .Env.LDAP_GROUP_FILTER | default "" }}
{{ if .Env.LDAP_GROUP_FILTER }}
ldap_group_filter: {{ .Env.LDAP_GROUP_FILTER }}
{{ end }}

Loading…
Cancel
Save