+ Post New Thread
Results 1 to 3 of 3
Virtual Learning Platforms Thread, NTLM, Samba, LDAP and SSO on Moodle in Technical; Hi Guys, I've been trying to set up SSO using Apache on the debian server, the users are authenticate using ...
  1. #1

    Join Date
    Feb 2006
    Location
    Staffordshire
    Posts
    134
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Angry NTLM, Samba, LDAP and SSO on Moodle

    Hi Guys,

    I've been trying to set up SSO using Apache on the debian server, the users are authenticate using LDAP (which works), I've built and configured the auth_ntlm_winbind_module, and configured winbind.

    Our moodle version is Moodle 1.9.4+ (Build: 20090422).

    wbinfo -u returns a list of all the users, so that works fine.

    I've set up a test file (ntlmTest.php) which does
    Code:
    echo "<pre>";
    var_dump($_SERVER);
    echo "</pre>";
    and the REMOTE_USER is being set by the NTLM as:
    OURDOMAIN\itrob
    so that part works,

    in the sites-enabled default file I've added
    Code:
    <Directory "/usr/moodle/www/auth/ldap/">
                    <Files ntlmsso_magic.php>
                       NTLMAuth on
                       AuthType NTLM
                       AuthName "Moodle NTLM Authentication"
                       NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
                       NTLMBasicAuthoritative on
                       require valid-user
                    </Files>
                    <Files ntlmTest.php>
                       NTLMAuth on
                       AuthType NTLM
                       AuthName "Moodle NTLM Authentication"
                       NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
                       NTLMBasicAuthoritative on
                       require valid-user
                    </Files>
            </Directory>
    and there are no errors in the /var/log/apache2/error.log file so this appears to be working ok ( plus that test file works, so again it's fine!)

    However! when I go to http://moodle it still presents me with a login page, I've added http://moodle to the trusted sites so IE should still send the NTLM information but I'm at a loss as to why it's just not working now!

    Bit more info:
    NTLM SSO is enabled,
    the subnet is 10.133.0.0/16
    and IE fast path is off.

    Does anyone have ANY idea as to why it's not doing the SSO, I think I'm going insane here!

    Thanks
    -Rob

  2. #2
    monkeyx's Avatar
    Join Date
    Nov 2006
    Posts
    364
    Thank Post
    8
    Thanked 52 Times in 41 Posts
    Rep Power
    25
    I last tried this with moodle 1.8 on a ubuntu server.

    I hit the same issues as you, in that the it never seemed to redirect me, yet I proved that the ntlm module was working.

    Recently upgraded to 1.9 so was planning to try again. Will be next week before I can test this so will let you know.

    If you make any progress on this then please let me know. You could maybe try this via firefox after setting network.automatic-ntlm-auth.trusted-uris in the browser.

  3. #3

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,808
    Thank Post
    272
    Thanked 1,135 Times in 1,031 Posts
    Rep Power
    349
    Sorry to drag up an old thread - did either of you get it working with 1.9?

    I know NTLM works as i'm using the same box for squid which auths fine.

    Any ideas?

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle & NTLM Authentication
    By alan-d in forum Virtual Learning Platforms
    Replies: 12
    Last Post: 15th December 2009, 02:19 PM
  2. Getting NTLM SSO to work with Moodle - Apache issue?
    By TheFopp in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 3rd April 2009, 10:17 AM
  3. SSO NTLM RADIUS???
    By PWright in forum Wireless Networks
    Replies: 0
    Last Post: 3rd March 2009, 11:52 AM
  4. Moodle and LDAP
    By ahunter in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 31st October 2008, 11:12 AM
  5. Moodle LDAP
    By zag in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 17th July 2008, 10:12 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •