Steps to reproduce the behavior
Create a user
- At a command prompt, create a local user by using the
following command:
net user MyUser "Test��123" /add
- Add the user to the Administrators group.
Create an ASP page
- Start Notepad.
- Paste the following code in Notepad:
AUTH_USER=<%=Request.ServerVariables("AUTH_USER") %><br>
AUTH_Password=<%=Request.ServerVariables("AUTH_PASSWORD") %>
- Save the page as
ExampleASP.asp.
Note ExampleASP.asp is a placeholder for the
name of the .asp file.
Create an ASPX page
- In Notepad, paste the following code:
AUTH_USER=<%=Request.ServerVariables("AUTH_USER") %><br>
AUTH_PASSWORD=<%=Request.ServerVariables("AUTH_PASSWORD") %><br>
- Save the page as
ExampleASPX.aspx.
Note ExampleASPX.aspx is a placeholder for
the name of the .aspx file.
Put the files in a folder
Create a folder in C:\Inetpub\wwwroot that is named
Test, and then put the created files to this
folder.
Note Test is a placeholder for the name of
the folder.
Create a virtual directory in Internet Information Services (IIS)
- Click Start, point to
Settings, and then click Control
Panel.
- Double-click Administrative Tools, and
then double-click Internet Services Manager.
- In the Internet Information Services
window, double-click the computer name, and then click Default Web
Site.
- On the Action menu, point to
New, and then click Virtual
Directory.
- Complete the Virtual Directory Creation Wizard. Map the
folder Test to a virtual directory in IIS. Name the
virtual directory in IIS as
TestApplication.
Note TestApplication is a placeholder for
the virtual directory name in IIS.
Set the directory security of the virtual directory
- In IIS, click the virtual directory in IIS that was created
in the "Create a virtual directory in Internet Information Services (IIS)"
section of this article.
- On the Action menu, click
Properties. The
TestApplication Properties dialog
box appears.
- On the Directory Security tab, click
Edit under Anonymous access and authentication
control.
The Authentication Methods dialog box appears.
- Click to clear the Anonymous access check
box, and then click to select the Basic authentication (password is
sent in clear test) check box. A warning message appears.
- Click Yes.
- Click to clear the Integrated windows
authentication check box, and then click OK two
times.
Access the ASP page from Internet Explorer
- Start Microsoft Internet Explorer.
- In the address bar, type the following URL:
http://WebServerName/TestApplication/ExampleASP.asp
Note WebServerName is a placeholder for the
name of the Web server. - Click Go.
- In the dialog box that appears, type
MyUser in the User Name box, and then
type Test��123 in the Password
box.
Note MyUser is the user name and
Test��123 is the password that were created in step
1 of the "Create a user" section of this article. - Click OK.
Notice that the user
name and the password with which the ASP page is being accessed appears
correctly.
Access the ASPX page from Internet Explorer
- Start Internet Explorer.
- In the address bar, type the following URL:
http://WebServerName/TestApplication/ExampleASPX.aspx
Note WebServerName is a placeholder for the
name of the Web server. - Click Go.
- In the dialog box that appears, type
MyUser in the User Name box, and then
type Test��123 in the Password
box.
Note MyUser is the user name and
Test��123 is the password that you created in the
"Create a User" section of the article. - Click OK.
Notice that the user name that the ASPX page is accessed with is
displayed correctly but that the password that the ASPX page is accessed with
appears incorrectly. The characters that are specified in the password are
omitted.