Jump to content

Recommended Posts

Posted

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

 

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

Posted (edited)

Thanks for the reply. Using:

 

$ldaprdn  = '[email protected]';    
$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:

 

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.

Edited by painejake
Solved :)
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...