Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gregservera
Copy link

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

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