+ Post New Thread
Results 1 to 8 of 8
Learning Network Manager Thread, Moodle Installation. Ldap Authentication in Technical; Hi, Wondering if anyone could help me. I have installed moodle once before and i managed to get it working ...
  1. #1

    Join Date
    Feb 2011
    Posts
    91
    Thank Post
    6
    Thanked 24 Times in 15 Posts
    Rep Power
    12

    Moodle Installation. Ldap Authentication

    Hi,

    Wondering if anyone could help me. I have installed moodle once before and i managed to get it working with ldap authentication. With some tweeking and help from people on the forum. Im rebuilding it on another server, but unforunately the original installation has died on me. i cannot boot to windows to check configurations etc.

    I know my ldap must be working cos i can use the ldp.exe tool and i can connect to the server and bind the User. When i try and login in to moodle i get invalid user or File not found error 404. If i check the dc's system logs it shows that the bind user i setup actually logs in. So that side must be working. Im 100% sure im pointing it to the right organisational units to find the users etc. I can only think its something to do with configuring the URL rewrite in IIS7

    I have entered - RewriteRule ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 as the rule from the moodle support pages. But not sure what the pattern should be, whether the rule needs the "rewriterule" at the beginning and or have [qsa] at the end as it suggests on the moddle pages..... Any help would be great.

    Its also weird becuase i get a mixture of the 404 error and invalid logon..... so really not sure whats going on and its really beginning to frustrate me.
    Last edited by Chunks_; 29th June 2011 at 10:25 AM.

  2. #2
    bart21's Avatar
    Join Date
    Aug 2009
    Location
    peterborough
    Posts
    405
    Thank Post
    79
    Thanked 54 Times in 52 Posts
    Rep Power
    20
    have you enabled the php_ldap dll in php.ini?

    The way to check is to create a file in your moodle root dir called phpinfo.php

    Paste the below into that file:
    <?php
    phpinfo();
    ?>

    then access the file via a browser, e.g moodle.school.sch.uk/moodle/phpinfo.php

    Look for extension = phpLDAP or LDAP (cant remember which off the top of my head)
    Last edited by bart21; 2nd July 2011 at 09:00 PM.

  3. #3
    bart21's Avatar
    Join Date
    Aug 2009
    Location
    peterborough
    Posts
    405
    Thank Post
    79
    Thanked 54 Times in 52 Posts
    Rep Power
    20
    @Chunks_

    did my post above help?

  4. #4

    Join Date
    Feb 2011
    Posts
    91
    Thank Post
    6
    Thanked 24 Times in 15 Posts
    Rep Power
    12
    Hi Bart21,

    Thanks for your reply ... i was on leave so only just got this... yes ldap is enabled in the php.ini

  5. #5
    bart21's Avatar
    Join Date
    Aug 2009
    Location
    peterborough
    Posts
    405
    Thank Post
    79
    Thanked 54 Times in 52 Posts
    Rep Power
    20
    have you deleted the local users with the same name as the ad user from the database.

    e.g student john smith has a local (non LDAP) moodle account smithj, you then enable LDAP and john smith tries to log in with his LDAP account (also smithj) he cant until you delete both from the db and let moodle create the ldap one in its cache.7

    nick

  6. #6

    Join Date
    Feb 2011
    Posts
    91
    Thank Post
    6
    Thanked 24 Times in 15 Posts
    Rep Power
    12
    Just to confirm .. PHPinfo gives me this info:

    ldap.jpg

    here is a screen shot of the event viewer showing that the ldap user is trying to logon to the server with sucsess...

    authentication.jpg

    There are no local users in moodle other than the first administrator account.

  7. #7

    Join Date
    Dec 2009
    Posts
    607
    Thank Post
    8
    Thanked 36 Times in 34 Posts
    Rep Power
    17
    show us a screen shot of the moodle ldap screen . what you have in there etc ( blank out password and username )

  8. #8

    Join Date
    Feb 2011
    Posts
    91
    Thank Post
    6
    Thanked 24 Times in 15 Posts
    Rep Power
    12
    ok sorted it now ... stupid darn thing ...

    added sAMAccountName to the user attribute to change the way it searched for the usernames - didnt think it was nessacary as it was "optional" so glanced over it - classic rtfm

    Thanks for your help

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle - LDAP Authentication
    By Hightower in forum Virtual Learning Platforms
    Replies: 8
    Last Post: 25th January 2010, 06:04 PM
  2. Moodle LDAP authentication stopped working for new users?
    By reggiep in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 5th January 2010, 08:33 PM
  3. IPCOP - ldap authentication?
    By spacehopper in forum How do you do....it?
    Replies: 2
    Last Post: 23rd September 2009, 11:00 AM
  4. Moodle LDAP authentication
    By FN-GM in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 25th May 2008, 11:58 AM
  5. MediaWiki LDAP AD authentication
    By plexer in forum How do you do....it?
    Replies: 7
    Last Post: 22nd February 2007, 08:54 AM

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
  •