From cd6b1f7b7fe65904b1c2af9798ddc79373cbf707 Mon Sep 17 00:00:00 2001 From: mbchristoff <49072643+mbchristoff@users.noreply.github.com> Date: Mon, 20 Apr 2020 15:04:43 +0200 Subject: [PATCH] Set AUTH_LDAP_START_TLS as boolean --- configuration/ldap_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/ldap_config.py b/configuration/ldap_config.py index 63d06f1..19277e1 100644 --- a/configuration/ldap_config.py +++ b/configuration/ldap_config.py @@ -38,7 +38,7 @@ AUTH_LDAP_BIND_PASSWORD = os.environ.get('AUTH_LDAP_BIND_PASSWORD', read_secret( AUTH_LDAP_USER_DN_TEMPLATE = os.environ.get('AUTH_LDAP_USER_DN_TEMPLATE', None) # Enable STARTTLS for ldap authentication. -AUTH_LDAP_START_TLS = os.environ.get('AUTH_LDAP_START_TLS', '') +AUTH_LDAP_START_TLS = os.environ.get('AUTH_LDAP_START_TLS', 'False').lower() == 'true' # Include this setting if you want to ignore certificate errors. This might be needed to accept a self-signed cert. # Note that this is a NetBox-specific setting which sets: