[英]ASP.NET Windows Authentication works with IP address in URL, but not dns
I've set up an ASP.NET intranet website with我已经建立了一个 ASP.NET 内网网站
From another pc: It works perfectly fine if I access it via IP eg http://11.11.11.1:88/Default.aspx从另一台电脑:如果我通过 IP 访问它,它工作得很好,例如http://11.11.11.1:88/Default.aspx
Unfortunately, when I go to http://MyWebsite.mycompany.com:88/Default.aspx I get a login box popping up.不幸的是,当我从 go 到http://MyWebsite.mycompany.com:88/Default.aspx时弹出一个登录框。
If I enter username/pass it just rejects it, and I can't get access如果我输入用户名/通过它只是拒绝它,我无法访问
From the server: Both IP and DNS alias work.从服务器: IP 和 DNS 别名都有效。 So no problems while on the server itself
所以在服务器本身上没有问题
Anonymous user access is disabled匿名用户访问被禁用
Any ideas?有任何想法吗?
Any suggestions on what further info I can give to help solve this?关于我可以提供哪些进一步信息来帮助解决这个问题的任何建议?
Additional:额外的:
<deny users="?">
<deny users="?">
Ohh riiight.哦,对了。 Got it!
知道了!
I changed my AuthenticationProvider for my website from "Negotiate, NTLM" to "NTLM, Negotiate"我将网站的 AuthenticationProvider 从“协商,NTLM”更改为“NTLM,协商”
Following these instructions: http://support.microsoft.com/kb/215383遵循这些说明: http://support.microsoft.com/kb/215383
With a slight change to their instruction to set provider of course稍微改变他们设置提供者的指令当然
mine:矿:
cscript adsutil.vbs set w3svc/WebSite/root/NTAuthenticationProviders "**NTLM, Negotiate**"
You can get the Website ID by clicking on the "Web Sites" folder on the left in IIS.您可以通过单击 IIS 左侧的“Web Sites”文件夹来获取网站 ID。 This should list all your website with their ID
这应该列出您的所有网站及其 ID
In Internet Explorer options, add MyWebsite.mycompany.com
to your list of Trusted Sites .在 Internet Explorer 选项中,将
MyWebsite.mycompany.com
添加到您的受信任站点列表中。
In Internet Explorer:在 Internet Explorer 中:
http://MyWebsite.mycompany.com:88
(use https if possible)http://MyWebsite.mycompany.com:88
(如果可能,使用https ) For Firefox, it's also pretty simple to configure NTLM authentication .对于 Firefox,配置 NTLM 身份验证也非常简单。
For Chrome NTLM, see this thread .对于 Chrome NTLM,请参阅此线程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.