<?php // This a copy taken 2008-08-21 from http://siphon9.net/loune/f/ntlm.php.txt to make sure the code is not lost. // For more information see: // http://blogs.msdn.com/cellfish/archive/2008/08/26/getting-the-logged-on-windows-user-in-your-apache-server.aspx // NTLM specs http://davenport.sourceforge.net/ntlm.html $headers = apache_request_headers(); if (!isset($headers[‘Authorization’])){ header(‘HTTP/1.1 401 Unauthorized’); header(‘WWW-Authenticate: NTLM’); exit; } $auth = $headers[‘Authorization’]; if (substr($auth,0,5) == ‘NTLM ‘) { $msg = base64_decode(substr($auth, 5)); if (substr($msg,…


Getting the logged on windows user in your apache server

I was recently involved in a discussion where a company was developing an intra-net site using Apache and PHP on a Windows server. All clients were windows and they wanted to know who was connecting to the intra-net site (only accessible inside the company firewall). And they wanted a SSO (single sign-on) experience for the users….


Selenium the test tool

I almost forgot that before the BDD/DDD presentation, there was a presentation about Selenium. I didn’t forget it because it was a bad presentation but because the following presentation was so good… I’ve never had any good experiences with tools for automatic testing but I must confess that Selenium looks nice.  At least if you…