简体   繁体   English

C#Asp.Net 2.0-如何根据活动目录密码检查密码?

[英]C# Asp.Net 2.0 - How do I check a password against an active directory password?

I'm rewriting an internal application, which currently uses its own username/password combination. 我正在重写一个内部应用程序,该应用程序当前使用其自己的用户名/密码组合。 People are forever forgetting it, or not changing their password from the default, so I want to use single sign on and make use of our domain. 人们永远会忘记它,或者不更改默认密码,因此我想使用单点登录并利用我们的域。

I am using .Net2.0 and I cannot find any ways of doing this outside of 3.5. 我正在使用.Net2.0,但在3.5之外找不到任何方法。

How can get the login name of the current user and then check an entered password against the password inside AD? 如何获取当前用户的登录名,然后对照AD中的密码检查输入的密码?

There is also the ActiveDirectoryMembershipProvider: 还有ActiveDirectoryMembershipProvider:

http://msdn.microsoft.com/en-us/library/ms998360.aspx http://msdn.microsoft.com/en-us/library/ms998360.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM