Amazon.com Widgets

Automatic Windows Authentication with Firefox network.automatic-ntlm-auth.trusted-uris

by Greg on Mar.15, 2008, under Internet

One of the main reasons I don’t use Firefox in an Intranet environment, is due to the logon prompt from IIS Windows Authentication. I keep having problems with IE7 on Vista losing the auto-NTLM auth, where it asks for my password, when it’s supposed to just log me in based on my domain logon! ARgh! So I started Google-ing and found out that Firefox can do this too!!! I never knew that, in all these years of Firefox use!

You have to set which sites are allowed to do this though. But that’s fine, not like I login with NTLM all over the place, just a couple sites from the Intranet. Go to about:config in Firefox, lookup all the “network:auth” items and you’ll see this one:

network.automatic-ntlm-auth.trusted-uris

Open that, and enter the website address. (even port if needed) BAM! That’s it!

For example:

webapp.servername.local:8080

This will use automatic NTLM logons based on your windows logon. But note: I do not know if this works if your machine is not a member of a domain.




8 Comments for this entry

  • Greg

    Someone left a comment and I think I bulk deleted it on accident. Whoever you are, sorry about that. If you like, post again, I’ll remove my comment.

    Anyway, your comment on adding multiple sites is a good point. So to add more than one site to this list, just use comma separated list. (site1.com, site2.net, etc)

  • Steve

    Where the heck is about:config? Firefox 2.0.

  • Greg

    about:config is like a Mozilla “registry” of settings builtin to it. You get to it by typing that directly in your URL address bar. Like you are browsing to it.

  • BOLL

    Oooh, this is nice :) Now I can use Firefox (without IEtab) for our company intranet! Thanks! I always, like you, assumed that automatic Windows Authentication was unavailable for Firefox :O

  • Jonix

    Quite important though, the comma seperated list is actually comma and space seperated. It didn’t work at first, until I put a space after the comma.

  • Vladimir Kelman

    Is there a way to read about:config (network.automatic-ntlm-auth.trusted-uris) settings from JavaScript? (Or maybe from HTTP headers in a server-side code?)

  • Greg

    I am not sure if you can do that from Javascript. You might need to Google a bit on that one. I can see that might be handy, but maybe there are security implications allowing access to some of that data in about:config.

    Thanks for the comment! (and question)

  • Vladimir Kelman

    Yes, it probably would be dangerous to be able to modify it, but it would be nice to read it! On my “DualLogin” page (ASP.NET, C#) I display a “Use Windows Credentials” link which allows domain users to login without submitting username/password explicitly (it then verifies automatically passed username against application’s database and uses FormsAuthentication.RedirectFromLoginPage().
    I’m displaying that link only for internal users (IP check) and, currently, only for IE users, because I don’t want that automatic authentication pop-up. If it was possible to read network.automatic-ntlm-auth.trusted-uris settings, I would display this link for some Firefox users as well…

Leave a Reply

Spam Protection by WP-SpamFree

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

1st Byte Solutions