Skip to content

Commit

Permalink
Remove sizeLimit on query groups.
Browse files Browse the repository at this point in the history
Without this, the code fails, because the search results
exceeds the limit of 1 record.
  • Loading branch information
evrardjp-cagip committed Jan 13, 2025
1 parent 821a877 commit aed0e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ldap/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (c *LDAPClient) getGroupsContainingUser(groupBaseDN string, userDN string)
req := ldap.NewSearchRequest(
groupBaseDN,
ldap.ScopeWholeSubtree,
ldap.NeverDerefAliases, 1, 30, false,
ldap.NeverDerefAliases, 0, 30, false,
fmt.Sprintf("(&(|(objectClass=groupOfNames)(objectClass=group))(member=%s))", userDN),
[]string{"cn"},
nil,
Expand Down

0 comments on commit aed0e76

Please sign in to comment.