From 4c49cad744978262e4f84e7b1801bf9d468d4770 Mon Sep 17 00:00:00 2001 From: Nicolas Boufidjeline Date: Wed, 11 Jul 2018 16:50:02 +0200 Subject: [PATCH] Add auth-ldap-user-dn-template in ldap_config.py --- configuration/ldap_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration/ldap_config.py b/configuration/ldap_config.py index c7e0d3b..51eed08 100644 --- a/configuration/ldap_config.py +++ b/configuration/ldap_config.py @@ -15,6 +15,9 @@ AUTH_LDAP_CONNECTION_OPTIONS = { AUTH_LDAP_BIND_DN = os.environ.get('AUTH_LDAP_BIND_DN', '') AUTH_LDAP_BIND_PASSWORD = os.environ.get('AUTH_LDAP_BIND_PASSWORD', '') +# Set AUTH_LDAP_USER_DN_TEMPLATE +AUTH_LDAP_USER_DN_TEMPLATE = os.environ.get('AUTH_LDAP_USER_DN_TEMPLATE', '') + # 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: # ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)