This commit is contained in:
@@ -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[:], ",")
|
||||
|
||||
Reference in New Issue
Block a user