1
0
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:
欢乐马
2024-07-17 10:15:32 +08:00
committed by GitHub
parent 9243e137b7
commit 2ef646db02

View File

@@ -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)