How to connect to LDAP Novell using SSL in C#?


I am currently trying to connect to my Novell LDAP in SSL using C#. At first, I have tried exactly the same operation with authentication = None and it works perfectly.

My domain name was of this form: LDAP://,c=ZYX and in my query I had AuthenticationType.None set.

Now, if I try the same with: LDAPS://,c=ZYX and in my query I had AuthenticationType.SecureSocketsLayer set. I have an error: Unknown error (0x80005000) whereas the SSL is working on the server.

asked on Stack Overflow Jan 11, 2012 by TD Lemon • edited Jan 12, 2012 by Bruno

1 Answer


If you can get access to the eDirectory servers logs and ask them to enable +LDAP tracing, then a bind attempt that fails could provide additional interesting information.

As Joachim notes in his comment, you probably need the trusted root of the CA that signed the certificate in use by the eDirectory server. By default, each eDirectory tree has its own CA that signs all the certificates, so probably need the public key of the CA added to your keystore for certain.

answered on Stack Overflow Jan 15, 2012 by geoffc

User contributions licensed under CC BY-SA 3.0