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

2.8k views Asked by At

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://xxx.yyy.zzz.com:999/o=XYZ,c=ZYX and in my query I had AuthenticationType.None set.

Now, if I try the same with: LDAPS://xxx.yyy.zzz.com:636/o=XYZ,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.

1

There are 1 answers

0
geoffc On BEST 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.