We are using LDAP to find the list of active users. From DB we are connecting to LDAP. The DB Servers are on Linux Azure Cloud.
From DB Servers to LDAP Servers we raised a Azure Firewall request for both port 636(Encrypted Port) and 389(Non Encrypted Port). Firewall rules are in place and connectivity is working. Now from DB able to connect to LDAP over port 389 but not able to connect to LDAP over port 636. For port 636 it gives following error DBMS_LDAP Still Fails: ORA-31202: DBMS_LDAP: LDAP client/server error: SSL handshake failed
What needs to be done for this,please can someone suggest?
Loading

Aniket NarvankarPosted Jan 2, 2024, 1:06 PM
What is SID = ORCL?
Mohammad HussainPosted Dec 30, 2023, 8:51 AM
Please try this:
This should allow you to verify if SSL handshake works outside of Oracle, or fails there too indicating a server-side or network issue.
Aniket NarvankarPosted Dec 22, 2023, 9:17 AM
How to import ssl certificate of ldap server into oracle wallet? please guide.
we need to go on oracle db server and do this?
After performing below steps getting error as
DECLARE
l_session DBMS_LDAP.session;
retval PLS_INTEGER;
BEGIN
l_session := DBMS_LDAP.init('ldap.example.com', 636);
retval := DBMS_LDAP.open_ssl(l_session,'file:/u01/app/oracle/LDAP_WALLET/','pwd',2);
retval := DBMS_LDAP.SIMPLE_BIND_S(l_session,'domain\username','pwd');
END;
/
unable to open wallet
please suggest what more needs to be done
Jayraj ChhayaPosted Dec 22, 2023, 5:48 AM
To connect to LDAP over the secure port 636 from Oracle, you need to ensure that the necessary configurations are in place. Here are the steps you can follow:
Verify SSL/TLS Configuration: Ensure that the SSL/TLS configuration is correctly set up on both the LDAP server and the Oracle database server. Check if the SSL certificate is valid and trusted by the Oracle server.
Import SSL Certificate: Import the SSL certificate of the LDAP server into the Oracle Wallet. The Oracle Wallet is a secure container that stores SSL certificates and keys used for secure connections. You can use the
orapkiutility to import the certificate.Configure Oracle Wallet: Configure the Oracle Wallet to use the imported SSL certificate. This involves setting the
SSL_CLIENT_AUTHENTICATIONparameter in thesqlnet.orafile toTRUEand specifying the location of the wallet.Test Connection: Test the connection to the LDAP server over port 636 using the
DBMS_LDAPpackage. Here's an example of how to use the package to connect:Make sure to replace
'ldap.example.com'with the actual LDAP server hostname or IP address.ORA-31202: DBMS_LDAP: LDAP client/server error: SSL handshake failederror you mentioned, check the Oracle database server logs and the LDAP server logs for more information. Ensure that the SSL/TLS configurations match on both sides and that the necessary firewall rules are in place.