Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS username and password 1

Status
Not open for further replies.

fischadler

Programmer
May 31, 2002
258
MT
By mistake I have previously posted this question in the wrong forum, so here it is.

When running an ASP page through IE using the IIS that came with Windows XP Pro, pages work fine. However, when I test them on FireFox, I get this prompt below. Anyone knows how I can get rid of it, especially since I have no clue about what username and password it's talking about?

prompt.jpg


Thanks!

-Fischadler
 
Basically you have your IS authentication settings set to "Windows Authentication". The reason you get this in Firefox and not IE is because IE automatically sends your authentication information when asked (is, the auth info for whoever your logged in as). Firefox, on theother hand, does not. If you were to type your valid windows login info into that box it would load fine.

Generally unless there is some need for it to be running with Windows authentication it is better to not use it. I generally turn on anonymous access in the IIS settings than modify permissions on a case-by-case basis forthe virtual directories if one of them needs windows authentication.

If you don't have access to the general IIS settings or don't want to change those, you can still modify (or have modified) the Virtual Directory permissions for your virtual directory to disable windows authentication and use anonymous access.

-T

barcode_1.gif
 
I did as you said and now I am getting the page shown below on both browsers.
page.jpg

The settings are as shown below:
auth_methods.jpg


-Fischadler
 
Does the IUSR_HomePC account have access to the file you are requesting?
 
Sure, it's the same computer on which the site is located.

-Fischadler
 
No the resource is not under /inetpub/wwwroot. It is web shared, however. And, as explained above, it works fine in IE. The computer is stand alone and not part of a LAN.

-Fischadler
 
Because IE will resend the HTTP Request when the HTTP Response is 401 Access Denied. The second Request, and all subsequent Requests, will contain a value for the LOGON_USER portion of the Request header. IIS will retry using these credentials and you'll notice anything happened.

 
OK, so how do I make sure the IUSR_HomePC account has the access to the files being requested? I completely green in this.

-Fischadler
 
Painless NTLM authentication in Firefox

I've used Firefox heavily at work ever since they built NTLM authentication in, but have always been rather annoyed at how limited it is compared to the support built into IE. With IE there is no difference between accessing an intranet site that requires NTLM, and one that requires no authentication, assuming you're already logged into the network on your machine. Firefox on the other hand, would bring up its authentication dialog for each site, prompting for a username and password. Although allowing Firefox to save the password helped reduce the trouble to simply hitting Enter whenever such a box appeared, it was still annoying, and worse yet, slowed access to these servers.

After being notified by a server admin here that i was causing frequent authentication errors to show up in the logs, i decided it was time to investigate this problem further. Fortunately, a quick Google search brought me several hints at a solution, which was soon put in place.
The fix

1. In Firefox, type about:config into the address bar and hit enter. You should see a huge list of configuration properties.
2. Find the setting named network.automatic-ntlm-auth.trusted-uris (the easiest way to do this is to type that into the filter box at top).
3. Double-click this line, and enter the names of all servers for which NTLM is desired, separated by commas. Then press ‘OK’ to confirm.
4. Open the options dialog (Tools->Options menu), and on the General page press the Connection Settings button to get the proxy configuration dialog: (probably not needed)
5. Make sure the correct proxy server is configured, and that the same list of servers are listed in the No Proxy for: entryfield as were set in step #3. (probably not needed)


(Your Server Name will just be localhost)

Dodge20
 
Finally! A solution I could understand. Thanks, dodge20. This is the kind of answer I was looking for.

-Fischadler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top