+ Post New Thread
Results 1 to 4 of 4
Virtual Learning Platforms Thread, Moodle LDAP and Windows Active Dir in Technical; Well we're setting up a test Moodle server to go live early next week, seem to be having a issue ...
  1. #1
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14

    Moodle LDAP and Windows Active Dir

    Well we're setting up a test Moodle server to go live early next week, seem to be having a issue with LDAP. When trying to login using a user from the Windows Active Directory moodle throws back

    Code:
    LDAP-module cannot connect to any servers: Server: 'ldap://bws-sr-002.bishopwalsh.internal' Connection: 'Resource id #51' Bind result: ''
    Moodle is on Debian 4.0. I have installed the php LDAP module. It looks like the address isn't configured correctly however that its the address of the server with the active dir.

    Any help appreciated,

    Jay

  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
    hi jay,

    first i would take moodle out of the equation. try connecting using example 1 here PHP: ldap_bind - Manual this will allow you to check if the webserver is set-up correctly.

  3. Thanks to penfold_99 from:

    painejake (6th March 2009)

  4. #3
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14
    Thanks for the reply. Using:

    PHP Code:
    <?php

    $ldaprdn  
    'administrator@bishopwalsh.internal';    
    $ldappass '******';  
    $ldapconn ldap_connect("**.**.**.*")

            or die(
    "Could not connect to LDAP server.");

        if (
    $ldapconn) {

          
    $ldapbind ldap_bind($ldapconn$ldaprdn$ldappass);

                if (
    $ldapbind) {
                echo 
    ">LDAP bind successful";
           } else {
           echo 
    "LDAP bind failed";
      }

    }

    ?>
    Binds fine however. It was administrator@bishopwalsh.internal that did the job. Now however I get invalid login when trying to login to moodle. I think it may be to do with the contexts. They are currently set to:

    Code:
    ou=Bishopwalsh,ou=Users
    However it could be possible i have the pre-fixes wrong(?)

    Jay

    Edit: Solved the issue. Will post more detail later when the nets not playing up.
    Last edited by painejake; 6th March 2009 at 11:59 AM. Reason: Solved :)

  5. #4
    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
    hi jay,

    you need the contexts to have the full dn name

    ou=Bishopwalsh,ou=Users,dc=bishopwalsh,dc=internal

    but given you have sorted you should have this

SHARE:
+ Post New Thread

Similar Threads

  1. Best Practices: LDAP/Active Directory and Account Provisioning
    By cgabbadon in forum How do you do....it?
    Replies: 5
    Last Post: 16th December 2010, 10:48 AM
  2. Moodle and LDAP
    By ahunter in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 31st October 2008, 11:12 AM
  3. ubuntu & windows home dir
    By Domino in forum *nix
    Replies: 4
    Last Post: 27th February 2008, 01:02 PM
  4. Moodle and LDAP
    By GrumbleDook in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 28th March 2007, 04:02 PM
  5. Authenticating MRBS against Active Directory using LDAP
    By Wizzer in forum Web Development
    Replies: 2
    Last Post: 26th January 2006, 04:21 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
  •