Unverified Commit 40ce9256 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3274 from jumpserver/v52

V52
parents 864bcb27 a6d87f6d
......@@ -93,6 +93,8 @@ class LDAPUtil:
user_item = self._ldap_entry_to_user_item(entry)
user = self.get_user_by_username(user_item['username'])
user_item['existing'] = bool(user)
if user_item in user_items:
continue
user_items.append(user_item)
return user_items
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment