3
0
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:
Alexander Olofsson 2022-11-27 22:39:39 +01:00
parent d74c7876c2
commit a0d4c4fcbc
No known key found for this signature in database
GPG Key ID: D439C9470CB04C73
2 changed files with 9 additions and 5 deletions

View File

@ -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 }}

View File

@ -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