-
14 votesanswersviews
如何通过LDAP SSL验证Active Directory信誉?
我正在尝试使用.NET 3.5 System.DirectoryServices.AccountManagement 命名空间来验证针对我们的Active Directory LDAP服务器 over an SSL encrypted LDAP connection 的用户凭据 . 这是示例代码: using (var pc = new PrincipalContext(ContextType.... -
4 votesanswersviews
ASP.NET MVC Windows身份验证和DirectoryServices - 获取当前用户的邮件地址会引发InvalidCastException
我正在使用ASP.NET MVC 4和Windows身份验证 . 当我使用VisualStudio时,一切正常,但是当我部署我的网站时,会抛出异常 . var emailAddress = UserPrincipal.Current.EmailAddress; throws: 无法将类型为“System.DirectoryServices.AccountManagement.GroupPrin... -
36 votesanswersviews
System.DirectoryServices.DirectoryServicesCOMException:发生操作错误
我在其他三台服务器上使用相同的Web应用程序 . 任何人都知道为什么不在第四台服务器上工作?查看错误和堆栈跟踪: 发生了操作错误 . 描述:执行当前Web请求期间发生未处理的异常 . 请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息 . 异常详细信息:System.DirectoryServices.DirectoryServicesCOMException:发生操作错误 . 源错误:在... -
0 votesanswersviews
更改具有“当前密码=空”的远程计算机用户帐户的密码
我想更改远程计算机用户帐户的密码 . 我是这样做的: PrincipalContext context = new PrincipalContext(ContextType.Machine, "xxx.xxx.xxx.xxx" /*Remote machine IP address*/, "RemoteAdminUserName", "Remote... -
0 votesanswersviews
通过使用asp.net核心中的ldap连接到活动目录服务帐户来验证用户
Server_Name :servername.cloudapp.net IP_Address : x.x.x.x Protocol_Type : Recursive LDAP LDAP_Port : 389 User_OU : xxx.xxx.world.local/city/city Projects/city Worksheet/CityUser... -
0 votesanswersviews
调用ValidateCredentials结果为False(具有已知的正确用户名/密码),事件4625显示在域服务器上
我正在对域上下文中的PrincipalContext.ValidateCredentials进行一个非常简单的调用,该调用因未知原因而导致假阴性 . using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, "DOMAINNAME")) { ...