Skip to content

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