+ Post New Thread
Results 1 to 13 of 13
Virtual Learning Platforms Thread, Moodle & NTLM Authentication in Technical; Anyone set up moodle to use NTLM authentication? Not knowing Php too well I cant seem to find where I ...
  1. #1
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Moodle & NTLM Authentication

    Anyone set up moodle to use NTLM authentication?

    Not knowing Php too well I cant seem to find where I put the IP addresses and subnets in the index.php. The moodle docs are too vague for me - I need a step by step idiots guide

    I have LDAP working ok but this would make it easier for users within the school.

    or

    If anyone has NTLM authentication running on Apache2.2 on a win 2003 server I may be able to fix my CMS problem too (see http://www.edugeek.net/index.php?nam...ewtopic&t=6889)

    Windows solutions only - *nix solutions are no good to me

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Moodle & NTLM Authentication

    Read this MoodleDocs article.

    http://docs.moodle.org/en/NTLM_authentication

  3. #3
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: Moodle & NTLM Authentication

    Thanks - I already have that. I just found out what I was doing wrong ops:

    I was looking to physically edit the index.php file instead of changing the settings from within moodles admin page ops:

    Now to see if I can get it to work

  4. #4
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: Moodle & NTLM Authentication

    Nope not working after all that - AARRRRGGGGGGG!!!!!!


    Has anyone got it working in moodle?

  5. #5

    Join Date
    Oct 2005
    Location
    Lancashire
    Posts
    110
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Moodle & NTLM Authentication

    Come on Geoff - wake up......................

    The answer is that it works well at Carr Hill on Moodle 1.7 (and on a test 1.8 machine). Breaks, not surprisingly, when AD is altered.

    What was the specific problem?

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Moodle & NTLM Authentication

    No, we don't use NTLM authentication. We use LDAP.

  7. #7
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: Moodle & NTLM Authentication

    Quote Originally Posted by mighty.grey.eagle
    What was the specific problem?
    No idea to be honest Set up as per instructions and it either can't find the page saying something like the browser can't find the page in question or states that NTLM authentication is not switched on.

    It was definately on as per instructions and I even added a few lines to apache to see if it was that but nope.

    I've reverted to using just LDAP for now so I can concentrate on other features.

  8. #8
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    Ok done this so far:

    • Ran sspipkgs.exe and everything seems fine.
    • copied mod_auth_sspi.so to Apache2.2\modules directory.
    • httpd.conf file to load the module and turn on SSPI auth for a directory (the config was copied from the Moodle.org guide)
    • Configured moodle to enable sso


    The version of moodle is 1.9 running on apache 2.2.3 which is on a 2003 server. I checked the apache error logs and this is what it says:

    Code:
    [Thu Feb 26 08:49:08 2009] [error] [client 192.168.10.1] unable to include potential exec "include/top.html" in parsed file C:/Program Files/Apache Software Foundation/Apache2.2/error/HTTP_UNAUTHORIZED.html.var, referer: http://moodleserver/moodle/auth/ldap/ntlmsso_attempt.php
    [Thu Feb 26 08:49:08 2009] [error] [client 192.168.10.1] unable to include potential exec "include/spacer.html" in parsed file C:/Program Files/Apache Software Foundation/Apache2.2/error/HTTP_UNAUTHORIZED.html.var, referer: http://moodleserver/moodle/auth/ldap/ntlmsso_attempt.php
    [Thu Feb 26 08:49:08 2009] [error] [client 192.168.10.1] unable to include potential exec "include/bottom.html" in parsed file C:/Program Files/Apache Software Foundation/Apache2.2/error/HTTP_UNAUTHORIZED.html.var, referer: http://moodleserver/moodle/auth/ldap/ntlmsso_attempt.php
    [Thu Feb 26 08:49:09 2009] [error] [client 192.168.10.1] unable to include potential exec "include/top.html" in parsed file C:/Program Files/Apache Software Foundation/Apache2.2/error/HTTP_UNAUTHORIZED.html.var, referer: http://moodleserver/moodle/auth/ldap/ntlmsso_attempt.php
    [Thu Feb 26 08:49:09 2009] [error] [client 192.168.10.1] unable to include potential exec "include/spacer.html" in parsed file C:/Program Files/Apache Software Foundation/Apache2.2/error/HTTP_UNAUTHORIZED.html.var, referer: http://moodleserver/moodle/auth/ldap/ntlmsso_attempt.php
    [Thu Feb 26 08:49:09 2009] [error] [client 192.168.10.1] unable to include potential exec "include/bottom.html" in parsed file C:/Program Files/Apache Software Foundation/Apache2.2/error/HTTP_UNAUTHORIZED.html.var, referer: http://moodleserver/moodle/auth/ldap/ntlmsso_attempt.php
    I get this error when I goto http://moodleserver/moodle/login, it says its trying to sign in but fails and goes back to 'normal' sign in.

  9. #9
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    Never mind figured it out, turns out there was a slight conflict in httpd.conf regarding server name. I didnt configure it so didnt know it was wrong. Well it seems to be working now.. Yippy.

  10. #10

    Join Date
    Feb 2008
    Posts
    43
    Thank Post
    17
    Thanked 5 Times in 2 Posts
    Rep Power
    14
    Sorry to reopen this old thread, but I've been reading through this and attempting it myself.

    I've set everything up as per instructions, and if I go to <moodleserver>/auth/ldap/ntlmsso_attempt.php it is signing me on using NTLM successfully. However, the home page and login page are just leaving me with the normal login screen.

    Any ideas what I need to do to polish this config off?

  11. #11

    Join Date
    Nov 2009
    Location
    Warwick
    Posts
    4
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    We alter the login block code so that when a user visits the frontpage of Moodle it logs them in automatically using NTLM. ( no need to actually visit the login page itself )

    Could pass the code on if you are interested...

  12. #12

    Join Date
    Feb 2008
    Posts
    43
    Thank Post
    17
    Thanked 5 Times in 2 Posts
    Rep Power
    14
    That would be very handy, so yes please.

    I'm familiar with PHP so should be interesting to see what you've changed.

  13. #13

    Join Date
    Dec 2009
    Location
    Peterborough
    Posts
    19
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Are you web servers in your DMZ? And did you manage to get SSO working whilst it is in the DMZ?

SHARE:
+ Post New Thread

Similar Threads

  1. Elgg authentication and Moodle
    By wesleyw in forum Virtual Learning Platforms
    Replies: 7
    Last Post: 14th February 2008, 01:34 AM
  2. Moodle Authentication - Shibboleth and/or IMAP
    By ICTNUT in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 18th May 2007, 01:25 PM
  3. Moodle authentication hosted on CLEO servers
    By dezt in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 29th March 2007, 08:03 PM
  4. Replies: 6
    Last Post: 27th February 2007, 08:00 PM
  5. MRBS + NTLM Authentication
    By Frazer in forum *nix
    Replies: 13
    Last Post: 29th June 2006, 02:00 PM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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