torture: Print SIDs as additional debug output in unix.whoami
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Wed, 11 Jul 2012 20:48:55 +0000 (13:48 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Jul 2012 02:04:20 +0000 (04:04 +0200)
source4/torture/unix/whoami.c

index 8f608a8f6746116e4f66839d488899d605e5ee6a..bce68759f95e98ef9b06faaa11523001630cedf2 100644 (file)
@@ -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]));
                }
        }