Issue
- After logging in with an LDAP user, all existing groups are imported from the LDAP server.
- In earlier versions (DXP 7.1 and DXP 7.2) only the groups to which the user has been assigned are imported.
Environment
- Liferay DXP 7.3
- Liferay DXP 7.4
Resolution
- This behaviour is intended and is a consequence of a required change in LPS-142044
- This change was made to be able to track which user groups the imported user belongs to if multiple LDAP servers are configured.
- In short, the following problem was solved:
The problem with the "User" method is that it breaks when the same user belongs to multiple LDAP servers that have different sets of groups between them. When this happens, whichever LDAP server was processed last during the import process will have the final say on which groups the user belongs to. If it sees that in Liferay, the user belongs to any LDAP groups that aren't part of the server, it will remove the user from those groups (even if the user is a part of those groups on a different LDAP server).