+ Post New Thread
Results 1 to 7 of 7
Virtual Learning Platforms Thread, Moodle and LDAP in Technical; Hi, I am in the process of setting up LDAP authentication with active directory on a 2003 domain with moodle. ...
  1. #1

    Join Date
    Dec 2007
    Posts
    140
    Thank Post
    12
    Thanked 2 Times in 2 Posts
    Rep Power
    14

    Moodle and LDAP

    Hi,

    I am in the process of setting up LDAP authentication with active directory on a 2003 domain with moodle. I have followed all the instructions on the moodle site and we are running an RM CC3 network.

    At the start I was getting bind errors whenever I tried to login as a user from AD, this was down to an incorrect bind username. This has since been resolved but now It just says "Invalid login" for every user account I try. My understanding is when a user who is listed in AD uses there credentials to login, their user details are then added to the moodle list of users.

    If I switch debugging on, this is the message I get when trying to login:

    Warning: ldap_search() [function.ldap-search]: Search: No such object in D:\Moodle\auth\ldap\auth.php on line 1653

    Warning: ldap_first_entry(): supplied argument is not a valid ldap result resource in D:\Moodle\auth\ldap\auth.php on line 1661

    Warning: ldap_search() [function.ldap-search]: Search: No such object in D:\Moodle\auth\ldap\auth.php on line 1653

    Warning: ldap_first_entry(): supplied argument is not a valid ldap result resource in D:\Moodle\auth\ldap\auth.php on line 1661

    Warning: ldap_search() [function.ldap-search]: Search: No such object in D:\Moodle\auth\ldap\auth.php on line 1653

    Warning: ldap_first_entry(): supplied argument is not a valid ldap result resource in D:\Moodle\auth\ldap\auth.php on line 1661

    Has anybody come across this problem before?

    We are using the latest moodle release.

    Thanks.

  2. #2
    penfold_99's Avatar
    Join Date
    Feb 2008
    Location
    East Sussex
    Posts
    929
    Thank Post
    56
    Thanked 162 Times in 114 Posts
    Rep Power
    67

  3. #3

    Join Date
    Dec 2007
    Posts
    140
    Thank Post
    12
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    Yes I am.

  4. #4

    Join Date
    Dec 2007
    Posts
    140
    Thank Post
    12
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    Managed to get it working now. The DN's for the containers were all incorrect. Used ldp.exe to find out the correct ones and it now works.

    On a separate note. On logging in the edit profile page keeps appearing and does so every time you login. Does anyone know how you can switch this off so the default page is home.

    Thanks.

  5. #5
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    888
    Thank Post
    84
    Thanked 234 Times in 193 Posts
    Rep Power
    82
    AFAIK it should only continually bring this up if you haven't provided all the required fields on first login...

  6. #6

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144
    Quote Originally Posted by ahunter View Post
    Managed to get it working now. The DN's for the containers were all incorrect. Used ldp.exe to find out the correct ones and it now works.

    On a separate note. On logging in the edit profile page keeps appearing and does so every time you login. Does anyone know how you can switch this off so the default page is home.

    Thanks.
    It will do this if you've not got all the required fields entered as said above. However by editing one of the moodle PHP files, you can change what fields are required and what fields are optional. Off the top of my head I can't remember what file, but I know it can be done. Search the moodle users site for changing mandatory fields, and I'm sure you'll find it.

    Mike.

  7. #7

    Join Date
    Dec 2007
    Posts
    140
    Thank Post
    12
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    Cheers, had a look and managed to edit the fields it needed. All sorted now!

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle LDAP
    By zag in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 17th July 2008, 10:12 AM
  2. Moodle LDAP authentication
    By FN-GM in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 25th May 2008, 11:58 AM
  3. Moodle LDAP integration
    By zag in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 13th March 2008, 03:03 PM
  4. Moodle and LDAP
    By GrumbleDook in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 28th March 2007, 04:02 PM
  5. Moodle LDAP Enrolment
    By Mike_R in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 6th December 2006, 02:33 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
  •