mirror of
https://github.com/mastodon/chart
synced 2025-05-18 04:53:21 +00:00
Fix and improve LDAP configuration
With these changes, LDAP auth should be possible to set up for more people without needing to manually edit the resulting configmap.
This commit is contained in:
parent
d74c7876c2
commit
a0d4c4fcbc
|
@ -281,13 +281,16 @@ data:
|
|||
{{- if .Values.externalAuth.ldap.enabled }}
|
||||
LDAP_ENABLED: {{ .Values.externalAuth.ldap.enabled | quote }}
|
||||
LDAP_HOST: {{ .Values.externalAuth.ldap.host }}
|
||||
LDAP_PORT: {{ .Values.externalAuth.ldap.port }}
|
||||
LDAP_PORT: {{ .Values.externalAuth.ldap.port | quote }}
|
||||
LDAP_METHOD: {{ .Values.externalAuth.ldap.method }}
|
||||
{{- if .Values.externalAuth.ldap.tls_no_verify }}
|
||||
LDAP_TLS_NO_VERIFY: {{ .Values.externalAuth.ldap.tls_no_verify | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.externalAuth.ldap.base }}
|
||||
LDAP_BASE: {{ .Values.externalAuth.ldap.base }}
|
||||
{{- end }}
|
||||
{{- if .Values.externalAuth.ldap.bind_on }}
|
||||
LDAP_BIND_ON: {{ .Values.externalAuth.ldap.bind_on }}
|
||||
{{- if .Values.externalAuth.ldap.bind_dn }}
|
||||
LDAP_BIND_DN: {{ .Values.externalAuth.ldap.bind_dn }}
|
||||
{{- end }}
|
||||
{{- if .Values.externalAuth.ldap.password }}
|
||||
LDAP_PASSWORD: {{ .Values.externalAuth.ldap.password }}
|
||||
|
|
|
@ -265,10 +265,11 @@ externalAuth:
|
|||
ldap:
|
||||
enabled: false
|
||||
# host: myservice.namespace.svc
|
||||
# port: 389
|
||||
# port: 636
|
||||
# method: simple_tls
|
||||
# tls_no_verify: true
|
||||
# base:
|
||||
# bind_on:
|
||||
# bind_dn:
|
||||
# password:
|
||||
# uid: cn
|
||||
# mail: mail
|
||||
|
|
Loading…
Reference in New Issue
Block a user