Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login without username and password from the web browser on Windows

I heard that on Windows you can login from a web browser to the web server without going through the usual login entering username and password but using instead the credentials from Windows directly, using the NTLM protocol.

How is this achieved? Does the web server need to support some additional authentication?

Update: I'm asking for a generic web server, not just IIS. How to do that on Apache for instance?

like image 840
Janko Mivšek Avatar asked Dec 22 '22 13:12

Janko Mivšek


2 Answers

The webserver just needs to be configured to support Windows authentication (which will be NTLM, or - better - Kerberos if both client and server are W2K or later). I believe that IIS or Apache can be configured to do that.

The browser also has to support this - at least IE does so (not sure about the others, it may be possible). edit: looks like firefox has some support for this too, and safari on MacOS

edit: for details on apache, google modules for NTLM authentication. Kerberos modules also exist. as per other answers, this really only works on an Intranet - not just because the browser needs to be in an Intranet zone (only applies to IE), but because any intervening firewall will typically stop this working, and because the necessary interdomain trusts will probably not exist. It's also a bit trickier to make work if the apache server is on UNIX, and especially if you also have Kerberos servers on UNIX in the mix, but still possible.

like image 119
frankodwyer Avatar answered Apr 09 '23 11:04

frankodwyer


It will only be seamless in a specific situation; namely the webserver needs to support NTLM (for example, IIS), and it needs to be in a zone that the client is configured to trust (The "Intranet Zone" in IE parlance, unless the end user has tweaked their settings)

like image 30
Rowland Shaw Avatar answered Apr 09 '23 09:04

Rowland Shaw