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

If LDAP export is enabled and not setting LDAP export , unable to login default user on Liferay.

    Details

      Description

      Step1: configure LPAP as follow:

      Base Provider : URL ldap://192.168.133.176:389|
      Base DN: ou=neu,dc=mydomain,dc=com
      Principal cn: administrator,cn=Users,dc=mydomain,dc=com
      Credential: sxxxxxxx

      Authentication Search Filter: (&(objectCategory=person)(cn=@screen_name@))
      Import Search Filter: (objectClass=person)

      UUID :
      Screen Name : cn
      Email Address : userprincipalname
      Password : userPassword
      First Name : givenName
      Middle Name :
      Last Name : sn
      Full Name :
      Job Title :
      Status :
      Group :
      Portrait :
      Custom User Mapping :
      Custom Contact Mapping :

      Import Search Filter:(objectClass=group)
      Group Name: cn
      Description: sAMAccountName
      User: member

      Leave the follow export configuration empty
      Users DN: ou=neu,dc=mydomain,dc=com
      User Default Object Classes: top,person,inetOrgPerson,organizationalPerson
      Groups DN: ou=neu,dc=mydomain,dc=com
      Group Default Object Classes: top,groupOfUniqueNames

      .
      Step2: login using test

      Result: test can not login anymore.
      Same cases, unable to add a user successfully. unable to update user contact, unable to update user group.

      Error:

      com.liferay.portal.ModelListenerException: javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - 00000057: LdapErr: DSID-0C090C30, comment: Error in attribute conversion operation, data 0, v1db0_]; remaining name 'cn=test,OU=DessertUsers,DC=windows2008r2,DC=ntlm' [Sanitized]
              at com.liferay.portal.model.UserListener.onAfterUpdate(UserListener.java:77)
              at com.liferay.portal.model.UserListener.onAfterUpdate(UserListener.java:1)
              at com.liferay.portal.model.BaseModelListener.onAfterUpdate(BaseModelListener.java:1)
              at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:340)
              at com.liferay.portal.service.impl.UserLocalServiceImpl.resetFailedLoginAttempts(UserLocalServiceImpl.java:5931)
              at com.liferay.portal.service.impl.UserLocalServiceImpl.updateLastLogin(UserLocalServiceImpl.java:4499)
      

      .

      Thanks,
      David.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 8 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP2
                  7.0.0 DXP SP1
                  7.0.3 CE GA4
                  7.1.X
                  Master