I want to use the Windows logon information to check if a user can use my "classic asp" site. So if the user is logon at a certain Windows Domain network he/she can enter the site and i can use this persons Windows logon information on my asp site.
I know its possible with ASP.NET but is it also possible with "classic asp", if yes, how?
Take a look at Request.ServerVariables("AUTH_USER"). I beleive that this will only have a value if anonymous authentication is turned off windows authentication is on. Heres a good reference for all the server variables: http://www.w3schools.com/asp/coll_servervariables.asp
Related
I am new to industrial automation development. I am working on simens. And currently, I want to use windows login user name and password for website login using asp.net. let me know if it is possible or not. If yes then how? I will be very thank full to all who answered.
I want to use windows login user name and password for website login using asp.net.
Sure. Here's the docs
ASP.NET Integrated Windows Authentication
This uses IIS's Windows Authentication which uses NTLM/Kerberos.
I've an asp.net webforms application running on our intranet (same Active Directory).
I want to auto authenticate .
So i'm using on my C# code :
HttpContext.Current.Request.LogonUserIdentity.Name
to get user name and doing some stuff.
In my web.config i'm not specifying any authentication mode.
In IIS 10.0 in default website and also in virtual directory i've
The problem is that from my development PC it works well, but from any other pc's of my organization, Windows keep continue to ask for user and password.
What can it be ?
Thanks
As far as I know, the reason why you achieve the auto authenticate for your web application is the IE security setting.
If your customer doesn't enable this setting, the IE browser will not auto send the username and password to the server to login in the user. So you will face your customer need to type in the username and password.
To solve this issue, you should suggest client side to enable the security setting to auto login in.
More details about how to enable the auto log in you could refer to below steps:
1.Open the IE and find the internet options.
2.Modify the user authentication
I would like my ASP.net MVC5 application to authenticate against my active directory. Using "Windows Authentication" when creating my project works fine but I would like to do that same thing using a interface similar to "Individual user accounts". That way my users would be able to log out whenever they want and log in again as a different user. All I want is "Windows Authentication" but with a login form and a logout option.
I have tried everything but nothing seems to work, is this so difficult to do?
Thanks in advance for your answers
Windows Integrated Authentication uses Kerberos, so the Webserver (probably IIS) will handle the Authentication for you - your application does not have a chance to intercept this behavior.
But there is a way to do what you want:
http://msdn.microsoft.com/en-us/library/ff650308.aspx
I have a application on iis7 using anonymous authentication. I want to retrieve the LOGON_USER from the server variables. It is currently empty. Microsoft suggests how to populate the values of serer variables in this post.
But that is for iis5 & 6. How to do it in IIS7?
Actual problem I am trying to solve is: the application is for intranet and internet users and is a sitecore application running on iis7. If I use windows authentication, I get the domain and username and I can bypass login for intranet users, but for external users, i need to have anonymous authentication also. Having both together will not populate values in the server variables. Have been going through many posts. Also this which says to use Forms and windows authentication.
Not able to solve it properly.
Any help is appreciated.Thanks!!!
In order to track a user profile, the user will need an ASP.Net profile created.
There is programming involved to associate a Sitecore DMS/OMS visitor profile with an actual Asp.net profile. If you want to continue to track Sitecore user profile, you would have to use the Tracker.Visitor.ExternalUser and not iis to determine the current visitor on the internet site.
I have an silverlight application configured with windows integrated security.
I would like to emulate the "Sign in as different user" functionality
I would like to give the user, the option to click a button and show the
windows authentication login window, so that the user can enter the "User
name" and "Password" again using another domain account.
Is this possible and how?
(btw i found this question on another site but with no answers, I need the same thing so i copy/pasted a bit)
That's only doable if your ASP.NET application sends back 401.2 challenge to the browser. but the details are too complex, and you should avoid that if possible.
Forms authentication is a better option.