Skip to content

The bundle accepts to query several OU for user and roles#132

Open
gregservera wants to merge 3 commits into
BorisMorel:masterfrom
gregservera:master
Open

The bundle accepts to query several OU for user and roles#132
gregservera wants to merge 3 commits into
BorisMorel:masterfrom
gregservera:master

Conversation

@gregservera
Copy link
Copy Markdown

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

@atufkas
Copy link
Copy Markdown

atufkas commented Nov 11, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants