My Oracle Support Banner

Unable to connect to Active Directory over SSL with dbms_ldap "ORA-31202: DBMS_LDAP: LDAP client/server error: UnKnown Error Encountered" (Doc ID 1561121.1)

Last updated on AUGUST 30, 2023

Applies to:

Oracle Internet Directory - Version 10.1.2 and later
Information in this document applies to any platform.
DISCLAIMER: Oracle is not responsible for instructions/information from 3rd party sites that may be contained in this KM note.


Attempting to connect to Active Directory using DBMS_LDAP package that
needs to connect to AD using SSL.

Using DBMS_LDAP.open_ssl.

  ld => l_session,
  sslwrl => NULL, -- wallet location, ie file:<FULL PATH TO WALLET>
  sslwalletpasswd => NULL, -- wallet password
  sslauth => 2); -- NO_AUTH :1, ONE_WAY_AUTH: 2, TWO_WAY_AUTH: 3

but the following error is received:
  ORA-31202: DBMS_LDAP: LDAP client/server error: UnKnown Error Encountered


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.