mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
fix ldap login multi base_dn (#6360)
This commit is contained in:
@@ -924,7 +924,7 @@ class CustomLDAPBackend(object):
|
||||
continue
|
||||
try:
|
||||
result_data = admin_bind.search_s(base, ldap.SCOPE_SUBTREE, filterstr)
|
||||
if result_data is not None:
|
||||
if result_data:
|
||||
break
|
||||
except Exception as e:
|
||||
raise Exception('ldap user search failed: %s' % e)
|
||||
|
Reference in New Issue
Block a user