authsuccess false when no groups
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
1
main.go
1
main.go
@@ -246,6 +246,7 @@ func main() {
|
|||||||
// Since we have a successful connection, try getting group membership
|
// Since we have a successful connection, try getting group membership
|
||||||
groups, err := GetGroupsOfUser(*username, *baseDN, ldaps)
|
groups, err := GetGroupsOfUser(*username, *baseDN, ldaps)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
output.AuthSuccess = false
|
||||||
output.Results = err.Error()
|
output.Results = err.Error()
|
||||||
} else {
|
} else {
|
||||||
output.Groups = strings.Join(groups[:], ",")
|
output.Groups = strings.Join(groups[:], ",")
|
||||||
|
Reference in New Issue
Block a user