Skip to content
Advertisement

LDAPS : Simple bind failed

I’m facing issue connecting to LDAPS from my application. I have imported all necessary certificates on JRE keystore.

I’m able to make calls to LDAPs when I put the following string in java.security

JavaScript

When I change this line to

JavaScript

my connection fails with following error:

JavaScript

In wireshark it complains about certificate invalid.My question is if my certificate is invalid, it shouldn’t be working with this line as well.

JavaScript

Please help me to solve the issue.

Advertisement

Answer

If you use a secure connection to the LDAP server and you see an error like the following when trying to connect to Active Directory: simple bind failed: ad.hostname.com:636 Import the LDAP server public certificate directly into the Klocwork keystore (which should be_jvmlibsecuritycacerts). This causes the certificate validation process at the Klocwork end to be bypassed, since you have decided to trust the LDAP server certificate by importing it into your list of trusted certificates.

Ask your LDAP administrator to set this extension of your LDAP server certificate to non-critical.

Advertisement