Legacy Knowledge Base
Published Jul. 2, 2025

Errors Exporting Password to LDAP

Written By

Liferay Support

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

The fix on LPS-55208 modifies LDAPUserExporterImpl (PortalLDAPExporterImpl in Portal 6.2 EE) in a way that the user is only exported to LDAP when the user's modifiedDate field changed.

When you change the password for a user only, then the call stack is a bit different and the user object is not updated so the modifiedDate stays the same. Therefore no export will take place.

Resolution

Status: Fixed

Steps to Reproduce

  1. Build up a Liferay Portal LDAP environment.
  2. Log in with an imported user.
  3. Change only the password.
  4. Try to log in with the new password.

Expected Result

User can log in with the new password

Actual Result

User cannot log in. They can log in with the old password though.

LDAPUserExporterImpl.exportUser(...)
...
if (modifiedDate.equals(user.getModifiedDate())) {
...

Solution

If you encounter this issue, please open a Help Center ticket and request a hotfix with LPS-55246.

Additional Information

See LPS-61428 and LPS-55246 for more information

Did this article resolve your issue ?

Legacy Knowledge Base