This commit is contained in:
laodaming
2023-11-15 15:16:14 +08:00
parent 2fa8955aa4
commit da2cbb5c4a
5 changed files with 33 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ func (l *GetDepartmentsLogic) GetDepartments(req *types.Request, userinfo *auth.
searchRequest := ldap.NewSearchRequest(
l.svcCtx.Config.Ldap.BaseDN,
ldap.ScopeWholeSubtree, ldap.NeverDerefAliases, 0, 0, false,
"(objectClass=*)",
"(objectClass=*)", //所有object
[]string{ /*"cn", "sn", "givenName", "mail", "telephoneNumber", "department", "title"*/ },
nil,
)

View File

@@ -70,7 +70,7 @@ func (l *SaveApiLogic) SaveApi(req *types.SaveApiReq, userinfo *auth.UserInfo) (
Path: &req.Path,
Category: &req.Category,
Remark: &req.Remark,
Creator: &req.Creator,
//Creator: &req.Creator,
})
}
if err1 != nil {