这是我在 web.config 中使用的 connectionString:
<add key="GlobalAppStoreActiveDirectoryPath" value="GC://10.xxx.xx.xxx/DC=company,DC=com"/>
我的身份验证页面中的代码:
using (var searchRoot = new DirectoryEntry(_path, domUserName, password))
{
try
{
using (var searcher = new DirectorySearcher(searchRoot))
{
searcher.Filter = "(SAMAccountName=" + username + ")";
searcher.PropertiesToLoad.Add("cn");
var result = searcher.FindOne();//---> am getting an exception here "server not operational"
Active telnet
Directory 服务器正在运行
telnet 10.xxx.xx.xxx 3268
但我没有得到认证。请在这方面提供帮助