Re: Validating NT Username/Password Using .NET



Unfortunately it doesn't have an overload that takes a password, so it won't
work in this case.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"paul moore" <paulmoore@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4031BBC5-4393-4F80-A3CD-5F380C141018@xxxxxxxxxxxxxxxx
i think u need one of the windowsidentity overloads

"Matthew Wieder" wrote:

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++.


.



Relevant Pages

  • Re: Web Single Sign On
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... current Windows credentials to the server, ... This common identity is the user's username used to logon to the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Changing ADAM user password
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... Running the bind from another W2K3SP1 machine ... support in digest or something like that. ...
    (microsoft.public.windows.server.active_directory)
  • Re: ASP.NET 2.0 WindowsTokenRoleProvider Local Groups Broken
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... There is no Group property on the WindowsIdentity object in .NET 2.0, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Secure SSL with LDAP and AD
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... LDAP over SSL with a third-party certification authority. ... Note that a self signed cert is probably a very poor choice as nothing ...
    (microsoft.public.windows.server.security)
  • Re: SignOn Problem during Team Foundation WebTest Playback
    ... That sounds likely to me (the query string parameters). ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)

Quantcast