LDAP No Such Object ExceptionThis exception normally happens when we try to add/delete/update an entry in LDAP and no such entry exits.

Caused by: LDAPException: No Such Object (32) No Such Object
LDAPException: Server Message: 1271029374:2592:56
LDAPException: Matched DN:
at com.novell.ldap.LDAPResponse.getResultException(Unknown )
at com.novell.ldap.LDAPResponse.chkResultCode(Unknown )
at com.novell.ldap.LDAPConnection.chkResultCode(Unknown)
                             at com.novell.ldap.LDAPConnection.add(Unknown Source)
                             at com.novell.ldap.LDAPConnection.add(Unknown Source)


The main thing here is to check what is the BaseDN that you are using the perform the operation against? It might have been not constructed correctly or it is also possible the DN is correct but that entry does not exits (or was deleted). Also consult the LDAP administrator to understand and verify the schema and see if you BaseDN is correct or not.

In addition, you can try to run the ldap command via command line to see if they return the same error. If they do that would imply that your program/library is not coded or setup correctly, check there.