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

OpenSSOAutoLogin imports details from LDAP each time it is called if OpenSSO LDAP import is enabled - this impacts performance.

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.0.5 GA, 6.0.6 GA
    • Fix Version/s: 6.0.6 GA
    • Labels:
      None
    • Environment:
      Liferay 6 EE SP1 or current trunk (6.0.5), JDK 6 Update 23, Tomcat 6.0.29B, Oracle Enterprise Linux 5.5

      Description

      == Problem description:

      OpenSSOAutoLogin.java executes the importLDAPUser method each time the auto-login filter calls it. Will doing debug tracing, I found that this would basically be on most requests impacting performance. You should only need to import the details from LDAP when the user session is first created.

      == Solution:

      I will attach a patch that at this point is very basic. The patch sets a session attribute in OpenSSOFilter.java to indicate that the import is required. In OpenSSOAutoLogin, this attribute gets reset once the import is complete, A new request for an import will only be done in OpenSSOFilter if the users session is a new one.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 20 weeks, 5 days ago

                Packages

                Version Package
                6.0.6 GA