Windows authentication using code

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
 
M

Michael Nemtsev, MVP

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>
 
M

Michael Nemtsev, MVP

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top