diff options
author | Andrew Bartlett <abartlet@samba.org> | 2018-05-24 13:49:11 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2018-05-25 10:01:22 +0200 |
commit | 4c354cd551715e98b9d016be6f1c6bc02a931192 (patch) | |
tree | e043ff4c501d26e625afd9dc150672c2f7229397 /source4 | |
parent | a9084dce29d9e0e76a3485edfca26add361988ba (diff) | |
download | samba-4c354cd551715e98b9d016be6f1c6bc02a931192.tar.gz |
torture: Give extra information on WINBINDD_SHOW_SEQUENCE failure
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/winbind/struct_based.c | 22 |
1 files changed, 21 insertions, 1 deletions
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; |