var path = abcdev.xyz.com:636;
PrincipalContext context = new PrincipalContext(ContextType.Domain, path)
Error:Object reference not set to an instance of an object.
at System.DirectoryServices.AccountManagement.PrincipalContext.ReadServerConfig(String serverName, ServerProperties& properties)
at System.DirectoryServices.AccountManagement.PrincipalContext.DoServerVerifyAndPropRetrieval()
at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name, String container, ContextOptions options, String userName, String password)
at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name)
at Authenticate(String userName, String password) in c:~\LdapRepository.cs:line 43
at xyz.Web.LdapController.Login(LdapViewModel model) in C:~\Controllers\LdapController.vb:line 29
PrincipalContext 对除一个以外的所有客户端都运行良好..我能够使用 Softerra LDAP 连接到 path = abcdev.xyz.com:636 但不确定为什么它会抛出空对象引用...我已经尝试过 abcdev.xyz .com:636/dc=xyz,dc=com -- 错误服务器无法连接
客户端提供的 url -- ldaps://abcdev.xyz.com:636 客户端已验证我们的 IP 已列入白名单 所以不确定我应该为这个客户端尝试什么不同。