liferay/liferay-portal — pull request #317 by steyng (2013-02-12 09:13:36+00:00)
Title: LPS-28640 (master - 6.2.x) Performance improvement for importing from LD...

...AP when using open.sso.ldap.import.enabled=true

This change does not include all the changes made for the 6.1.x branch. The 6.2.x (master) already had an overlapping set of improvements made to the following method (line 864).

protected void importGroups(
long ldapServerId, long companyId, LdapContext ldapContext,
Attributes attributes, User user, Properties userMappings,
Properties groupMappings)
throws Exception

This pull request contains only the following changes that were provided for the 6.1.x branch.

* Early closure of enu to release the LDAP pool resource sooner.
* Logic for checking the group name and description before calling an update. This prevents the update being called if no change has occurred.