通过身份验证 - IIS 和 dotNet

发布于 2024-12-17 20:13:17 字数 1225 浏览 1 评论 0 原文

很抱歉重复一个我之前多次看到过的问题。但他们似乎没有回答我的情况。或者这些文章适用于以前版本的 IIS 和 IE

我试图创建一个登录页面,将用户重定向到 Intranet。我希望域中的用户能够使用其 Windows 用户名(单点登录)直接进入我们的 Intranet。不过,我还希望将没有用户名的用户传递到登录页面。

问题似乎出在 IIS 上启用匿名访问时。您可以允许访问 IIS,但无法检测用户名,反之亦然。

我已经设置了一个解决方案,其功能与此类似。但是,当不属于该域的用户访问该站点时,他们必须单击对话框中的“取消”(Windows 登录)。然后他们被重定向到402页面,这是一个登录页面

有人知道如何停止显示此对话框吗?如果我能摆脱对话框那么这将解决我的问题。

我查看了很多解决方案,但没有一个达到预期的效果:

(这两个是最适合的匹配我的问题 - 但没有看到提供单页并将用户过滤到正确的位置)

任何帮助将不胜感激。如果我要求不可能的事情,也请告诉我(我已经寻找答案好几天了...)我似乎正在入侵 iis 服务器来做一些它不想做的事情...

我有还尝试了 Windows 和表单身份验证一起使用,这似乎在 IIS 6.0 和 7.0 上都不起作用。

Sorry to repeat a question that I have seen posted many times before. But they don't seem to answer my circumstances. Or the articles are for previous versions of IIS and IE

I have trying to create a landing page where a user is redirected to an Intranet. I would like users who are part of the domain to be passed straight through to our Intranet with their Windows username (Single sign on). However I would also like the users who do not have a user name to be passed to a login page.

The problems seems to be when Enabling Anonyomous Access on IIS. You can allow access through to the IIS but can not detect the username and vice versa.

I have setup a solution which does something similar to this. However when a user who is not part of the domain accesses the site then they have to click cancel to the dialogue box (Windows login). They are then redirected to the 402 page which is a login page

Does anyone know how to stop this dialogue box being displayed? If I can get rid of the dialogue box then this would solve my problem.

I have looked a loads of solutions which none of them have the desired effect:

(These two are the most suited match for my problem - but don't see to provide the single page and filter the user to the correct place)

Any help would be greatly Appreciated. Let me know as well if I am asking for the impossible (I have been looking for an answer for days now...) I seem to be hacking the iis server to do something it doesn't want to do...

I have also tried windows and forms authentication bother together which doesn't seem to work on both IIS 6.0 and 7.0.

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

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

发布评论

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

评论(1

另类 2024-12-24 20:13:17

我不相信您的问题有解决方案,但我确信您不能(也不应该)覆盖您在此处提到的默认浏览器行为:

有谁知道如何停止显示此对话框?如果我可以摆脱对话框,那么这将解决我的问题。

I don't believe there is a solution to your problem however I know for certain the you cannot (and should not) override the default browser behaviour you mention here:

Does anyone know how to stop this dialogue box being displayed? If I can get rid of the dialogue box then this would solve my problem.

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