3
0
mirror of https://github.com/mastodon/chart synced 2024-10-22 19:02:44 +00:00

Fix and improve LDAP configuration (#3)

Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
Alexander "Ananace" Olofsson 2023-02-17 22:13:19 +01:00 committed by GitHub
parent 9806bbc8b1
commit 4fda7eea97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View File

@ -288,13 +288,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 }}
{{- with .Values.externalAuth.ldap.base }}
LDAP_BASE: {{ . }}
{{- if .Values.externalAuth.ldap.tls_no_verify }}
LDAP_TLS_NO_VERIFY: {{ .Values.externalAuth.ldap.tls_no_verify | quote }}
{{- end }}
{{- with .Values.externalAuth.ldap.bind_on }}
LDAP_BIND_ON: {{ . }}
{{- if .Values.externalAuth.ldap.base }}
LDAP_BASE: {{ .Values.externalAuth.ldap.base }}
{{- end }}
{{- if .Values.externalAuth.ldap.bind_dn }}
LDAP_BIND_DN: {{ .Values.externalAuth.ldap.bind_dn }}
{{- end }}
{{- with .Values.externalAuth.ldap.password }}
LDAP_PASSWORD: {{ . }}

View File

@ -369,10 +369,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