I need to use NTLM SSO for LMS authentication . I have a Windows machine with moodle version '2.8' .
(Using Wamp manager)
When I try to connect via an IE,it asks for username and password and then I see a page which comes after successful login.
When I try to connect via an Firefox ,it asks for username and password and then I see a page saying: Attempting Single Sign On via NTLM... And then: Auto-login failed, try the normal login page...
I then put the following script :
<?php
if (isset($_SERVER['REMOTE_USER']) && !empty($_SERVER['REMOTE_USER'])) {
echo "<p>NTLM authentication seems to be working. User: " . $_SERVER['REMOTE_USER'] . "</p>";
} else {
echo '<p>NTLM is not working</p>';
}
?>
To test the $_SERVER['REMOTE_USER'] existence, and I get the NTLM is not working. Just to be sure, I made a php to print the content of the $_SERVER variable. But no REMOTE_USER there.
Does anybody can help me getting out from this situation?
Thanks in advance for your help.
Best regards.
Komal Brade.
Hi all,
When I try to connect via an Firefox ,it asks for username and password and then I see a page saying:
Attempting Single Sign On via NTLM...
And then:
Auto-login failed, try the normal login page...
and again when I tries to connect , I can see a page which comes after successful login.
Regards,
Komal
Hi Komal,
Firefox needs some configuration settings to work with NTLM/SSO; Google will help you e.g.:
- https://www.liquidstate.net/enabling-ntlm-authentication-single-sign-on-in-firefox/
- http://superuser.com/questions/594049/how-to-enable-ntlm-for-all-intranet-sites-in-firefox
BTW, IE must work out-of-the-box if Moodle has been correctly configured: did you follow https://docs.moodle.org/28/en/NTLM_authentication?
HTH,
Matteo
Hi Matteo,
Thanks you for your help.
1) network.automatic-ntlm-auth.allow-non-fqdn : true
2) network.automatic-ntlm-auth.trusted-uris : to url to siete
Now after making above setting in Firefox browser,NTLM is working properly.
Thank you so much for your help.
Regards,
Komal.