From 6305b4b64fea206150603f0de29c937d4e9afb3c Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Wed, 11 Jul 2012 13:48:55 -0700 Subject: torture: Print SIDs as additional debug output in unix.whoami --- source4/torture/unix/whoami.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4') diff --git a/source4/torture/unix/whoami.c b/source4/torture/unix/whoami.c index 8f608a8f67..bce68759f9 100644 --- a/source4/torture/unix/whoami.c +++ b/source4/torture/unix/whoami.c @@ -253,6 +253,8 @@ static bool smb_raw_query_posix_whoami(void *mem_ctx, torture_assert(torture, whoami->sid_list != NULL, "out of memory"); + torture_comment(torture, "\tSIDs:\n"); + for (i = 0; i < whoami->num_sids; ++i) { if (!whoami_sid_parse(mem_ctx, torture, &tp.out.data, &offset, @@ -260,6 +262,8 @@ static bool smb_raw_query_posix_whoami(void *mem_ctx, return false; } + torture_comment(torture, "\t\t%s\n", + dom_sid_string(torture, whoami->sid_list[i])); } } -- cgit