由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - how to use window authentication in the ASP.net? Thank you!
相关主题
asp.net hosting configurationasp.net/IIS configuration problem
用ACT testing的问题菜鸟请问安装问题Configuration Error
How can .Net Web App get local PC CredentialsIIS website configuration problem: why it still ask me for user name & password?
authenticationUser friendly timeout page
ASP web application 问题请教请教:新手学 ASP, 关于安装 IIS
is it possible to access sharepoint files from my current Web application?Simple deployment question
about preventing history back in ASP.NETASP.NET 怎么跟后端main process通信?
Is this FTP operation possible?A question on authentication and cookie
相关话题的讨论汇总
话题: windows话题: user话题: use话题: window
进入DotNet版参与讨论
1 (共1页)
w********i
发帖数: 244
1
Some software (hosted intranet) have a check box on log in screen for using
windows authentication. I knew the asp.net is a web application. I wonder
if I can use the client user name and password(intranet or company laptop
account) to log in the web application or pass/store the user information
in asp application without VPN. Thank you very much!
s***o
发帖数: 2191
2
Just set authentication mode to "Windows".
And you don't need the login page with Windows authentication.

using

【在 w********i 的大作中提到】
: Some software (hosted intranet) have a check box on log in screen for using
: windows authentication. I knew the asp.net is a web application. I wonder
: if I can use the client user name and password(intranet or company laptop
: account) to log in the web application or pass/store the user information
: in asp application without VPN. Thank you very much!

w********i
发帖数: 244
3
Most application has two options 1) user windows authentication 2) log in
How does it work? I guess it uses active directory. is it right? any
examples?
Thank you!
k****i
发帖数: 1072
4
1. Create winlogin.aspx page and set security to Integrated Windows
authentication and make this page the default form login page;
2. You can get the windows user name from Request.ServerVariables["LOGON_
USER"] if the user has permission;
3. If the current windows account failed it will return 401 error. Configure
IIS to redirect to another form login.aspx page to validate the user
against database.

【在 w********i 的大作中提到】
: Most application has two options 1) user windows authentication 2) log in
: How does it work? I guess it uses active directory. is it right? any
: examples?
: Thank you!

s***o
发帖数: 2191
5
mix mode? are you sure that you can specify different authentication modes
in a single application?

Configure

【在 k****i 的大作中提到】
: 1. Create winlogin.aspx page and set security to Integrated Windows
: authentication and make this page the default form login page;
: 2. You can get the windows user name from Request.ServerVariables["LOGON_
: USER"] if the user has permission;
: 3. If the current windows account failed it will return 401 error. Configure
: IIS to redirect to another form login.aspx page to validate the user
: against database.

k****i
发帖数: 1072
6
In web.config only specify form authentication. Just setup Integrated
windows authentication for the specific winlogin.aspx file. This is for IIS
6.
Another way to do it is use pinvoke to validate the windows username and
password just like how you validate any other user from datbase.
In IIS 7 classic mode, you can actually enable both modes. Just ignore the
warning.

【在 s***o 的大作中提到】
: mix mode? are you sure that you can specify different authentication modes
: in a single application?
:
: Configure

1 (共1页)
进入DotNet版参与讨论
相关主题
A question on authentication and cookieASP web application 问题请教
请问大家有什么便宜的HOSTING SERVICE推荐?is it possible to access sharepoint files from my current Web application?
问一个linq to sql编程问题 (转载)about preventing history back in ASP.NET
选择 WCF 还是 ASP.NET WebApi (转载)Is this FTP operation possible?
asp.net hosting configurationasp.net/IIS configuration problem
用ACT testing的问题菜鸟请问安装问题Configuration Error
How can .Net Web App get local PC CredentialsIIS website configuration problem: why it still ask me for user name & password?
authenticationUser friendly timeout page
相关话题的讨论汇总
话题: windows话题: user话题: use话题: window