s4-torture: show the sid we are basing privilege tests on
authorAndrew Tridgell <tridge@samba.org>
Fri, 16 Oct 2009 06:05:48 +0000 (17:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sat, 17 Oct 2009 02:01:02 +0000 (13:01 +1100)
source4/torture/basic/denytest.c

index 3414edf656f3e01a2028343646b4a30921ab415f..6b7ae2614fc8497a877787de8b1330245f0b19bd 100644 (file)
@@ -2719,13 +2719,17 @@ bool torture_maximum_allowed(struct torture_context *tctx,
                                            owner_sid, 
                                            sec_privilege_name(SEC_PRIV_RESTORE));
        has_restore_privilege = NT_STATUS_IS_OK(status);
                                            owner_sid, 
                                            sec_privilege_name(SEC_PRIV_RESTORE));
        has_restore_privilege = NT_STATUS_IS_OK(status);
-       torture_comment(tctx, "Checked SEC_PRIV_RESTORE - %s\n", has_restore_privilege?"Yes":"No");
+       torture_comment(tctx, "Checked SEC_PRIV_RESTORE for %s - %s\n", 
+                       owner_sid,
+                       has_restore_privilege?"Yes":"No");
 
        status = smblsa_sid_check_privilege(cli, 
                                            owner_sid, 
                                            sec_privilege_name(SEC_PRIV_BACKUP));
        has_backup_privilege = NT_STATUS_IS_OK(status);
 
        status = smblsa_sid_check_privilege(cli, 
                                            owner_sid, 
                                            sec_privilege_name(SEC_PRIV_BACKUP));
        has_backup_privilege = NT_STATUS_IS_OK(status);
-       torture_comment(tctx, "Checked SEC_PRIV_BACKUP - %s\n", has_backup_privilege?"Yes":"No");
+       torture_comment(tctx, "Checked SEC_PRIV_BACKUP for %s - %s\n", 
+                       owner_sid,
+                       has_backup_privilege?"Yes":"No");
 
        smbcli_close(cli->tree, fnum);
 
 
        smbcli_close(cli->tree, fnum);