parent
0db4b7dce9
commit
2e3576f6ca
@ -0,0 +1,21 @@ |
||||
{{ if .Env.ENABLE_LDAP_AUTH | default "0" | toBool }} |
||||
ldap_servers: {{ .Env.LDAP_URL }} |
||||
ldap_search_base: {{ .Env.LDAP_BASE }} |
||||
ldap_bind_dn: {{ .Env.LDAP_BINDDN }} |
||||
ldap_bind_pw: {{ .Env.LDAP_BINDPW }} |
||||
ldap_filter: {{ .Env.LDAP_FILTER | default "uid=%u" }} |
||||
ldap_version: {{ .Env.LDAP_VERSION | default "3" }} |
||||
ldap_auth_method: {{ .Env.LDAP_AUTH_METHOD | default "bind" }} |
||||
{{ if .Env.LDAP_USE_TLS | default "0" | toBool }} |
||||
ldap_tls_key: /config/certs/{{ .Env.XMPP_DOMAIN }}.key |
||||
ldap_tls_cert: /config/certs/{{ .Env.XMPP_DOMAIN }}.crt |
||||
{{ if .Env.LDAP_TLS_CHECK_PEER | default "0" | toBool }} |
||||
ldap_tls_check_peer: yes |
||||
ldap_tls_cacert_file: {{ .Env.LDAP_TLS_CACERT_FILE | default "/etc/ssl/certs/ca-certificates.crt" }} |
||||
ldap_tls_cacert_dir: {{ .Env.LDAP_TLS_CACERT_DIR | default "/etc/ssl/certs" }} |
||||
{{ end }} |
||||
{{ if .Env.LDAP_TLS_CIPHERS }} |
||||
ldap_tls_ciphers: {{ .Env.LDAP_TLS_CIPHERS }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
@ -0,0 +1,2 @@ |
||||
pwcheck_method: saslauthd |
||||
mech_list: PLAIN |
@ -0,0 +1,2 @@ |
||||
#!/usr/bin/with-contenv bash |
||||
exec s6-setuidgid root saslauthd -a ldap -O /etc/saslauthd.conf -c -m /var/run/saslauthd -n 5 -d |
Loading…
Reference in new issue