[SCM] Samba Shared Repository - branch master updated

Stefan Metzmacher metze at samba.org
Mon Feb 27 08:30:03 MST 2012


The branch, master has been updated
       via  b8407c2 s3:torture/test_smb2: show that a session is not valid for path based calls during reauth
       via  f8cd6e8 s3:torture/test_smb2: show that a session is valid during a multi-leg reauth
       via  1444d49 s3:torture/test_smb2: fix missleading file name in reauth test
      from  615c41c libcli/smb/smb2_signing: pass down 'protocol' to smb2_signing_[sign|check]_pdu()

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b8407c22d920df726c2e7dd0d92756ca8eb28dc9
Author: Stefan Metzmacher <metze at samba.org>
Date:   Mon Feb 27 13:23:53 2012 +0100

    s3:torture/test_smb2: show that a session is not valid for path based calls during reauth
    
    metze
    
    Autobuild-User: Stefan Metzmacher <metze at samba.org>
    Autobuild-Date: Mon Feb 27 16:29:02 CET 2012 on sn-devel-104

commit f8cd6e8b59343b6b8224f871fbcda9419b5b9502
Author: Stefan Metzmacher <metze at samba.org>
Date:   Mon Feb 27 13:18:42 2012 +0100

    s3:torture/test_smb2: show that a session is valid during a multi-leg reauth
    
    metze

commit 1444d4900fe68ccc5b30ee1c60395f1ad91d210c
Author: Stefan Metzmacher <metze at samba.org>
Date:   Mon Feb 27 13:26:00 2012 +0100

    s3:torture/test_smb2: fix missleading file name in reauth test
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 source3/torture/test_smb2.c |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index d75ab32..5b37213 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -1170,6 +1170,28 @@ bool run_smb2_session_reauth(int dummy)
 		return false;
 	}
 
+	status = smb2cli_flush(cli, fid_persistent, fid_volatile);
+	if (!NT_STATUS_IS_OK(status)) {
+		printf("smb2cli_flush returned %s\n", nt_errstr(status));
+		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,
@@ -1210,7 +1232,7 @@ bool run_smb2_session_reauth(int dummy)
 		return false;
 	}
 
-	status = smb2cli_create(cli, "multi-channel.txt",
+	status = smb2cli_create(cli, "session-reauth.txt",
 			SMB2_OPLOCK_LEVEL_NONE, /* oplock_level, */
 			SMB2_IMPERSONATION_IMPERSONATION, /* impersonation_level, */
 			SEC_STD_ALL | SEC_FILE_ALL, /* desired_access, */


-- 
Samba Shared Repository


More information about the samba-cvs mailing list