fix
This commit is contained in:
parent
233987634c
commit
67ac4b37a2
|
@ -114,7 +114,8 @@ func (l *GetLdapOrganizationMembersLogic) GetLdapOrganizationMembers(req *types.
|
|||
Status: user.Status,
|
||||
})
|
||||
}
|
||||
//把通讯录中没有的也删除
|
||||
//成员组成员DN数跟查出来的不一致有可能是帐号被物理删除了,则也把帐号从组织中移除
|
||||
if memberCount != len(userList) {
|
||||
for _, memberDN := range memberDNList {
|
||||
if _, ok := mapUser[memberDN]; ok {
|
||||
continue
|
||||
|
@ -124,6 +125,7 @@ func (l *GetLdapOrganizationMembersLogic) GetLdapOrganizationMembers(req *types.
|
|||
logx.Error("移除用户成员失败!:", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetLdapOrganizationMembersRsp{
|
||||
List: list,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user