LdapBundle icon indicating copy to clipboard operation
LdapBundle copied to clipboard

The bundle accepts to query several OU for user and roles

Open gregservera opened this issue 10 years ago • 1 comments

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).

gregservera avatar Sep 08 '14 13:09 gregservera

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?

atufkas avatar Nov 11 '14 12:11 atufkas