Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with programmatical logon (LogonUser)

Status
Not open for further replies.

MartinEhlers

Programmer
Nov 29, 2001
4
DE
Hi,

we have a problem with checking the username and password on a system with a domain server. Unfortunately, our system runs without a domain, so testing is pretty hard.

The following code does work for us (no domain), but doesn't work on a system with domain:

if (!::LogonUser(bstrUser,
NULL,
bstrPassword,
LOGON32_LOGON_NETWORK ,
LOGON32_PROVIDER_DEFAULT ,
&handleUser))
{...}

I fiddled around with the parameters a bit but couldn't get it to work.

Any tips would be appreciated.

CU,
Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top