From 33c5cc6b0bd6a0d95e3f83a42dd7de0c26aaae86 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 15 Nov 2023 17:11:19 +0800 Subject: [PATCH] fix --- server/ldap-admin/internal/logic/getdepartmentslogic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/ldap-admin/internal/logic/getdepartmentslogic.go b/server/ldap-admin/internal/logic/getdepartmentslogic.go index cf5b78dc..b86101b6 100644 --- a/server/ldap-admin/internal/logic/getdepartmentslogic.go +++ b/server/ldap-admin/internal/logic/getdepartmentslogic.go @@ -60,13 +60,14 @@ func (l *GetDepartmentsLogic) GetDepartments(req *types.Request, userinfo *auth. sortNum++ attribute := make(map[string]interface{}) for _, attr := range v.Attributes { + //objectcalss属性特别处理 if attr.Name == "objectClass" { mapObjectClass := make(map[string]struct{}) for _, objectClassItem := range attr.Values { mapObjectClass[objectClassItem] = struct{}{} } attribute[attr.Name] = mapObjectClass - } else { + } else { //普通属性 attribute[attr.Name] = strings.Join(attr.Values, ",") } }