ASP NET域用户认证报错!!
我的asp 网站用的是域用户认证,不过不是通常的绑定的登录本机的域用户
原理是这样的
我建立了一个登录页面,要求用户填写域用户和密码,如果通过,那么就可以登录到系统中了。
我使用的程序是这样的
Dim De As New DirectoryServices.DirectoryEntry("WinNT://DC001", User.text, Password.Text)
Dim result As DirectoryServices.DirectoryEntry = De.Children.Find(User.text)
只要用客户填写发用户名和密码在域里找到用户自己,那么就说明这个与用户名和密码是正确的。
以上的程序我在编辑器里运行的vs2005里运行的很正常。
可是一旦生成网页,发布到内网,就出问题了
错误代码是
“Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.”
似乎是客户输入的域用户和运行系统服务器的域用户不一致,导致AD服务器认为系统服务器的链接过多。
因为如果我用运行系统服务器的域用户登入,就没有这个问题了。
各位知道有什么方法可以解决吗?
是不是可以释放资源之类的