How to troubleshoot LDAP error code 49 Invalid Credentials
search cancel

How to troubleshoot LDAP error code 49 Invalid Credentials


Article ID: 214177


Updated On:


CA Automic Applications Manager (AM)


When configuring LDAP for Applications Manager, the following error can be seen when testing the LDAP connection:

LDAP authentication error : [LDAP: error code 49 - Invalid Credentials] : null
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(
               at java.lang.reflect.Method.invoke(
               at com.appworx.util.InvokeRequest.invokeMethod(




Release : 9.x



This error is due to the LDAP user and/or password being incorrect. Additionally, if the Distinguished name (dn) value is incorrect, the same error is generated. To determine the correct dn value, please see solution


The best way to troubleshoot this error is to download a third party LDAP browser and editor such as the free open source app Jxplorer (, and check the connection with the same LDAP parameters used in Applications Manager. This can be done by:

1. Open up Jxplorer, select File, and select Open

2. Work with the LDAP admin to fill out required LDAP parameters seen below.

3. Level value should be "User + Password"

4. Once a connection is successful, note the parameter values used in the "User DN:" field, User, and password. This is the value that should be used in Applications Manager's LDAP dn value.

For example, if the following is results in a successful log in from Jxplorer:
User DN: cn=cn1,cn=user1,dc=dc1,dc=mydc
Password: test1234

The above value should translate to the following value when testing the LDAP connection in Applications Manager

Distinguished name (dn): cn={uid},cn=user1,dc=dc1,dc=mydc
Login Id: appworx
Password: test1234

Note that Authentication mechanism value can be queryServer or simple