0

Hi all,

I have a J2EE web application that I am integrating with LDAP to implment Password Reset functionality to allow AD users to change their own password.

My code works at times, and sometimes it stops working throwing [code]LDAP error code 52, initializing SSL/TLS error.[/code] I don't know why this intermittent error is being thrown? Here's the line of code that gives error.

StartTlsResponse tls = (StartTlsResponse) myLdapContext.extendedOperation(new StartTlsRequest());

Any idea, please?

thanks.

2
Contributors
4
Replies
21
Views
2 Years
Discussion Span
Last Post by new_2_java
0

Thanks for the reply.
Infact, the my AD is SSL enabled, and I can connect using ldaps://myhost.com:636. I can establish my LDAP context as well and authenticate my user.

I need to implment change password funtionality in my webapp, and for that I need to establish an SSL or TLS connection, and that's where I get the error code 52.

I have imported my AD server certificate into my JRE's keystore, using keytool utility also.

0

It appeared that my AD wasn't setup for SSL connection. Had my AD folks fixed that, and everything started working back again! Thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.