在域帐户下运行asp.net应用程序而不加入域?

发布于 2024-09-25 09:50:41 字数 314 浏览 0 评论 0原文

我的感觉是这是不可能的,但无论如何我很好奇是否至少有一个解决方法可以实现这一点。

基本上我在我的客户端站点工作,我的机器没有连接到域。 我想要做的是在域帐户下本地运行 Web 应用程序,并使用 webdev 服务器。 Web应用程序使用默认的身份验证,即Windows身份验证。 我尝试使用domain\user & 进行模拟密码,但我收到以下错误

无法根据配置文件中指定的凭据创建 Windows 用户令牌。来自操作系统的错误“登录失败:未知的用户名或错误的密码。”

我必须指出,用户名和密码是正确的。

提前致谢 尤利安

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

带刺的爱情 2024-10-02 09:50:41

如果您无法访问域控制器(或者您的计算机不知道使用哪个域控制器),则无法确定密码是否正确。 Windows 通常会询问 DC“此密码是否与此帐户匹配”(简单来说)。现在在你的场景中,没有 DC。因此,“未知的用户名”。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文