Question

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

Was it helpful?

Solution

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".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top