From 4c354cd551715e98b9d016be6f1c6bc02a931192 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 24 May 2018 13:49:11 +1200 Subject: [PATCH] torture: Give extra information on WINBINDD_SHOW_SEQUENCE failure Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- source4/torture/winbind/struct_based.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c index 9cf0102015a..7ea5aa785ae 100644 --- a/source4/torture/winbind/struct_based.c +++ b/source4/torture/winbind/struct_based.c @@ -805,7 +805,27 @@ static bool torture_winbind_struct_show_sequence(struct torture_context *torture ZERO_STRUCT(rep); fstrcpy(req.domain_name, domlist[i].netbios_name); - DO_STRUCT_REQ_REP(WINBINDD_SHOW_SEQUENCE, &req, &rep); + ok = true; + DO_STRUCT_REQ_REP_EXT(WINBINDD_SHOW_SEQUENCE, &req, &rep, + NSS_STATUS_SUCCESS, + false, ok = false, + "WINBINDD_SHOW_SEQUENCE"); + if (ok == false) { + torture_warning(torture, + "WINBINDD_SHOW_SEQUENCE on " + "domain %s failed\n", + req.domain_name); + + torture_comment(torture, + "Trust list for " + "WINBINDD_SHOW_SEQUENCE was:\n"); + for (i=0; domlist[i].netbios_name; i++) { + torture_comment(torture, "%s\n", + domlist[i].netbios_name); + } + + return false; + } seq = rep.data.sequence_number;