painejake Posted March 6, 2009 Posted March 6, 2009 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
penfold_99 Posted March 6, 2009 Posted March 6, 2009 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. 1
painejake Posted March 6, 2009 Author Posted March 6, 2009 (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 March 6, 2009 by painejake Solved :)
penfold_99 Posted March 6, 2009 Posted March 6, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now