We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f0545 commit bed40b0Copy full SHA for bed40b0
configuration/ldap_config.py
@@ -37,6 +37,9 @@ def import_group_type(group_type_name):
37
# Set a string template that describes any user’s distinguished name based on the username.
38
AUTH_LDAP_USER_DN_TEMPLATE = os.environ.get('AUTH_LDAP_USER_DN_TEMPLATE', None)
39
40
+# Enable STARTTLS for ldap authentication.
41
+AUTH_LDAP_START_TLS = os.environ.get('AUTH_LDAP_START_TLS', 'False').lower() == 'true'
42
+
43
# Include this setting if you want to ignore certificate errors. This might be needed to accept a self-signed cert.
44
# Note that this is a NetBox-specific setting which sets:
45
# ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)
0 commit comments