I want to integrate a specific group of users that belongs to specific OU of an AD to integrate with Moodle

I want to integrate a specific group of users that belongs to specific OU of an AD to integrate with Moodle

by Farhad Arshad -
Number of replies: 2

I want to integrate a specific group of users that belongs to specific OU of an AD to integrate with Moodle. Please help me in this regards.

OU is production and its sub OU (OU in an OU) is IT and in IT there is group name LMSUsers that contains many users.

Now, what should be the distinguished name and what should be context?

Please help me in this regards.

Thank you in advance.


Average of ratings: -
In reply to Farhad Arshad

Re: I want to integrate a specific group of users that belongs to specific OU of an AD to integrate with Moodle

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Distinguished name needs to reference a user that has read (and write if you want to update from moodle) permissions on the ou in question.

The following references are from the understanding that IT ou is inside the production ou.  Replace yourdomain etc with your info.

Context should be: ou=IT,ou=production,dc=yourdomain,dc=com

If you want to further limit to only the LMSUsers groups - you need to add the following to Object Class:

(|(&(objectClass=user)(!(objectClass=computer))(memberOf=cn=LMSUsers,ou=IT,ou=production ,dc=yourdomain,dc=com)))

 

In reply to Emma Richardson

Re: I want to integrate a specific group of users that belongs to specific OU of an AD to integrate with Moodle

by Farhad Arshad -

It works smile

Secondly, the user in the groups are now authenticating but I am getting the error like database query aborted.Might be this is because I have 11000 users in the group. LMS can integrate 11000 users at once in DB.