Re: Authenticating NT Credentials in C#



Maybe your doing something different, but the user is already logged on -
corrent? If so, just check the .IsAuthenticated is true on the
WindowsIdentity object for the current session. That way you don't have to
get in the biz of passwords, etc.

--
William Stacey [C# MVP]
Crypt your script
www.powerlocker.com


"Matthew Wieder" <MatthewWieder@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DE970525-1EB3-4923-A6E1-C04770B86840@xxxxxxxxxxxxxxxx
|I must be missing something since this seems like a common task, but I
can't
| find any .NET samples of, if given an NT domain/username and password, to
| validate that the username and password are correct. LogonUser won't work
| since the code needs to run on Windows 2000 without admin priviledges. I
| would think there to be a .NET class for this purpose, but the only thing
| I've found is the SSPI example here
http://support.microsoft.com/?id=180548
| using C++.


.