legacy-knowledge-base
Publicado Jun. 25, 2030

Unable to bind to the LDAP server javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]

written-by

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

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

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • Unable to connect to Open LDAP in DXP due to the following UI error blobid0.png

Environment

  • Liferay DXP 7.4

Resolution

  • These errors typically occur when Liferay is unable to communicate with LDAP or when mapping mistakes are made.

    • As a result, please ping both servers to ensure that they can communicate with one another. If they are, please check to see if any firewall settings are blocking the specified port.

  • However, in this case, the principal's CN was incorrect in the connection section at the Liferay end. Three dc have been used, but in principal, these have not been mentioned and have been configured as follows:
    Principal's CN> cn=admin,ou=people
    • As a result, the correct mapping would be as follows: users should replace 'ou=people' with
      Principal's CN> cn=admin,dc=xyz,dc=abc,dc=com
    • The values abc and xyz are only for demonstration purposes, please see the actual values on the OpenLDAP side.     

Additional Information

  • This error can also occur when the LDAP user and/or password are incorrect. The same error is generated if the Distinguished name (dn) value is incorrect.
did-this-article-resolve-your-issue

legacy-knowledge-base