diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-06-20 22:47:19 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-06-29 18:04:24 +1000 |
commit | 15013090df1af6a4e8330f6708d5fc30174140a2 (patch) | |
tree | 409796dc85f7ccc775d3e78d6c996dca5deaf286 /source4/torture/raw | |
parent | 55ed0be65f07b46d51a647e556644039d68a002d (diff) | |
download | samba-15013090df1af6a4e8330f6708d5fc30174140a2.tar.gz samba-15013090df1af6a4e8330f6708d5fc30174140a2.tar.bz2 samba-15013090df1af6a4e8330f6708d5fc30174140a2.zip |
Adds the impersonation level in ntcreatex requests to SAMBA 3 misc torture test
Specifies the impersonation level according to the reporter commit in bug #6283
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/samba3misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/raw/samba3misc.c b/source4/torture/raw/samba3misc.c index 4ec8acc7c2..6d6eabce2d 100644 --- a/source4/torture/raw/samba3misc.c +++ b/source4/torture/raw/samba3misc.c @@ -99,6 +99,7 @@ bool torture_samba3_checkfsp(struct torture_context *torture) io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_NONE; io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN; io.ntcreatex.in.create_options = 0; + io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS; io.ntcreatex.in.fname = dirname; status = smb_raw_open(cli->tree, mem_ctx, &io); if (!NT_STATUS_IS_OK(status)) { @@ -897,6 +898,7 @@ bool torture_samba3_rootdirfid(struct torture_context *tctx) | NTCREATEX_SHARE_ACCESS_READ; io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN; io.ntcreatex.in.create_options = 0; + io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS; io.ntcreatex.in.fname = "\\"; status = smb_raw_open(cli->tree, tctx, &io); if (!NT_STATUS_IS_OK(status)) { @@ -918,6 +920,7 @@ bool torture_samba3_rootdirfid(struct torture_context *tctx) io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL; io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_NONE; io.ntcreatex.in.create_options = 0; + io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS; io.ntcreatex.in.fname = fname; status = smb_raw_open(cli->tree, tctx, &io); @@ -967,6 +970,7 @@ bool torture_samba3_oplock_logoff(struct torture_context *tctx) io.ntcreatex.in.share_access = NTCREATEX_SHARE_ACCESS_NONE; io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN_IF; io.ntcreatex.in.create_options = 0; + io.ntcreatex.in.impersonation = NTCREATEX_IMPERSONATION_ANONYMOUS; io.ntcreatex.in.fname = "testfile"; status = smb_raw_open(cli->tree, tctx, &io); if (!NT_STATUS_IS_OK(status)) { |