views:

8

answers:

1

My feeling says it's not posible but anyway I am curious if there is at least a workaround for accomplish this.

Basically I am working at my client site and my machine is not connected to the domain. What I want to do is running a web application locally under a domain account, and using the webdev server. The webapp uses the default authentication, windows authentication that is. I tried using impersonation with domain\user & password but I got the following error

Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.

I have to mention that the username and the password are correct.

Thanks in advance Iulian

A: 

If you cannot access the domain controller (or your computer does not know what domain controller to use), there is no way finding out if the password is correct or not. What normally Windows does, is asking the DC "does this password match this account" (simply speaking). Now in your scenario, there is no DC. Hence, "unknown username".

naivists
Thanks, that makes sense. So, I assume, the only way is to join the domain controller.
Iulian
Yes. What you can do after joining the domain, is disconnect your computer from that network. In this case the cached credentials will be used.
naivists