mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
File "/etc/tower/conf.d/ldap.py", line 2, in <module> ldap.OPT_X_TLS_REQUIRE_CERT: True, ^^^^ NameError: name 'ldap' is not defined
14 lines
344 B
Django/Jinja
14 lines
344 B
Django/Jinja
import ldap
|
|
|
|
AUTH_LDAP_GLOBAL_OPTIONS = {
|
|
{% if ldap_cacert_ca_crt %}
|
|
ldap.OPT_X_TLS_REQUIRE_CERT: True,
|
|
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 %}
|