LDAP2010/OUGroups
OUGroups allows to specify groups by OU definition, like
OU=Group1,DC=example,DC=org UID=User1,OU=Group1,DC=example,DC=org UID=User2,OU=Group1,DC=example,DC=org OU=Group2,DC=example,DC=org UID=User3,OU=Group2,DC=example,DC=org UID=User4,OU=Group2,DC=example,DC=org
It also could contain alias entries, such as:
aliasedEntryName=UID\=User1\,OU\=Group1\,DC\=example\,DC\=org,OU=Group2,DC=example,DC=org
Implementation
There should be a separate class that implements BaseGroupsBackend interface. It is not possible to implement such groups it just a configuration snippet based on LDAPGroups/CompositeGroups or any others.
It should follow the configuring style used in LDAPAuth and LDAPGroups.