diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-02-27 13:23:53 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-02-27 16:29:02 +0100 |
commit | b8407c22d920df726c2e7dd0d92756ca8eb28dc9 (patch) | |
tree | a9c071a4dfd579b2cbf3958ed680a5251525835e /source3/torture | |
parent | f8cd6e8b59343b6b8224f871fbcda9419b5b9502 (diff) | |
download | samba-b8407c22d920df726c2e7dd0d92756ca8eb28dc9.tar.gz samba-b8407c22d920df726c2e7dd0d92756ca8eb28dc9.tar.bz2 samba-b8407c22d920df726c2e7dd0d92756ca8eb28dc9.zip |
s3:torture/test_smb2: show that a session is not valid for path based calls during reauth
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Feb 27 16:29:02 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/test_smb2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index 1a9009a700..5b37213f12 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -1176,6 +1176,22 @@ bool run_smb2_session_reauth(int dummy) return false; } + status = smb2cli_create(cli, "session-reauth-invalid.txt", + SMB2_OPLOCK_LEVEL_NONE, /* oplock_level, */ + SMB2_IMPERSONATION_IMPERSONATION, /* impersonation_level, */ + SEC_STD_ALL | SEC_FILE_ALL, /* desired_access, */ + FILE_ATTRIBUTE_NORMAL, /* file_attributes, */ + FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, /* share_access, */ + FILE_CREATE, /* create_disposition, */ + FILE_DELETE_ON_CLOSE, /* create_options, */ + NULL, /* smb2_create_blobs *blobs */ + &fid_persistent, + &fid_volatile); + if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_HANDLE)) { + printf("smb2cli_create %s\n", nt_errstr(status)); + return false; + } + subreq = smb2cli_session_setup_send(talloc_tos(), ev, cli->conn, cli->timeout, |