Merge pull request #955 from doanminhtu/tudoan/fix-ldap-password-secret-usage

Fix ldap bind password secret usage: ldap_password_secret
This commit is contained in:
Shane McDonald
2022-06-26 10:45:26 -04:00
committed by GitHub

View File

@@ -4,3 +4,8 @@ AUTH_LDAP_GLOBAL_OPTIONS = {
ldap.OPT_X_TLS_CACERTFILE: "/etc/openldap/certs/ldap-ca.crt"
{% endif %}
}
# Load LDAP BIND password from Kubernetes secret if define
{% if ldap_password_secret -%}
AUTH_LDAP_BIND_PASSWORD = "{{ ldap_bind_password }}"
{% endif %}