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

LDAP import not working if password not changeable

    Details

      Description

      1. Enable ldap import
      2. Change password policy to not allow users to change password
      3. Login with user that is not in liferay but should be imported on authentication

      Relevant parts of the stacktrace as follows:
      com.liferay.portal.UserPasswordException
      at com.liferay.portal.security.pwd.PasswordPolicyToolkit.validate(PasswordPolicyToolkit.java:116)
      at com.liferay.portal.security.pwd.PwdToolkitUtil.validate(PwdToolkitUtil.java:49)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5567)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.addUserWithWorkflow(UserLocalServiceImpl.java:677)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:542)
      at com.liferay.portal.service.UserLocalServiceWrapper.addUser(UserLocalServiceWrapper.java:450)
      at com.liferay.portal.service.UserLocalServiceUtil.addUser(UserLocalServiceUtil.java:463)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.addUser(PortalLDAPImporterImpl.java:502)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importUser(PortalLDAPImporterImpl.java:898)
      at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importLDAPUser(PortalLDAPImporterImpl.java:228)
      at com.liferay.portal.security.ldap.PortalLDAPImporterUtil.importLDAPUser(PortalLDAPImporterUtil.java:57)
      at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:300)
      at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:384)
      at com.liferay.portal.security.auth.LDAPAuth.authenticateByScreenName(LDAPAuth.java:91)
      at com.liferay.portal.security.auth.AuthPipeline._authenticate(AuthPipeline.java:228)
      at com.liferay.portal.security.auth.AuthPipeline.authenticateByScreenName(AuthPipeline.java:49)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticate(UserLocalServiceImpl.java:5011)
      at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticateByScreenName(UserLocalServiceImpl.java:973)
      at com.liferay.portal.service.UserLocalServiceWrapper.authenticateByScreenName(UserLocalServiceWrapper.java:609)
      at com.liferay.portal.service.UserLocalServiceUtil.authenticateByScreenName(UserLocalServiceUtil.java:625)
      at com.liferay.portlet.login.util.LoginUtil.getAuthenticatedUserId(LoginUtil.java:162)
      at com.liferay.portlet.login.util.LoginUtil.login(LoginUtil.java:245)
      at com.liferay.portlet.login.action.LoginAction.login(LoginAction.java:188)
      at com.liferay.portlet.login.action.LoginAction.processAction(LoginAction.java:88)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pani.gui Pani Gui (Inactive)
                Reporter:
                samuli Samuli Saarinen
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE RC6