Getting NTLM SSO to work with Moodle - Apache issue?
Trying to get SSO working on our WAMP Moodle box. LDAP is fine and has been working since we started using moodle, but would be nice if we could use it as the kids homepage without them having to sign in each time.
The setup so far:
Moodle 1.9.4+ (Build: 20090325)
Apache 2.2.3 (with mod_auth_sspi 1.0.4 v2.2.2)
on Windows 2003 server R2 SP2
LDAP Authentication is working fine (and has been since I set it up 1 1/2 years ago)
NTLM SSO is now enabled
Subnet set to 10.0.
Have edited httpd.conf to include
LoadModule sspi_auth_module modules/mod_auth_sspi.so
When I go to my moodle homepage it redirects and I get the 'Attempting Single Sign On via NTLM' page as I would expect but it brings up a windows authentication box asking for username and password for the site.
Both the Username and Password fields are blank.
Interestingly if I put my username in as just AdrianH@csm.local and my password it authenticates, but if I just put AdrianH and my password it won't authenticate and passes my to the normal login page.... which will accept AdrianH (without the csm.local) as my username.
So I'm guessing the NTLMSSO is either just picking up AdrianH as my username (without the csm.local), or, as the fields in the Windows style authentication box are blank when it comes (and I think this more likely) then it isn't picking up a username and password at all.
So I created a PHP file with following in the moodle directory which should print on screen my Username:
but when I run it I get nothing on screen. So I can only presume that either PHP or more likely Apache are at fault (not moodle) as they aren't able to show my credentials.
Has anyone got this working before? Or can anyone see what I might need to do within Apache to get this working....
.... or do I need to do something else?!
I've tried over at the Moodle forums and not had any luck (but I'm not the only one to have had similar problems.
Any help would be appreciated.