mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 10:58:33 +00:00
support ldap for community version (#5514)
This commit is contained in:
@@ -799,7 +799,7 @@ class CustomLDAPBackend(object):
|
|||||||
return user
|
return user
|
||||||
|
|
||||||
def authenticate(self, ldap_user=None, password=None):
|
def authenticate(self, ldap_user=None, password=None):
|
||||||
if not is_pro_version() or not ENABLE_LDAP:
|
if not ENABLE_LDAP:
|
||||||
return
|
return
|
||||||
|
|
||||||
admin_bind_conn = ldap.initialize(LDAP_SERVER_URL)
|
admin_bind_conn = ldap.initialize(LDAP_SERVER_URL)
|
||||||
|
Reference in New Issue
Block a user