如何在 C# 中使用 SSL 连接到 LDAP Novell?
我目前正在尝试使用 C#
通过 SSL 连接到我的 Novell LDAP
。首先,我尝试使用 authentication = None
进行完全相同的操作,并且效果非常好。
我的域名采用以下形式: LDAP://xxx.yyy.zzz.com:999/o=XYZ,c=ZYX
在我的查询中我有 AuthenticationType.None设置。
现在,如果我尝试同样的操作: LDAPS://xxx.yyy.zzz.com:636/o=XYZ,c=ZYX
并且在我的查询中我有 AuthenticationType.SecureSocketsLayer< /代码> 设置。当 SSL 正在服务器上运行时,我遇到
错误:未知错误 (0x80005000)
。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您可以访问 eDirectory 服务器日志并要求它们启用 +LDAP 跟踪,则失败的绑定尝试可能会提供其他有趣的信息。
正如 Joachim 在他的评论中指出的那样,您可能需要对 eDirectory 服务器使用的证书进行签名的 CA 的可信根。默认情况下,每个 eDirectory 树都有自己的 CA 来签署所有证书,因此可能需要将 CA 的公钥添加到您的密钥库中。
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.