theforeman/foreman — pull request #529 by eLobato (2013-04-17 10:46:51+00:00)
Title: Usergroups can be linked to an LDAP auth_source

This pull request lets usergroups be linked to an LDAP authentication source. This allows an organization to have foreman usergroups match its LDAP user groups, so that users that belong to LDAP user groups can be automatically matched to their equivalent usergroups in Foreman.

When you create a new usergroup and you want it to be linked to an LDAP source, It performs a check to make sure the usergroup exists in LDAP first. If it does not exist, it will not let the user create it.

Since LDAP information can change, there is a rake task attached that updates the foreman usergroup with this information.