diff --git a/utils/ldap_lib/ldap_group.go b/utils/ldap_lib/ldap_group.go index 93e234a7..1949a1de 100644 --- a/utils/ldap_lib/ldap_group.go +++ b/utils/ldap_lib/ldap_group.go @@ -41,7 +41,7 @@ func (l *Ldap) Delete(DN string) error { // 查询资源(分组/用户) func (l *Ldap) Search(DN, filter string, attr []string, controls []ldap.Control) (resp *ldap.SearchResult, err error) { if filter == "" { - filter = "(objectClass=*)" + filter = "(objectClass=*)" //查询多个 与(&(objectClass=a)(objectClass=b)) 或 (|(objectClass=a)(objectClass=b)) } searchRequest := ldap.NewSearchRequest( DN,