File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,16 @@ def _import_group_type(group_type_name):
49
49
# ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)
50
50
LDAP_IGNORE_CERT_ERRORS = environ .get ('LDAP_IGNORE_CERT_ERRORS' , 'False' ).lower () == 'true'
51
51
52
+ # Include this setting if you want to validate the LDAP server certificates against a CA certificate directory on your server
53
+ # Note that this is a NetBox-specific setting which sets:
54
+ # ldap.set_option(ldap.OPT_X_TLS_CACERTDIR, LDAP_CA_CERT_DIR)
55
+ LDAP_CA_CERT_DIR = environ .get ('LDAP_CA_CERT_DIR' , None )
56
+
57
+ # Include this setting if you want to validate the LDAP server certificates against your own CA.
58
+ # Note that this is a NetBox-specific setting which sets:
59
+ # ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, LDAP_CA_CERT_FILE)
60
+ LDAP_CA_CERT_FILE = environ .get ('LDAP_CA_CERT_FILE' , None )
61
+
52
62
AUTH_LDAP_USER_SEARCH_BASEDN = environ .get ('AUTH_LDAP_USER_SEARCH_BASEDN' , '' )
53
63
AUTH_LDAP_USER_SEARCH_ATTR = environ .get ('AUTH_LDAP_USER_SEARCH_ATTR' , 'sAMAccountName' )
54
64
AUTH_LDAP_USER_SEARCH = LDAPSearch (
You can’t perform that action at this time.
0 commit comments