diff --git a/server/ldap-admin/internal/logic/getldaporganizationmemberslogic.go b/server/ldap-admin/internal/logic/getldaporganizationmemberslogic.go index 0677cc0e..8b3ae1d7 100644 --- a/server/ldap-admin/internal/logic/getldaporganizationmemberslogic.go +++ b/server/ldap-admin/internal/logic/getldaporganizationmemberslogic.go @@ -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