我目前正在尝试连接到远程LDAP-Server。为此,我试图通过以下方法找出域:
DirectoryEntry entry = new DirectoryEntry("LDAP://141.83.80.30/lam/RootDSE");不幸的是,我遇到了一个错误:
System.DirectoryServices.DirectoryServicesCOMException:‘提供了无效的dn语法’
发布于 2019-05-02 11:28:24
您可以使用下面的代码片段进行远程LDAP连接。
DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://example.com");
directoryEntry.Path = "LDAP://OU=Specific Users,OU=All Users,OU=Users,DC=example,DC=com";https://stackoverflow.com/questions/55951231
复制相似问题