Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow targeting of specific OUs to create cohorts from #6

Open
upats opened this issue Nov 14, 2017 · 5 comments
Open

Allow targeting of specific OUs to create cohorts from #6

upats opened this issue Nov 14, 2017 · 5 comments
Assignees

Comments

@upats
Copy link

upats commented Nov 14, 2017

First off, thanks for continuing the support of this plugin!

It would be great if you could target one or more OUs that contain groups to create cohorts from. The way this plugin works with our AD structure is it creates a cohort for every single group we have in AD... many of those are not actively managed or are not relevant to our LMS. I know you can target groups based on their group class, but our environment does not differentiate groups based on that :( We differentiate managed groups based on the OU they reside in.

@mackensen mackensen self-assigned this Nov 15, 2017
@mackensen
Copy link
Collaborator

Restricting group-based cohort creation and synchronization by OU seems reasonable. This would be distinct from the existing context restrictions inherited from the LDAP plugin.

@FMCorz
Copy link

FMCorz commented Nov 17, 2017

A client of mine is also interested in this functionality.

@jcharaoui
Copy link

jcharaoui commented Jan 10, 2018


After looking at the code I see the configuration parameter is still taken into account. Put your OUs in `$CFG->cohort_synching_ldap_groups_contexts`, separated by semicolons.

@upats
Copy link
Author

upats commented Jan 12, 2018

good find @jcharaoui! I'm trying it now.

Would be nice to have this added to the settings page. Seems like it wouldn't be difficult since the logic is already in the search functions.

@aleko21
Copy link

aleko21 commented Feb 13, 2018

Dear all,
i need to solve the same issues. I put my OU in $CFG->cohort_synching_ldap_groups_contexts='ou1;ou2';
inside the main config.php file (in the moodle's root). Nothing happens when i launch the job (Synchronize cohorts from LDAP groups \local_ldap\task\group_sync_task).

What's my fault ? How i have to configure the LDAP syncing script ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants