mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 12:05:49 -06:00
Avoid multiple calls to LDAP when querying group memberships
Closes #44558 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
@@ -780,6 +780,8 @@ public class GroupLDAPStorageMapper extends AbstractLDAPStorageMapper implements
|
||||
return cachedLDAPGroupMappings.stream();
|
||||
}
|
||||
|
||||
cachedLDAPGroupMappings = Set.of();
|
||||
|
||||
List<LDAPObject> ldapGroups = getLDAPGroupMappings(ldapUser);
|
||||
if (!ldapGroups.isEmpty()) {
|
||||
GroupModel parent = getKcGroupsPathGroup(realm);
|
||||
|
||||
Reference in New Issue
Block a user