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

Scheduled LDAP import doesn't work as expected

    Details

      Description

      Set up:

      1. Start portal
      2. Set log level for "com.liferay.portal.ldap.exportimport" to DEBUG
      3. Create a second instance
      4. Stop portal
      5. Set in portal-ext.properties:
        ldap.auth.enabled=true
        ldap.import.enabled=true
        ldap.import.on.startup=false
        ldap.import.interval=5
        
        ldap.base.provider.url.0=ldap://localhost:10389
        ldap.base.dn.0=dc=example,dc=com
        ldap.security.principal.0=uid=admin,ou=system
        ldap.security.credentials.0=secret
        ldap.auth.search.filter.0=(mail=@email_address@) 
        ldap.contact.mappings.0=
        ldap.contact.custom.mappings.0=
        ldap.user.default.object.classes.0=top,person,inetOrgPerson,organizationalPerson
        ldap.user.mappings.0=screenName=cn\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\njobTitle=title\ngroup=groupMembership
        ldap.user.custom.mappings.0=
        ldap.group.default.object.classes.0=top,groupOfUniqueNames
        ldap.group.mappings.0=groupName=cn\ndescription=description\nuser=uniqueMember
        ldap.import.user.search.filter.0=(objectClass=person)
        ldap.import.group.search.filter.0=(objectClass=groupOfUniqueNames)
        ldap.users.dn.0=ou=Users,dc=example,dc=com
        ldap.groups.dn.0=ou=groups,dc=example,dc=com
        


      Scenario 1

      1. create 150 users in LDAP under dc=example,dc=com (.ldif attached)
      2. start portal

      Result: At first scheduled import finishes successfully, but the second one is skipped because an other import is in process. However the previous import is already finished.
      Expected result: Second import also starts since the first one is already finished.


      Scenario 2

      1. create 500 users in LDAP under dc=example,dc=com (.ldif attached)
      2. start portal

      Result: First scheduled import starts and 5 mins later second import starts despite that the first import is still running. (Import for the default company is skipped, but it starts for the second company)
      Expected results: Second import is skipped because an other import is still running.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 36 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 Alpha 4