简体   繁体   中英

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://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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM