My Oracle Support Banner

DBMS_LDAP.bind_s to OID 10g Fails with ldap_bind: Invalid credentials (Doc ID 1286530.1)

Last updated on SEPTEMBER 11, 2019

Applies to:

Oracle Internet Directory - Version to [Release 10gR1 to 10gR3]
Information in this document applies to any platform.


DBMS_LDAP.bind_s Fails with error message:

   ldap_bind: Invalid credentials

This happens in the following scenario and steps to reproduce error:
  Create a plugin for simple bind by using DBMS_LDAP package and enable the plugin.

1) Create a user in OID by using ODM or OIDDAS and do an ldapbind to ensure bind is successful
2) ldapsearch user entry into ldif file
3) delete user account from OID
4) Add the same user back to OID with ldapadd command using ldif file generated in step 2.
5) ldapbind fails with error 49
: Invalid credentials

OID log shows the following :-

2011/01/07:07:05:40 * ServerWorker (REG):4 * ConnID:61 * OpId:0 * OpName:bind
INFO : gslfbiADoBind * Version=3 BIND dn="cn=<USERNAME>,cn=Users,<REALM_DN>" method=128
ConnId = 61, op=0, IpAddr=<IP_ADDRESS>
07:05:40 * INFO : gslfrsASendLdapResult2 RESULT = 49 nentries=0


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.