fix
This commit is contained in:
parent
0862a8e652
commit
254b32eec4
|
@ -55,13 +55,14 @@ func (l *GetLdapOrganizationMembersLogic) GetLdapOrganizationMembers(req *types.
|
|||
logx.Error(err)
|
||||
return resp.SetStatusWithMessage(basic.CodeServiceErr, "查询ldap组织成员错误,"+err.Error())
|
||||
}
|
||||
//初始化filter
|
||||
//遍历成员提取cn用于从用户基础组中获取用户信息列表
|
||||
filterBuilder := strings.Builder{}
|
||||
memberCount := 0
|
||||
for _, entry := range result.Entries {
|
||||
if entry.DN != req.OrganizationDN {
|
||||
continue
|
||||
}
|
||||
//查到用户信息了
|
||||
for _, attr := range entry.Attributes {
|
||||
if attr.Name != "uniqueMember" {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user