Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Fix: indirect group membership is also a list #18

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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