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