ASP.NET Forms身份验证到LDAP会引发未知错误 [英] ASP.NET Forms Authentication to LDAP raises unknown error

查看:94
本文介绍了ASP.NET Forms身份验证到LDAP会引发未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了MS文章#326340中详细说明的表单身份验证过程( http://support.microsoft.com/kb/326340 )使用VWD的VB ASP.NET Web项目。当我尝试登录时,我收到未知错误(0x80005000)。我从一个LDAP连接字符串开始,该字符串指向我所在域外的服务器,但是将其更改为同一域中的AD服务器,这是我的问题,但我得到了同样的错误。

在我的登录脚本中,我有以下两行:  (在代码中列出了实际的IP地址,其中"x"出现在这里。)我还尝试使用"DC"的小写,没有":389"而没有Where objectClass ='User'和objectCategory ='Person'。


Dim adPath 作为 String = "'LDAP://xx.xx.xx.x:389 / DC = hoem,DC = ad,DC = harman,DC = com' objectClass ='User'和objectCategory ='Person'" 'LDAP目录服务器的路径

I have added the forms authentication process detailed in MS Article #326340 (http://support.microsoft.com/kb/326340) to a VB ASP.NET web project using VWD. When I attempt to login I get the unknown error (0x80005000). I started with an LDAP connection string that pointed to a server outside the domain I am in but changed it to an AD server in the same domain thyinking that was my problem but I get the same exact error.

In my logon script I have the following 2 lines:  (In the code the actual IP address is listed where "x"s appear here.) I have also tried it with the "DC"'s lower case, without the ":389" and without Where objectClass='User' and objectCategory='Person'.

Dim adPath As String = "'LDAP://xx.xx.xx.x:389/DC=hoem,DC=ad,DC=harman,DC=com' Where objectClass='User' and objectCategory='Person'" 'Path to your LDAP directory server

 

Dim adAuth As LdapAuthentication = LdapAuthentication(Trim(adPath))
<每次在LdapAuthentication.vb文件的以下行发生问题时:

Dim

Dim adAuth As LdapAuthentication = New LdapAuthentication(Trim(adPath))

Each time the problem occurs at the following line in the LdapAuthentication.vb file:

Dim

 

obj As 对象 = entry.NativeObject

推荐答案

有关IIS和ASP.NET的问题,你应该发表在< a href ="http://forums.asp.net"> ASP.NET论坛。我认为他们可以更好地回答你的问题。
For question related to IIS AND ASP.NET you should post on ASP.NET Forum. I think they can answer your question better.


这篇关于ASP.NET Forms身份验证到LDAP会引发未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆