Does your boss want de password pop up only for him or for everyone?
I see no sense in this but bosses sometimes are like this.
Main Topics
Browse All TopicsI am running an ASP.NET application under IIS 5.0 in Windows 2000 server. We use the application only within the company's intranet. I use IIS to verify the user using Integrated Windows Authentication. I understand that the authentication process is automatically done such that the web server does not ask for a username and password anymore if the user accessing it has valid logon credentials when he logs on the domain where the web server is located.
However, my boss wants the username/password prompt when he accesses the web server, even if his logon credentials is already valid. I am able to do this when I enter the IP address in the browser's URL (when I do so, it asks me for a user name and password), but I can't when I use the server's computer name as the URL.
Is there any way (aside from using Basic authentication) to force web clients to prompt them to enter their username and password despite of their logon credentials? It does it when I enter the IP address, but I couldn't find a way to do the same when entering the server's computer name (like http://computername).
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This is primarily a browser issue. The initial request from the browser is sent without credentials. If IIS determines that anonymous access is insufficient for the page, it sends a 401 response back to the browser. In IE, the default settings are such that it will then automatically (and transparently to the user) send credentials if the user is already authenticated by Windows and if the website is on the "local intranet." The determination for local intranet is done by examination of the URL: if there is a period in the server name, it is not local. That is why using an IP address forces the authentication dialog -- it has a period, so it is not local.
You have two options: 1) manipulate the name resolution mechanism that you are using such that users can only get to the server by entering a name with a period, i.e. instead of entering http://computername, they need to enter http://computername.possib
2) configure all users IE to never send authentication automatically. This can be done through group policy or the like if you use them. In IE 6, the setting is in Tools>InternetOptions>Secu
Business Accounts
Answer for Membership
by: KenAdneyPosted on 2003-07-18 at 09:23:48ID: 8953167
This isn't my expertise, but you could have the app take the input from a form, write an expiring cookie to the client & then read it back to test for authentication.
ue") = entered_pw ue").Expir es = Date + 1 ue") <> correct_pw) Then cript_name ") & "' method='post'>")
Here's a little script for an unsecured password check (i.e. there's no security to it, it just prompts for a password the user has to know):
<%
'password protect
correct_pw = "tellmetrue"
entered_pw = Request.Form("entered_pw")
Response.Buffer = True
If entered_pw = correct_pw Then
Response.Cookies("tellmetr
Response.Cookies("tellmetr
End If
If (Request.Cookies("tellmetr
Response.Write("<form action='" & request.servervariables("s
Response.Write("Enter Password <input type='password' name='entered_pw' size='10' maxlength='10'>")
Response.Write("<input type='submit' value='Press Here'></form>")
Response.End
End If
%>