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