authsuccess false when no groups
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-07-24 12:04:55 +10:00
parent ba5e949a9e
commit 2e8335c97d

View File

@@ -246,6 +246,7 @@ func main() {
// Since we have a successful connection, try getting group membership
groups, err := GetGroupsOfUser(*username, *baseDN, ldaps)
if err != nil {
output.AuthSuccess = false
output.Results = err.Error()
} else {
output.Groups = strings.Join(groups[:], ",")