How to get a cohort being syncronised with a ldap server ?

Re: How to get a cohort being synchronised with a ldap server ?

by Matjaž Mozetič -
Number of replies: 3

Hi.


Actually it seems it is working!! I just configured wrong some things.

Charles thank you for bringing back this plugin!


Regards,

Matjaž

In reply to Matjaž Mozetič

Re: How to get a cohort being synchronised with a ldap server ?

by Reed Glasener -

Thats great we still have not been able to get the group cohort sync to work what did you configure on the Group Class for Windows AD?




We have a windows 2008r2 and are able snyc users to moodle and wanted to sync cohorts
The AD group is CN=Engineering,OU=Training,OU=Domain Groups,DC=example,DC=com

We tried the following changes on the plugin the Group attribute as cn even tried department and tried Group Class as both group and groupOfNames 

Also used combinations of the following for the chort but still no sync.
Cohort 
Name Engineering
Chort ID CN=Engineering,OU=Training,OU=Domain Groups,DC=example,DC=com

Cohort 
Name Engineering
Chort ID Engineering

Cohort 
Name Engineering
Chort ID CN=Engineering

In reply to Reed Glasener

Re: How to get a cohort being synchronised with a ldap server ?

by Reed Glasener -

We got it going the plugin Linux permissions when installed did not allow execute on the PHP files.


Below is or settings for Windows AD to sync groups to cohorts.


We used in the plugin field names.

cn

group

sAMAccountName



Also on the LDAP authentications originally it was search two user OUs  we also added the OU where the groups are stored



Attachment Cohort-group-sync.PNG
In reply to Reed Glasener

Re: How to get a cohort being synchronised with a ldap server ?

by santosh dharamsale -

Hi All,


I Moodle 3.3 Bitnami and fresh configuration and when I am trying to sync cohorts I am getting the following message and no cohorts are getting sync in Moodle, we have production rollout not sure how to address if anyone has fix please let me know and I tried all the steps mentioned.


C:\Bitnami\moodle\php>php C:\Bitnami\moodle\apps\moodle\htdocs\admin\tool\task\c
li\schedule_task.php --execute=\local_ldap\task\group_sync_task
Execute scheduled task: Synchronize cohorts from LDAP groups (local_ldap\task\gr
oup_sync_task)
... used 1063 dbqueries
... used 27.389446020126 seconds
Scheduled task complete: Synchronize cohorts from LDAP groups (local_ldap\task\g
roup_sync_task)