LdapBundle
LdapBundle copied to clipboard
The bundle accepts to query several OU for user and roles
A simple modification to allow querying several OU with parameters.
You can use these two configurations transparently :
users:
- { base_dn: 'ou=people,dc=host,dc=foo', filter: (objectClass=Person), name_attribute: uid }
- { base_dn: 'ou=external people,dc=host,dc=foo', filter: (objectClass=Person), name_attribute: uid }
roles:
- { base_dn: 'ou=group, dc=host, dc=foo', filter: (objectClass=group), name_attribute: cn, user_attribute: member, user_id: dn }
- { base_dn: 'ou=other group, dc=host, dc=foo', filter: (objectClass=group), name_attribute: cn, user_attribute: member, user_id: dn }
Or
user:
base_dn: ou=people,dc=host,dc=foo
filter: (ObjectClass=Person)
name_attribute: uid
role:
base_dn: ou=group, dc=host, dc=foo
filter: (objectClass=group)
name_attribute: cn
user_attribute: member
user_id: dn
Or a mix of both (one user for several roles).
That's a feature I needed immediately in my environment. So I merged this pull request into branch "several-ou" of my own fork. Are you going to integrate this and other pull-requests - or - more generally: going to maintain this (nice) project any longer, Boris?