Saturday, March 24, 2012

Windows authentication using code

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.

THnaksHello 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

VHi, I am using forms authentication and do not want to maintain
Vseprate userid and password then windows usid and pwd. Hence, is
Vthere any way by which in code we can pass userid and password and
Vdomain and can check whether the credentials and userid provided are
Vvalid windows NT user.
V>
VTHnaks
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

VHi, I am using forms authentication and do not want to maintain
Vseprate userid and password then windows usid and pwd. Hence, is
Vthere any way by which in code we can pass userid and password and
Vdomain and can check whether the credentials and userid provided are
Vvalid windows NT user.
V>
VTHnaks
V>

0 comments:

Post a Comment