summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@us.ibm.com>2012-07-11 13:48:55 -0700
committerAndrew Bartlett <abartlet@samba.org>2012-07-19 04:04:20 +0200
commit6305b4b64fea206150603f0de29c937d4e9afb3c (patch)
treeaea07b0745c683faadbeec71b1bd5b282b297e33 /source4/torture
parent8ef968a23dffb2e1c1518f7489d4ab0b14a71118 (diff)
downloadsamba-6305b4b64fea206150603f0de29c937d4e9afb3c.tar.gz
samba-6305b4b64fea206150603f0de29c937d4e9afb3c.tar.bz2
samba-6305b4b64fea206150603f0de29c937d4e9afb3c.zip
torture: Print SIDs as additional debug output in unix.whoami
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/unix/whoami.c4
1 files changed, 4 insertions, 0 deletions
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]));
}
}