Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted
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.

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...