Windows authentication using code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am using forms authentication and do not want to maintain seprate userid
and password then windows usid and pwd. Hence, is there any way by which in
code we can pass userid and password and domain and can check whether the
credentials and userid provided are valid windows NT user.

THnaks
 
Hello Vikram,

I suppose u need to use ActiveDirectoryMembershipProvider
See there for more details http://msdn2.microsoft.com/en-us/library/ms998360.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


V> Hi, I am using forms authentication and do not want to maintain
V> seprate userid and password then windows usid and pwd. Hence, is
V> there any way by which in code we can pass userid and password and
V> domain and can check whether the credentials and userid provided are
V> valid windows NT user.
V>
V> THnaks
V>
 
Hello Vikram,

I suppose u need to use ActiveDirectoryMembershipProvider
See there for more details http://msdn2.microsoft.com/en-us/library/ms998360.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


V> Hi, I am using forms authentication and do not want to maintain
V> seprate userid and password then windows usid and pwd. Hence, is
V> there any way by which in code we can pass userid and password and
V> domain and can check whether the credentials and userid provided are
V> valid windows NT user.
V>
V> THnaks
V>
 
Back
Top