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
|