cschiewek/devise_ldap_authenticatable — pull request #101 by Prevole (2012-08-31 07:19:19+00:00)
Title: Allow configuration of group membership lookup attributes

In my company, we have several type of group in our LDAP directory. We have for example posixGroup, groupOfUniqueNames or groupOfNames.

Currently, this is not possible to retrieve ALL the groups for a user and therefore, I propose a way to configure how the groups are retrieved with a configuration like that in ldap.yml

```yaml
authorizations: &AUTHORIZATIONS
group_member_attributes: [ "uniqueMember", "member", "memberUid:uid" ]
```
In this configuration, we can lookup through uniqueMember and member attributes. In the case of posixGroup, the way to lookup is different from a comparison with the DN of the user like for other types. Then, the syntax groupAttributeName:userAttribute is possible to use an attribute directly got from the LDAP user.