Networking Forums

Networking Forums > Computer Networking > Windows Networking > Workgroups, domains and LogonUser

Reply
Thread Tools Display Modes

Workgroups, domains and LogonUser

 
 
=?Utf-8?B?TWFzYWtpIFRhbWFva2k=?=
Guest
Posts: n/a

 
      12-09-2003, 04:01 PM
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?
 
Reply With Quote
 
 
 
 
Michael Giorgio - MS MVP
Guest
Posts: n/a

 
      12-09-2003, 04:17 PM
By default the machine in the workgroup will not pass the credentials
to the DC for authentication instead it will check it's local SAM
database.
You can verify this by specifying a local account. Can you by chance
join the machine to the domain?

"Masaki Tamaoki" <(E-Mail Removed)> wrote in message
> 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?


 
Reply With Quote
 
=?Utf-8?B?TWFzYWtpIFRhbWFva2k=?=
Guest
Posts: n/a

 
      12-09-2003, 04:56 PM
No, unfortunately, the machine cannot be added to the domain.
 
Reply With Quote
 
=?Utf-8?B?TWFzYWtpIFRhbWFva2k=?=
Guest
Posts: n/a

 
      12-09-2003, 04:56 PM
And yes, I did verify this behavior by specifying a local account.
 
Reply With Quote
 
=?Utf-8?B?TWFzYWtpIFRhbWFva2k=?=
Guest
Posts: n/a

 
      12-09-2003, 06:06 PM
Do you know the correct way to accomplish what I am trying to do?

I have a web server application that is attempting to access files on a network file share. For security purposes, we limit access to the file share to a specific domain account. As stated in my earlier message, we call LogonUser() with the domain credentials to get a token to access the file share. It appears that this won't work when the web server is part of a workgroup.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workgroups vs. Domains Don Phillipson Wireless Internet 2 01-30-2012 01:10 AM
Workgroups =?Utf-8?B?UGF1bGluQ0E=?= Windows Networking 3 04-13-2005 01:49 PM
Domains and Workgroups EdG Broadband Hardware 2 10-25-2004 03:44 AM
workgroups anonymous Broadband Hardware 0 09-24-2004 12:31 AM
subnets/domains/workgroups =?Utf-8?B?QW5vbnltb3VzZQ==?= Windows Networking 2 02-10-2004 05:46 PM



1 2 3 4 5 6 7 8 9 10 11