Skip to content

Commit

Permalink
Revert removal of groups in example broker
Browse files Browse the repository at this point in the history
I don't remember why I removed those. Let's try reverting the change.

This partly reverts 7a1442f.
  • Loading branch information
adombeck committed Jan 23, 2025
1 parent af286fc commit ef61d99
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examplebroker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,11 +930,12 @@ func userInfoFromName(name string) string {
Groups []groupJSONInfo
Gecos string
}{
Name: name,
UUID: "uuid-" + name,
Home: "/home/" + name,
Shell: "/usr/bin/bash",
Gecos: "gecos for " + name,
Name: name,
UUID: "uuid-" + name,
Home: "/home/" + name,
Shell: "/usr/bin/bash",
Groups: []groupJSONInfo{{Name: "group-" + name, UGID: "ugid-" + name}},
Gecos: "gecos for " + name,
}

switch name {
Expand Down

0 comments on commit ef61d99

Please sign in to comment.