Im trying to configure moodle so it authenticates users with LDAP on a Mac OS X 10.4 Server box.
None of the information that I enter in under LDAP server settings, bind settings, and user lookup settings seems to work. I am returned with one of two errors:
1.) Error 25: a problem with binding to the LDAP Server
2.) After trying to login with a LDAP account, the application returns that it is an invalid login.
Does anyone have Moodle working with LDAP service on a Mac Server? Any tips would be greatly appriciated!
we aren't on a Mac server but we had a similar error on a Windows server when we first set up. I seem to recall that changing the bind account to being in the top most level of the directory tree and remembering to tell moodle to look in sub directories (or folders whichever term it uses) not just at the same level as the bind account fixed it. I have no idea whether doing only one or other of these two things would have fixed it, but both together made the problem go away.
I'm not saying your issue will be the same, but it might be a similar scenario.
Here's what I have (omitted attributes are left blank):
ldap_user_type: posixAccount (rfc2307)
First name: givenName
Email address: mail
Phone 1: telephoneNumber
I am still trying to figure out how to make the base dn look to a group instead of all users... the problem seems to be that Apple does not store the users in groups, but rather they are all stored in cn=users. Maybe someone else can help us?
Users are not stored in groups in any LDAP server I know of. They can certainly belong to groups, but they are stored in object containers (that most of the time are 'organizational units', but they can be other things, like 'users' in your example).
If you need to point Moodle to a subset of users, you can create a new organizational unit, move those users there and then point Moodle to the new organizational unit. That should do it.
I've not had any luck whatsoever in getting Moodle to read group information for Course Creators. For example, I want to enable a group in my open directory called 'teachers' as course creators. No luck.
Any more ideas? There doesn't seem to be much information on here or the net in general in regard to Moodle and OD authentication.