PHP NTLM now working with lighttpd/FastCGI

Previously, the PHP NTLM library relied on apache_request_headers which required mod_php on apache. On many setups including lighttpd, php fastcgi is used instead to execute php scripts. This meant that the ntlm script can’t be used – until now. I’ve modified the script to use the HTTP_AUTHORIZATION server variable available to CGI scripts and fallback to apache_request_headers. I’ve also did some minor fixes include fallback to use the hash() function if mhash is unavailable.

The latest version of the library is available from the php_ntlm github.

Tags: ,

One Response to “PHP NTLM now working with lighttpd/FastCGI”

  1. Hans says:

    Thanks, this is a life saver for me at work. We use SSO, makes it easy for the end user. But Apache was becoming a bit too much for my small server I got here. I can finally switch to something lighter :) .

Leave a Reply