I need to develop an intranet application.The Active directory users can only access this application.But I don't want the login form to appear
Is there any way to get the user name without login form? I can't use windows authentication as I don't want the Windows prompt
I need to know the user who has logged in the system without login form
Sulekha
Manish Kumar ChoudharyPosted Jan 7, 2015, 10:54 PM
Disable windows authorization from IIS also.
When you click on your website in IIS there are authorization tab there disable windows authorization from there. Then that login windows will not appears. Enable form authorization on IIS also
sulekha banerjiPosted Jan 7, 2015, 9:14 AM
Framing my question in details:-
We want to host the application in IIS.This application will be used by the Intranet users.
Our main requiremnet is that the windows prompt should not come for intranet users.So we have not used windows authentication.
We have used forms authentication with active directory authorization.But then we are not getting logged in username.(Windows username who has logged in the machine)
Several codes like - "System.Security.Principal.WindowsIdentity.GetCurrent().Name" - does not give username when
hosted in IIS.
With out using windows authentication is there any way to get machine username in IIS?
Manish Kumar ChoudharyPosted Jan 7, 2015, 3:17 AM
Which system login details you want?
If you want to restrict the user to access the login page from other computer then store the IP address of the computer and based on the IP address allow the user to access the login page.
sulekha banerjiPosted Jan 7, 2015, 3:02 AM
Hi Manish,
Thanks for the reply.I am able to do forms authentication through active directory with a login form
My requirement is that I don't want to give a login form in intranet since all the users are authenticated.How to get the system logged in user with out the login page?
Manish Kumar ChoudharyPosted Jan 7, 2015, 2:12 AM
Hi sulekha banerji,
Go through following links it might help you
http://www.beansoftware.com/ASP.NET-Tutorials/Forms-Authentication-Active-Directory.aspx
http://geekswithblogs.net/frankw/archive/2008/05/18/forms-authentication-with-active-directory-in-asp.net-2.0.aspx