From f967c7d3413c5141aed2182758cd074e8074564a Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Fri, 9 May 2025 17:42:41 +0100 Subject: [PATCH] fix: explicitly import ldap on config file File "/etc/tower/conf.d/ldap.py", line 2, in ldap.OPT_X_TLS_REQUIRE_CERT: True, ^^^^ NameError: name 'ldap' is not defined --- roles/installer/templates/settings/ldap.py.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/installer/templates/settings/ldap.py.j2 b/roles/installer/templates/settings/ldap.py.j2 index aa50cfcf..8cbf426d 100644 --- a/roles/installer/templates/settings/ldap.py.j2 +++ b/roles/installer/templates/settings/ldap.py.j2 @@ -1,3 +1,5 @@ +import ldap + AUTH_LDAP_GLOBAL_OPTIONS = { {% if ldap_cacert_ca_crt %} ldap.OPT_X_TLS_REQUIRE_CERT: True,