I have set up my groups within OU=Organization Structure as shown here
https://raw.githubusercontent.com/ackerleytng/kc-ad-exploration/master/provisioned-ad-structure.svg
When I import the groups using group-ldap-mapper in keycloak, I use the following settings:
LDAP Groups DN: OU=Organization Structure,DC=vdom,DC=local
Group Name LDAP Attribute: cn
Group Object Classes: group
Ignore Missing Groups: True
Membership LDAP Attribute: member
Membership Attribute Type: DN
LDAP Filter:
Mode: READ_ONLY
User Groups Retrieve Strategy: LOAD_GROUPS_BY_MEMBER_ATTRIBUTE
Mapped Group Attributes:
Drop non-existing groups during sync: False
Two issues:
(1) If I disable ignore missing groups, on import, Keycloak complains:
Uncaught server error: org.keycloak.models.ModelException: Couldn’t
resolve groups from LDAP. Fix LDAP or skip preserve inheritance. Details: Group ‘Charlie Z
oe’ referenced as member of group ‘Appdev’ doesn’t exists
But Charlie Zoe isn’t a group, it’s a user! How do I configure Keycloak to understand that?
(2) If I enable ignore missing groups, the import proceeds fine, and the Groups tab for each user shows the correct group. However, if I go to Groups and select Members, I get a NullPointerException?