使用域的单点登录 [英] Single Signon using domain

查看:117
本文介绍了使用域的单点登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有一个带有身份验证页面(登录页面)的Web应用程序(asp.net c#),如果用户(客户端计算机)连接到域,我想获取用户名(登录名)并绕过登录页面(存储在会话中),如果他不在域中,请显示登录页面.

我不想使用activex.

怎么办?

在此先感谢

Hello

I have a web application (asp.net c#) with authentication page (login page), I want if the user (client computer) is connected to domain get the userName (login name) and bypass the login page (store in session), and if he is not in the domain show him the login page.

I dont want to use activex.

What to do??

Thanks in advance

推荐答案

通常,您选择其中一个.您启用基于表单的身份验证,并且始终提示输入密码,或者具有基于Windows的身份验证,并且站点使用单点登录.混合两者(这基本上就是您正在做的事情)很棘手,但有可能.这是一个可以帮助您入门的链接:

http://mvolo.com/iis-70-twolevel-authentication- with-forms-authentication-and-windows-authentication [ ^ ]

就像我说的那样,很棘手.您将需要在您的环境中进行设置以开始使用.在单点登录方面,您应该已经准备就绪.然后,在基于表单的身份验证方面,您可以按照此站点上的说明来设置针对Active Directory的身份验证:

http://stackoverflow.com/questions/6147864/asp-net-mvc-authenticate-users-against-active-directory-but-require-username [
Typically you choose one or the other. Either you enable forms-based authentication and you always prompt for a password or you have Windows-based authentication and you have the site use single-sign-on. Mixing the two (which is basically what you are doing) is tricky but it is possible. Here is a link that will get you started:

http://mvolo.com/iis-70-twolevel-authentication-with-forms-authentication-and-windows-authentication[^]

Like I said, tricky. You will need to set that up in your environment to get started. On the single-sign-on side, you should be all set. Then on the forms-based authentication side, you can follow the directions on this site to set up authenticating against Active Directory:

http://stackoverflow.com/questions/6147864/asp-net-mvc-authenticate-users-against-active-directory-but-require-username[^]


这篇关于使用域的单点登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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