Re: Validate user/pass with Windows accounts
From: Daniel Pravat [MSFT] (dpravat@online.microsoft.com)
Date: 04/23/03
- Previous message: Ivan Medvedev [MS]: "Re: does .net network security depend on netios ?"
- In reply to: Etienne Charland: "Validate user/pass with Windows accounts"
- Next in thread: Etienne Charland: "Re: Validate user/pass with Windows accounts"
- Reply: Etienne Charland: "Re: Validate user/pass with Windows accounts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Daniel Pravat [MSFT]" <dpravat@online.microsoft.com> Date: Wed, 23 Apr 2003 10:14:15 -0700
You must ask the system to validate the credential for you.
See LongonUser for local/domain user :
[DllImport("advapi32.dll", SetLastError=true)]
public static extern bool LogonUser(String lpszUsername, String lpszDomain,
String lpszPassword,
int dwLogonType, int dwLogonProvider, ref IntPtr phToken);
For a remote user you need to investigate network authentication family of
functions assuming the remote
machine is configured to accept remote connections.
-- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "Etienne Charland" <mystery@golden.net> wrote in message news:upRdDVUCDHA.33376@TK2MSFTNGP10.phx.gbl... > Let's say I have the username "Joe" and the password "abc", how can I check > wether it's the right password for that Windows account? All I know is that > Windows doesn't store "abc" but only a hash of it. So I would have to > compare hashes in some way... Any hint? > > Thanks! > > Etienne > >
- Previous message: Ivan Medvedev [MS]: "Re: does .net network security depend on netios ?"
- In reply to: Etienne Charland: "Validate user/pass with Windows accounts"
- Next in thread: Etienne Charland: "Re: Validate user/pass with Windows accounts"
- Reply: Etienne Charland: "Re: Validate user/pass with Windows accounts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]