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 }} {{- if .Values.externalAuth.ldap.enabled }}
LDAP_ENABLED: {{ .Values.externalAuth.ldap.enabled | quote }} LDAP_ENABLED: {{ .Values.externalAuth.ldap.enabled | quote }}
LDAP_HOST: {{ .Values.externalAuth.ldap.host }} 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 }} LDAP_METHOD: {{ .Values.externalAuth.ldap.method }}
{{- with .Values.externalAuth.ldap.base }} {{- if .Values.externalAuth.ldap.tls_no_verify }}
LDAP_BASE: {{ . }} LDAP_TLS_NO_VERIFY: {{ .Values.externalAuth.ldap.tls_no_verify | quote }}
{{- end }} {{- end }}
{{- with .Values.externalAuth.ldap.bind_on }} {{- if .Values.externalAuth.ldap.base }}
LDAP_BIND_ON: {{ . }} LDAP_BASE: {{ .Values.externalAuth.ldap.base }}
{{- end }}
{{- if .Values.externalAuth.ldap.bind_dn }}
LDAP_BIND_DN: {{ .Values.externalAuth.ldap.bind_dn }}
{{- end }} {{- end }}
{{- with .Values.externalAuth.ldap.password }} {{- with .Values.externalAuth.ldap.password }}
LDAP_PASSWORD: {{ . }} LDAP_PASSWORD: {{ . }}

View File

@ -369,10 +369,11 @@ externalAuth:
ldap: ldap:
enabled: false enabled: false
# host: myservice.namespace.svc # host: myservice.namespace.svc
# port: 389 # port: 636
# method: simple_tls # method: simple_tls
# tls_no_verify: true
# base: # base:
# bind_on: # bind_dn:
# password: # password:
# uid: cn # uid: cn
# mail: mail # mail: mail