从本地PC上的Windows Server的认证问题,但不 [英] windows authentication issue on server but not from local pc

查看:94
本文介绍了从本地PC上的Windows Server的认证问题,但不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的C#asp.net web应用程序设置了Windows身份验证。

I have my c# asp.net web application set up for windows authentication.

<authorization>
    <deny users="?" /> <!-- Denies access to the anonymous user. -->
        </authorization>

我有2个问题。

首先,如果我浏览到我的网站从我的本地PC,我得到要求输入用户名/密码,我输入我用它来登录到服务器,这些都是成功的,我获得的凭据。但是,如果我浏览到通过互联网浏览器的服务器上的网站,我被问到的凭据,我同样提供 - 但它从来没有让我的访问,不断收到弹出,重新进入我的凭据。任何想法,为什么这可能是这样呢?我是否有不正确的配置?

Firstly, if I navigate to my site from my local PC, I get asked for a username/password to which I enter the credentials I use to log on to the server and these are successful and I gain access. However if I navigate to the site on the server via the internet browser, I get asked for the credentials to which I supply same - but it never lets me access, keep getting pop up to re enter my credentials. Any ideas why this might be so? Do I have incorrect configuration?

其次,是否有可能设置Windows身份验证时,访问从本地PC询问用户名/密码,但访问服务器上时,它的网站,我没有要求这样,可以在不提供任何细节访问网站?

Secondly, is it possible to set up windows authentication when access the site from my local PC asking for username/password, but when accessing it on the server, I am not asked for such and can access the site without providing any details?

推荐答案

你有没有在IIS为您的网站选择了集成Windows身份验证?

Have you selected "Integrated Windows Authentication" in the IIS for your web site?

您在你的web.config认证什么模式?

What mode you have for the authentication in your web.config?

这篇关于从本地PC上的Windows Server的认证问题,但不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆