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