Skip to content

Commit

Permalink
Fix: indirect group membership is also a list
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-sidorenko committed Jun 17, 2021
1 parent e462fc5 commit dbdd675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ func loadSchema() (*Schema, error) {
// even though the schema doesn't say so. Assuming they are multivalued
// will work even if they end up actually being single-valued.
for _, p := range c.Params {
if strings.HasPrefix(p.Name, "member_") || strings.HasPrefix(p.Name, "memberof_") {
if strings.HasPrefix(p.Name, "member_") || strings.HasPrefix(p.Name, "memberof_") ||
strings.HasPrefix(p.Name, "memberindirect_") || strings.HasPrefix(p.Name, "memberofindirect_"){
p.Multivalue = true
}
}
Expand Down

0 comments on commit dbdd675

Please sign in to comment.