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.
Are you following
LDAP authentication - MoodleDocs
Yes I am.
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.
AFAIK it should only continually bring this up if you haven't provided all the required fields on first login...

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.
Cheers, had a look and managed to edit the fields it needed. All sorted now!
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)