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

Add optional group/ldap-ou check #7

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

Conversation

klingtnet
Copy link

This PR adds an optional command line flag --ldap-ou which when specified checks if a user is member of the given group—or in LDAP terms organizational unit (ou).
Authorization fails if a group was specified and the user is not a member.
If no flag was given then the check is ignored.

Andreas Linz added 4 commits September 1, 2017 10:38
This adds the following command line flag `--ldap-group` to set the
group a user is checked against.
Make sure to not specify a organizational unit `ou` in your base DN
because otherwise either user or group searches will not work, at least
if `ou` is set to `people` or `groups`.
Group member check is not tested.
Rename group to the LDAP specific term _Organizational Unit_, or short OU to avoid misinterpretations.
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.

1 participant