diff --git a/apps/jumpserver/settings.py b/apps/jumpserver/settings.py index b75b73ec9..af72292f7 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -330,7 +330,7 @@ AUTH_LDAP_GROUP_SEARCH = LDAPSearch( AUTH_LDAP_GROUP_SEARCH_OU, ldap.SCOPE_SUBTREE, AUTH_LDAP_GROUP_SEARCH_FILTER ) AUTH_LDAP_CONNECTION_OPTIONS = { - ldap.TIMEOUT: 5 + ldap.OPT_TIMEOUT: 5 } AUTH_LDAP_ALWAYS_UPDATE_USER = True AUTH_LDAP_BACKEND = 'django_auth_ldap.backend.LDAPBackend'