summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-16 18:23:42 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-17 13:01:03 +1100
commit7226ba73a0519f853b53adc3591d2358ff7429b2 (patch)
tree63ffdffd11c83daf154a90396b3f5d25a353a2a7 /source4/torture/basic
parent9526487010fff240d2f55f29352e7f74d3cec65a (diff)
downloadsamba-7226ba73a0519f853b53adc3591d2358ff7429b2.tar.gz
samba-7226ba73a0519f853b53adc3591d2358ff7429b2.tar.bz2
samba-7226ba73a0519f853b53adc3591d2358ff7429b2.zip
s4-torture: add a special check for administrators and privileges
lsa privileges calls don't expand groups. darn.
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/denytest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/basic/denytest.c b/source4/torture/basic/denytest.c
index 6b7ae2614f..52b4d582e0 100644
--- a/source4/torture/basic/denytest.c
+++ b/source4/torture/basic/denytest.c
@@ -2715,17 +2715,17 @@ bool torture_maximum_allowed(struct torture_context *tctx,
owner_sid = dom_sid_string(tctx, sd_orig->owner_sid);
- status = smblsa_sid_check_privilege(cli,
- owner_sid,
- sec_privilege_name(SEC_PRIV_RESTORE));
+ status = torture_check_privilege(cli,
+ owner_sid,
+ sec_privilege_name(SEC_PRIV_RESTORE));
has_restore_privilege = NT_STATUS_IS_OK(status);
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));
+ status = torture_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 for %s - %s\n",
owner_sid,