LogOnUser API issue - Windows workgroup

G

Guest

Hi,

We are using LogOnuser API to authenticate users in windows workgroup
environment and AD/Domain environment. The API works fine in AD/Domain
environment, but we found an issue in Workgroup environment.

Following is the API we are using:

auth = LogonUser(userName, Server_Domain_Name, decryptedPassWord,
LOGON32_LOGON_INTERACTIVE,
LOGON32_PROVIDER_DEFAULT,
ref pExistingTokenHandle);

No matter what the Server_Domain_Name argument is passed to the API, for a
valid userName/Password on the Log on Computer/Server, the user is getting
authenticated ( I believe the API is internally using the local Computer
Name, if the supplied argument is invalid).

Just I was wondering whether this is an issue with this API (for invalid
computer/Server name, the API is defaulting it to Local computer) or is there
any setting in my computer is causing this behavior.

Thanks
Vizai
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top