The Samba-Bugzilla – Attachment 4332 Details for
Bug 6283
(smbtorture test) torture_samba3_checkfsp() should initialize impersonation level in a NT CreateAndX request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add the "impersonation level" option in the test
impersonation.patch (text/plain), 1.79 KB, created by
Matthias Dieter Wallnöfer
on 2009-06-19 15:45:29 UTC
(
hide
)
Description:
Patch to add the "impersonation level" option in the test
Filename:
MIME Type:
Creator:
Matthias Dieter Wallnöfer
Created:
2009-06-19 15:45:29 UTC
Size:
1.79 KB
patch
obsolete
>diff --git a/source4/torture/raw/samba3misc.c b/source4/torture/raw/samba3misc.c >index 4ec8acc..6d6eabc 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)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6283
: 4332