Skip to content

Ability to check if user in ANY of listed groups rather than ALL #149

@scheerer

Description

@scheerer

It seems the current logic will AND the listed required_groups.

For instance this would require the user to be in ALL 4 groups.

  required_groups:
  # If an array is given, the first element will be the attribute to check against, the second the group name
   - ["memberOf", " CN=HD Admin,OU=Groups,OU=Corp,DC=test,DC=com"]
   - ["memberOf", " CN=HD Helper,OU=Groups,OU=Corp,DC=test,DC=com"]
   - ["memberOf", " CN=HD Reset,OU=Groups,OU=Corp,DC=test,DC=com"]
   - ["memberOf", " CN=Security,OU=Groups,OU=Corp,DC=test,DC=com"]

It is desirable to check if a user belongs to ANY 1 of the groups listed to allow access by returning true to in_required_groups? if the user belongs to 1 or more of the listed groups.

Perhaps a separate YAML config option to control this behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions