I'm having a problem and I'm wondering if this is a configuration issue, or a bug in my code, or something that just isn't possible. I have an application which runs on a server which is part of a workgroup. In my application, I make the following call to the Win32 method LogonUser
LogonUser(<user name>, <domain name>, <password>, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, <new token address>)
I pass it valid credentials for an existing domain user account. LogonUser() fails with error code 1326: "Logon failure: unknown user name or bad password".
I assume this is failing because the server in the workgroup has no knowledge of the domain and the domain account. Is there a way, via a workgroup config setting or programatically, so that the workgroup knows that this is a domain account and it should authenticate against a domain controller?
|