日期:2014-05-20  浏览次数:20831 次

Directory Service 无法访问OpenLDAP
String path = "ldap://localhost/dc=mytest,dc=com";
String userName = "cn=Manager,dc=mytest,dc=com";
String password = "secret";
using (DirectoryEntry de = new DirectoryEntry(path, userName, password, AuthenticationTypes.ServerBind))
执行这块代码后,de的很多属性,例如Name都抛出COMException异常,不知道为什么。
我的OpenLDAP配置已经可以使用,通过浏览器访问ldap://localhost/dc=mytest,dc=com都是可以成功的。
我的OpenLDAP支持SSL认证。但是没有配置支持Kerberos认证。
用DirectoryService一定要用Kerberos进行身份认证吗?需要怎么实现或者需要怎么配置OpenLDAP呢?
请高手指点!谢谢!

------解决方案--------------------
是滴

怎么实现嘛
等楼下
------解决方案--------------------
8哥。。不懂!