Hi all,
I'm planning an upgrade of some servers to Moodle 2.2 and I'd like some help with revamping ldap enrollments.
Currently (in 1.9) we enrol users into courses as per membership of an ldap group. This works fine in 2.2.
I've been looking at the nested groups options, and assuming I understand what that means (no guarantee) I'd like to get that working.
Given the following:
cn=Moodle_Group_One,cn=groups,ou=learning,ou=blah,o=com
objectclass:top
objectclass:groupOfUniqueNames
cn:Moodle_Group_One
uniquemember:uid=xxx31,cn=users,ou=learning,ou=blah,o=com
I am successfully getting user 'xxx31' to get enrolled into a course with id 'Moodle_Group_one'.
However I'd also like to have a group of groups. In ldap I have made:
cn=Moodle_Group_All,cn=groups,ou=learning,ou=blah,o=com
objectclass:top
objectclass:groupOfUniqueNames
cn:Moodle_Group_All
uniquemember:cn=Moodle_Group_One,cn=groups,ou=learning,ou=blah,o=com
The ldap enrolment nested group settings are set to:
- enrol_ldap | nested_groups = Yes
- enrol_ldap | group_memberofattribute = uniquemember
I have a course with id 'Moodle_Group_All' but the user 'xxx31' is not getting enrolled onto this.
Have I understood how the nested groups option is supposed to work? Can someone spot what I'm doing wrong (happy to give more info, settings, etc if necessary to help diagnose)