fix: 修复LDAP用户登录(未找到)时循环调用问题

This commit is contained in:
Bai
2020-12-16 11:59:46 +08:00
committed by Jiangjie.Bai
parent 3aed4955c8
commit b3642f3ff4
2 changed files with 6 additions and 4 deletions

View File

@@ -186,7 +186,6 @@ class LDAPServerUtil(object):
user[attr] = value
return user
@timeit
def user_entries_to_dict(self, user_entries):
users = []
for user_entry in user_entries:
@@ -194,7 +193,6 @@ class LDAPServerUtil(object):
users.append(user)
return users
@timeit
def search_for_user_dn(self, username):
user_entries = self.search_user_entries(search_users=[username])
if len(user_entries) == 1: