title: Single Sign On with apache on windows 7 and mod_auth_sspi
body: <p>I am running a apache (xampp 1.7.3) server on my local windows 7 PC. This PC is connected to a LAN and a Active Directory domain called "colours". My local username is CHRISTOPHER-PC/Christopher, and the domain username is COLOURS/Christopher.</p>
  
  <p>For admin connection to the AD server, I use a PHP scripted called <a href="http://adldap.sourceforge.net/" rel="nofollow noreferrer">adLDAP</a>. As default, this script (examples/authenticate.php) gives the user two input fields for login. This works fine.</p>
  
  <p>But I want my users to auto sign in if they are logged in to their AD account. For this I'm trying to use the <a href="https://sourceforge.net/projects/mod-auth-sspi/" rel="nofollow noreferrer">mod_auth_sspi module</a>. But I'm having some problems... :\</p>
  
  <p><strong>My httpd.conf looks like this:</strong></p>
  
  <pre><code>&lt;Directory "C:/xampp/htdocs"&gt;
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
  
    AuthName "A Protected Place"
    AuthType SSPI
    SSPIAuth On
    SSPIAuthoritative On
    SSPIDomain colours
    SSPIOfferBasic On
    SSPIBasicPreferred On
    require valid-user
  &lt;/Directory&gt;
  </code></pre>
  
  <p>When i go to <a href="http://localhost/" rel="nofollow noreferrer">http://localhost/</a> or <a href="http://my-ip-address/" rel="nofollow noreferrer">http://my-ip-address/</a> (from another computer) i dialogue box pops up and asks for the domain username and password. I know that this is caused by "require valid-user", but if I remove it the user is not auto logged in. </p>