diff --git a/main.go b/main.go index 32ce8f2..cea4385 100644 --- a/main.go +++ b/main.go @@ -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[:], ",")