File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes SSL into eDirectory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "SSL into eDirectory" Watch "SSL into eDirectory" New topic

SSL into eDirectory

Brian Smith
Ranch Hand

Joined: May 20, 2005
Posts: 63
I am trying to authenticate against a Novell eDirectory using SSL. I have already loaded the server's certificate into a keystore. This is code I found on Novell's site. I am not a very experienced java programmer but I think I can pretty much follow what this code is doing. The Anonymous bind routine works. Neither of the Simple binds do, I get this error with both

Error: LDAPException: Confidentiality Required (13) Confidentiality Required
LDAPException: Matched DN:

With the SSL routine, the bind fails but I get no error back, just the message "Not authenticated to the server" when the isBound property evaluates to false. Any help would be appreciated.

As far as I know, I am supplying the appropriate credentials to the server.

Brian Smith
Ranch Hand

Joined: May 20, 2005
Posts: 63
Correction, the anonymous bind is not working, I was mistaken. It may yet have some to do with the credentials I am supplying.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: SSL into eDirectory