Enabling NTLM Authentication Single Sign-On (SSO) in Internet Explorer

Internet Explorer supports NTLM authentication out of the box. It should just work for intranet hosts, but you can add other hosts to the security settings:

Internet Explorer: Tools → Internet Options → Security → Local Intranet → Sites
 

Adding trusted hosts can also be done through group policy.

You must also make sure either your Local security policy or Domain Group policy reflects the following:

Go to Local Security policy > Security settings > local policies > security options

Enabling NTLM Authentication Single Sign-On (SSO) in Firefox

How many of you have noticed that when you are using Internet Explorer and you browse to your companies intranet page that it will automatically authenticate you but when you use Firefox you will be prompted with a login box?

I recently, in searching for solutions to allow NTLM authentication with Apache, stumbled across how to set a preference in Firefox that will pass the NTLM authentication information to a web server. The preference is network.automatic-ntlm-auth.trusted-uris.

So how do you do it?

Automatic HTML form submission using Perl module WWW::Mechanize

Here is a short tip on how to automatically submit a HTML form using a Linux command line and perl script. For this example we would need a WWW::Mechanize perl module and some basic PHP website. Let's start with simple PHP website. The website will consist of two files:

form.php:

<form action="submit.php" method="post">
First Name: <input name="fname" type="text" />
Last Name: <input name="lname" type="text" />
<input type="submit" />
</form>

submit.php

Pages

Subscribe to kb.kaminskiengineering.com RSS