Re: Authenticate in SAM database...

From: Ferruccio Barletta ("Ferruccio)
Date: 05/21/03


Date: Wed, 21 May 2003 10:45:27 -0400


Try the LogonUser() API

"Jim" <ssss> wrote in message news:u5nFopHGDHA.1600@tk2msftngp13.phx.gbl...
> How do I authenticate a username and password in the local SAM database,
I
> can find the entry but don't know how to authenticate the password?
>
>
> System.DirectoryServices.DirectoryEntry obDirEntry = new
> System.DirectoryServices.DirectoryEntry("WinNT://" + "OR2400" );
> System.DirectoryServices.DirectoryEntries entries = obDirEntry.Children;
> System.DirectoryServices.DirectoryEntry obUser = entries.Find(username);
>
> Thx
>
> Jim
>
>



Relevant Pages

  • Re: PEAP, WinXP, IAS, wrong username
    ... One of the problems could be that the configuration for mschapv2 might not ... Is the winxp machine part of a domain? ... because if turn off "authenticate users on this ... it seems like this username is based on the MAC-adress on the clients NIC. ...
    (microsoft.public.internet.radius)
  • Re: a webservice to authenticate the users against
    ... public bool ValidateUser(string username, string passwordHash); ... [WebService] ... > 4) Can query our internal Active Directory to authenticate our ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Authentication with IE
    ... When I am prompted to log into the site, I enter my username and password. ... It then returns back with the local server as the prefix as opposed to the ... permissions prompts for authenticaton). ... I want the users to authenticate against foo.com, ...
    (microsoft.public.inetserver.iis.security)
  • Re: Dovecot issue
    ... Robert Trembath wrote: ... > The server is setup as a single domain setup. ... be sure that their username is the same exact case as entered into ... authenticate, but report 0 messages, UNLESS you matched the username to ...
    (Fedora)
  • Computer Name vs FQDN Authentication Problem
    ... The domain username (APPUSER) has also been set to allow ... authenticate using windows and impersonate=true. ... is Negotiate. ...
    (microsoft.public.dotnet.security)

Loading