Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-28641

LDAP import performance impacted by repeated import

    Details

      Description

      The importFromLdap(long companyId) method in com.liferay.portal.securit.ldap.PortalLDAPImporterImpl is repeating the import process twice:

      			for (long ldapServerId : ldapServerIds) {
      				importFromLDAP(ldapServerId, companyId);
      			}
      
      			for (int ldapServerId = 0;; ldapServerId++) {
      				String postfix = LDAPSettingsUtil.getPropertyPostfix(
      					ldapServerId);
      
      				String providerUrl = PrefsPropsUtil.getString(
      					companyId, PropsKeys.LDAP_BASE_PROVIDER_URL + postfix);
      
      				if (Validator.isNull(providerUrl)) {
      					break;
      				}
      
      				importFromLDAP(ldapServerId, companyId);
      			}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              g.steyn Graeme Steyn
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 51 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2