I have an OpenLDAP database with base DN in dc=example,dc=com, users in ou=Users,dc=example,dc=com (posixAccount) and groups in ou=Groups,dc=example,dc=com (posixGroup).
The group membership is mapped with gidNumber attribute (primary group) under user’s account and with memberUid attribute (secondary group) under group settings.
With this configuration, one user could has multiple groups membership. Example: user1 is inside group1 and group2, and user2 is inside group1 and group3.
The group mapping is working fine in Openfire with the following configuration:
username field: uid
user filter: (&(objectClass=posixAccount)(mail=*))
posix mode: yes
group filter: (objectclass=posixGroup)
However, since a user can participate in more than one group, it appears duplicated in the group mapping (and in the roster as well).
Is there any configuration that can be made to filter this result and leave the user only in their primary group or make it appear only once?
Thanks and best regards.