🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14003

Control Password Of System User

#14003
From: Eyyub Volkan �ektimur
Date: Thu, 04 Sep 2003 13:18
23 lines
1616 bytes
hi,

i'm using "NetUserGetInfo" method to obtain more info about windows users.
As naturally it don't return password knowledge. I need to control an
entered password does match with Windows User's password. Something like;

bool ControlPassword(username,password)

i found a method "LogonUser" and i thought i can use it but later i read
that it needs SE_TCB_NAME privilege ! and only SYSTEM user holds that.

As Brief ;

* I need a WinApi method returns that user is valid or not (username and
password)
  bool ValidUser(username,password)
* Is there a way to use "LogonUser" method ?

thanks for help
___________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
Technical Details
Message-ID: <3f573b9d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,256043d002c94eea,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-04 06:25:47 PST
From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Control Password Of System User
Date: Thu, 4 Sep 2003 16:18:15 +0300
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.232.9.2
Message-ID: <3f573b9d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062681501 213.232.9.2 (4 Sep 2003 06:18:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail