Jeremy Allison
00f784ec91
libcli/smb: Fix smb2cli_write_recv() and smb2cli_write() to return the bytes written.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-08-15 09:07:05 +02:00
Stefan Metzmacher
60fa4c7305
s3:torture: make use of samba_tevent_context_init()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:47:48 +01:00
Stefan Metzmacher
0aac3c09f1
libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()
...
metze
2012-07-25 14:48:50 +02:00
Stefan Metzmacher
bb6761c127
s3:libsmb: remove unused cli_state->smb2.pid
...
metze
2012-07-25 12:15:05 +02:00
Stefan Metzmacher
d2ba9c36f3
s3:libsmb: remove cli_state->smb2.tid
...
metze
2012-07-25 12:15:03 +02:00
Stefan Metzmacher
79ccb96cd3
s3:torture/test_smb2: make a copy of smbXcli_tcon
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jul 25 00:10:47 CEST 2012 on sn-devel-104
2012-07-25 00:10:47 +02:00
Stefan Metzmacher
51af8b9600
libcli/smb: pass smbXcli_tcon to smb2cli_query_directory*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
370e7140bb
libcli/smb: pass smbXcli_tcon to smb2cli_query_info*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
6dc701c958
libcli/smb: pass smbXcli_tcon to smb2cli_set_info*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
6612c831a3
libcli/smb: pass smbXcli_tcon to smb2cli_flush*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
86a5ab731b
libcli/smb: pass smbXcli_tcon to smb2cli_write*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
697b82a619
libcli/smb: pass smbXcli_tcon to smb2cli_read*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
74f9b52e65
libcli/smb: pass smbXcli_tcon to smb2cli_close*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
32b33999db
libcli/smb: pass smbXcli_tcon to smb2cli_create*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
a41a1d176f
s3:test_smb2: copy the session_channel from the primary channel.
...
metze
2012-07-23 18:19:36 +02:00
Michael Adam
51b30c61f4
s3:torture:smb2: pass smb2-session-reconnect test (add generosity in error case)
...
samba checks tree before file, so we get a
STATUS_NETWORK_NAME_DELETED instead STATUS_FILE_CLOSED
when operating on a file handle on a invalid tree id.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-22 17:28:18 +02:00
Luk Claes
c140c5e459
s3/libsmb: Generalise cli_state in smb2 logoff calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 01:01:33 +02:00
Luk Claes
c7a1292628
s3/libsmb: Generalise cli_state in smb2 write calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 01:01:31 +02:00
Luk Claes
50d88c96bc
s3/libsmb: Generalise cli_state in smb2 query_directory calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:46:30 +02:00
Luk Claes
473363a807
s3/libsmb: Generalise cli_state in smb2 flush calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:45:53 +02:00
Luk Claes
87d890fdd9
s3/libsmb: Generalise cli_state in smb2 create calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:45:21 +02:00
Luk Claes
f6db3d7bef
s3/libsmb: Generalise cli_state in smb2 close calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:44:41 +02:00
Luk Claes
14473f37f5
s3-libsmb: Generalise cli_state in smb2 read calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-12 00:43:53 +02:00
Stefan Metzmacher
5252ddf74e
s3:torture/test_smb2: add support for PROTOCOL_SMB3_00
...
metze
2012-05-06 14:50:39 +02:00
Stefan Metzmacher
6aa601b151
s3:torture: do some query_info and set_info calls in SMB2-SESSION-REAUTH
...
metze
2012-05-06 14:50:39 +02:00
Stefan Metzmacher
65d42ab727
s3:torture/test_smb2: test path based calls during reauth in SMB2-MULTI-CHANNEL
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb 29 07:23:14 CET 2012 on sn-devel-104
2012-02-29 07:23:14 +01:00
Stefan Metzmacher
300ab04a07
s3:torture/test_smb2: test handle based calls during reauth in SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:11 +01:00
Stefan Metzmacher
2fced53cfe
s3:torture/test_smb2: do a reauth over multiple channels in SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:11 +01:00
Stefan Metzmacher
670ea3e3a3
s3:torture/test_smb2: add a 3rd channel to SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:10 +01:00
Stefan Metzmacher
c0dac92b42
s3:torture/test_smb2: expect FILE_CLOSED on invalid handles in SMB2-MULTI-CHANNEL
...
metze
2012-02-29 05:49:10 +01:00
Stefan Metzmacher
43dd033618
s3:torture/test_smb2: test a tree_connect during reauth
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Feb 28 06:58:44 CET 2012 on sn-devel-104
2012-02-28 06:58:44 +01:00
Stefan Metzmacher
c64a85ee19
s3:torture/test_smb2: check directory listing during reauth
...
metze
2012-02-28 05:22:50 +01:00
Michael Adam
727f3ee6ac
s3:libsmb:smb2: pass previous session ID to session setup, not previous session
...
We only need the session, and under some circumstances, it might complicate
things for the caller to have to cope with the whole structure (talloc...).
2012-02-28 00:08:52 +01:00
Stefan Metzmacher
b8407c22d9
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
2012-02-27 16:29:02 +01:00
Stefan Metzmacher
f8cd6e8b59
s3:torture/test_smb2: show that a session is valid during a multi-leg reauth
...
metze
2012-02-27 14:55:15 +01:00
Stefan Metzmacher
1444d4900f
s3:torture/test_smb2: fix missleading file name in reauth test
...
metze
2012-02-27 14:55:15 +01:00
Stefan Metzmacher
aa4331be9e
libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the signing_key
...
The signing_key is fix across all channels and is used for session setups
on a channel binding.
Note:
- the last session setup response is signed with the new channel signing key.
- the reauth session setups are signed with the channel signing key.
It's also not needed to remember the main session key.
metze
2012-02-27 12:51:33 +01:00
Stefan Metzmacher
18cd0b789e
s3:torture/test_smb2: remove explicit smb2_signing_check_pdu()
...
smb2cli_session_set_session_key() already checks the signature
and that function really knows the signing key.
metze
2012-02-27 12:51:33 +01:00
Stefan Metzmacher
c45cb3353b
s3:torture/test_smb2: a reauth doesn't update the session/signing key
...
metze
2012-02-27 12:51:33 +01:00
Andrew Bartlett
662c557b36
s3-torture convert smb2 test to use auth_generic/gensec for NTLMSSP
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 6 12:09:12 CET 2012 on sn-devel-104
2012-01-06 12:09:12 +01:00
Stefan Metzmacher
893d7921a1
s3:SMB2-SESSION-RECONNECT: also expect NETWORK_NAME_DELETED is signing isn't used
...
metze
2012-01-06 08:31:16 +01:00
Stefan Metzmacher
32317b0529
s3:torture/test_smb2: also try PROTOCOL_SMB2_24
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 22 17:47:17 CET 2011 on sn-devel-104
2011-12-22 17:47:17 +01:00
Stefan Metzmacher
bfbfcd1a51
s3:torture: test smb2cli_logoff and smb2cli_tdis
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov 24 20:36:31 CET 2011 on sn-devel-104
2011-11-24 20:36:31 +01:00
Stefan Metzmacher
a5322366d8
s3:torture: add SMB2-SESSION-REAUTH
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
2a04959ba1
s3:torture: add SMB2-MULTI-CHANNEL test
...
metze
2011-11-24 19:02:33 +01:00
Michael Adam
4c29389c04
s3:torture: add a new test SMB2-TCON-DEPENDENCE
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-24 19:02:33 +01:00
Michael Adam
1fef161d2a
s3:torture:smb2: add SMB2-SESSION-RECONNECT test
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
a312a8c788
s3:torture: use cli_tree_connect() instead of smb2cli_tcon()
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
5c97bbf3ef
s3:torture: replace smb2cli_sesssetup_ntlmssp() with the more generic cli_session_setup()
...
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
773d0a6add
s3:torture: add SMB2-NEGPROT test
...
metze
2011-11-24 19:02:32 +01:00