Get ldap bind_dn from credentials secret

This commit is contained in:
Dreaded_X 2025-04-22 01:01:28 +02:00
parent 2a339c6ce5
commit 9068fc25ae
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ ssl_skip_verify = false
# client_key = "/path/to/client.key" # client_key = "/path/to/client.key"
# Search user bind dn # Search user bind dn
bind_dn = "uid=${LDAP_USERNAME},ou=people,dc=huizinga,dc=dev" bind_dn = "${BIND_DN}"
# Search user bind password # Search user bind password
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;""" # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
bind_password = "${LDAP_PASSWORD}" bind_password = "${LDAP_PASSWORD}"

View File

@ -27,10 +27,10 @@ spec:
traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.tls: "true"
envValueFrom: envValueFrom:
LDAP_USERNAME: BIND_DN:
secretKeyRef: secretKeyRef:
name: grafana-lldap-credentials name: grafana-lldap-credentials
key: username key: bind_dn
LDAP_PASSWORD: LDAP_PASSWORD:
secretKeyRef: secretKeyRef:
name: grafana-lldap-credentials name: grafana-lldap-credentials