这里我基本上有三个问题:我需要使用.Net 3.5。
我正在使用DirectoryEntry类作为实现。
string path = "LDAP://hostname:port/SearchBase";
DirectoryEntry _directoryEntryObj = new DirectoryEntry(path, userName, password);
if(IsSSL)
_directoryEntryObj.AuthenticationType = AuthenticationTypes.SecureSocketsLayer;
object obj = _directoryEntryObj.NativeObject;发布于 2014-12-17 14:39:33
一般来说,我不相信您会对只在LDAPS (端口636)上运行的AD (端口636),以及普通LDAP (389)阻塞的AD不会有多大帮助。我不认为大多数应用程序实现了LDAPS,但我可能错了。
在上面,证书必须有效。如果您只是将证书导出到另一台计算机(带有另一个主机名),则证书将不受信任。你使用什么样的证书?
--
希望我能帮忙,问候
https://stackoverflow.com/questions/27527759
复制相似问题