MartinEhlers
Programmer
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
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