在 ASP.NET 中确认 NT 用户名和密码
我希望能够通过 ASP.NET 站点验证 NT 用户名/密码组合,与通过 Request.ServerVariables("LOGON_USER") 等识别的用户名完全分开。 有些帐户有权完全覆盖其他帐户,但用户仍然必须输入正确的密码才能执行此操作。
我尝试使用 advapi32.dll 中的 LoginUser 函数,但这仅尝试登录本地计算机(这将是应用程序服务器)。 有什么东西可以用来检查一般的网络吗?
I want to be able to authenticate an NT username/password combination through an ASP.NET site, completely separate from the username that's recognized through Request.ServerVariables("LOGON_USER") and the like. There are accounts that will have the rights to completely override others, but the users will still have to enter the correct password to do so.
I tried using the LoginUser function from advapi32.dll, but that only tries the login for the local machine (which would be the application server). Is there something that will work for checking the network in general?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以针对 Active Directory 进行身份验证。
http://msdn.microsoft.com/ en-us/library/ms180890
You could authenticate against Active Directory.
http://msdn.microsoft.com/en-us/library/ms180890
您是否考虑过使用 LDAP 和 ADAM(应用程序模式下的 Active Directory)?
这将允许您以您所寻求的方式对用户进行身份验证。 我为您找到了几篇文章:
Have you thought of using LDAP and ADAM (Active Directory in Application Mode)?
That would allow you to authenticate users in the manner you're seeking. I found a few articles for you: