Stefan Metzmacher
3c6808d5ed
s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytes
...
s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytes
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14 13:12:16 -07:00
Stefan Metzmacher
6626c836f3
s3:libsmb: let cli_write_max_bufsize() return the max number of possible bytes
...
s3:libsmb: let cli_write_max_bufsize() return the max number of possible bytes
We now return what's possible on the wire.
Which is 0x1FFFF - data_offset if CAP_LARGE_WRITEX is given by
the server (without signing) or 0xFFFFFF - data_offset
if CIFS_UNIX_LARGE_READ_CAP is available (without signing/sealing).
Otherwise we return max_xmit - data_offset.
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14 13:09:36 -07:00
Stefan Metzmacher
4c9b1841ed
s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes
...
s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes
We now return what's possible on the wire.
Which is 0xFFFF if CAP_LARGE_READX is given by the server
or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP
is available (without signing/sealing). Otherwise we return
max_xmit - data_offset.
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14 12:57:33 -07:00
Jeremy Allison
f261ac1932
Fix bug #8453 - smbclient segfaults when dialect option -m is used for legacy dialects
...
Ensure we have valid pointers.
2011-09-14 11:59:22 -07:00
Stefan Metzmacher
a6e8167e4a
s3:libsmb: return NT_STATUS_CONNECTION_DISCONNECTED instead of NT_STATUS_CONNECTION_INVALID
...
We should return the same in all places.
metze
2011-09-14 18:03:17 +02:00
Stefan Metzmacher
c682472fdf
s3:libsmb: make use of new advanded SMB signing
...
metze
2011-09-14 08:09:15 +02:00
Stefan Metzmacher
0a6d0f8eda
s3:smb_signing: add support for easier negotiation of SMB signing
...
We don't make use of it yet, but it will follow.
metze
2011-09-14 08:09:15 +02:00
Stefan Metzmacher
a26fe036fe
s3:smb2cli: split cli->smb2.gss_blob from cli->secblob
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 13 23:34:13 CEST 2011 on sn-devel-104
2011-09-13 23:34:13 +02:00
Stefan Metzmacher
7ba2bc35a3
s3:libsmb: make use of cli_state_server_time_zone()
...
metze
2011-09-13 21:53:07 +02:00
Stefan Metzmacher
d62f1e1e19
s3:libsmb: add cli_state_server_time()
...
metze
2011-09-13 21:53:07 +02:00
Stefan Metzmacher
4154b374d6
s3:libsmb: add cli_state_server_time_zone()
...
metze
2011-09-13 20:50:16 +02:00
Stefan Metzmacher
43976bdece
s3:libsmb: make use of cli_state_server_session_key()
...
metze
2011-09-13 20:49:27 +02:00
Stefan Metzmacher
7ec961d987
s3:libsmb: add cli_state_server_session_key()
...
metze
2011-09-13 20:49:27 +02:00
Stefan Metzmacher
fa5475ea9e
s3:libsmb: make use of cli_state_security_mode()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 13 19:45:01 CEST 2011 on sn-devel-104
2011-09-13 19:45:01 +02:00
Stefan Metzmacher
fbd5cb5835
s3:libsmb: add cli_state_security_mode()
...
metze
2011-09-13 18:12:23 +02:00
Stefan Metzmacher
7c405fd92c
s3:libsmb: make use of cli_state_max_requests() in cli_push_send()
...
metze
2011-09-13 18:12:23 +02:00
Stefan Metzmacher
c5072534bc
s3:libsmb: make use of cli_state_max_requests() in cli_pull_send()
...
metze
2011-09-13 18:12:23 +02:00
Stefan Metzmacher
dafeef47b4
s3:libsmb: add cli_state_max_requests()
...
metze
2011-09-13 18:12:23 +02:00
Stefan Metzmacher
38206f16bd
s3:libsmb: make sure cli->max_mux is valid in the return of the server
...
metze
2011-09-13 18:12:22 +02:00
Stefan Metzmacher
90d95f34f3
s3:libsmb: set the MID to 0 in cli_setup_packet_buf()
...
It's allocated when sending the request.
metze
2011-09-13 18:12:22 +02:00
Stefan Metzmacher
53c0f001f2
s3:libsmb: check that max_xmit is not less than 1024
...
metze
2011-09-13 18:12:22 +02:00
Stefan Metzmacher
09547b24ff
s3:libsmb: better expect a max_xmit of 1024 instead of 0xFFFF for the CORE protocol
...
metze
2011-09-13 18:12:22 +02:00
Stefan Metzmacher
80d2c2b00d
s3:libsmb: don't mix smb2 share capabilities with smb1 capabilities
...
metze
2011-09-13 18:12:22 +02:00
Stefan Metzmacher
a4548efe67
s3:libsmb: make use of cli_state_available_size() in cli_smbwrite()
...
metze
2011-09-13 13:16:09 +02:00
Stefan Metzmacher
96fc0d6018
s3:libsmb: make use of cli_state_available_size() in cli_write_max_bufsize()
...
metze
2011-09-13 13:16:09 +02:00
Stefan Metzmacher
c887e37275
s3:libsmb: make use of cli_state_available_size() in cli_read_max_bufsize()
...
metze
2011-09-13 13:16:09 +02:00
Stefan Metzmacher
a15fd83767
s3:libsmb: make use of cli_state_available_size() in cli_list_old_send()
...
metze
2011-09-13 13:16:08 +02:00
Stefan Metzmacher
76c1164406
s3:libsmb: make use of cli_state_available_size() in cli_sesssetup_blob_send()
...
metze
2011-09-13 13:16:08 +02:00
Stefan Metzmacher
afda15aa86
s3:libsmb: make use of cli_state_available_size() in cli_trans_format()
...
metze
2011-09-13 13:16:08 +02:00
Stefan Metzmacher
2a5f8daa3e
s3:libsmb: add cli_state_available_size()
...
metze
2011-09-13 13:16:07 +02:00
Volker Lendecke
ad85bd8003
s3: Make saf_join_key() use talloc
2011-09-13 11:00:14 +02:00
Volker Lendecke
0e5a876aa7
s3: Make saf_key() use talloc
2011-09-13 11:00:14 +02:00
Volker Lendecke
f55f4b8ce5
s3: Disentangle resolve_name() a bit
2011-09-13 11:00:13 +02:00
Stefan Metzmacher
85332eb1c7
s3:libsmb: check the wct of the incoming SMBnegprot responses
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Sep 12 20:50:27 CEST 2011 on sn-devel-104
2011-09-12 20:50:27 +02:00
Stefan Metzmacher
1dc3ac242a
s3:libsmb: let cli_pull_raw_error() return NT_STATUS_OK as DOS-Error success
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Sep 12 19:12:21 CEST 2011 on sn-devel-104
2011-09-12 19:12:21 +02:00
Stefan Metzmacher
a7e418dd45
s3:libsmb: add CLI_FULL_CONNECTION_FORCE_ASCII
...
metze
2011-09-08 17:51:30 +02:00
Stefan Metzmacher
db79aa7260
s3:libsmb: add CLI_FULL_CONNECTION_FORCE_DOS_ERRORS
...
metze
2011-09-08 17:51:29 +02:00
Stefan Metzmacher
189266d8ee
s3:libsmb: don't handle CLI_FULL_CONNECTION_* flags in cli_full_connection()
...
This is already done by cli_state_create().
metze
2011-09-08 17:51:29 +02:00
Stefan Metzmacher
39ffa0b789
s3:libsmb: don't handle CLI_FULL_CONNECTION_* flags in cli_start_connection()
...
This is already done by cli_state_create().
metze
2011-09-08 17:51:29 +02:00
Stefan Metzmacher
3e227d8544
s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
2011-09-08 10:21:50 +02:00
Stefan Metzmacher
cdca1e0ac3
s3:libsmb: pass CLI_FULL_CONNECTION_* flags to cli_state_create()
...
metze
2011-09-08 08:51:48 +02:00
Stefan Metzmacher
9005e0f7b3
s3:smb2cli: let smb2cli_req_create() use the give pid, uid and tid values
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 7 18:19:43 CEST 2011 on sn-devel-104
2011-09-07 18:19:43 +02:00
Stefan Metzmacher
2ec0634f28
s3:smb2cli: pass the uid to the SMB2_SESSION_SETUP to support multi-leg-auth
...
metze
2011-09-07 16:48:46 +02:00
Stefan Metzmacher
674f9cc1d9
s3:smb2cli: fix marshalling of smb2_create_blobs in smb2cli_create()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 7 10:21:55 CEST 2011 on sn-devel-104
2011-09-07 10:21:55 +02:00
Stefan Metzmacher
013d2abc75
s3:smb2cli: don't terminate the pathname in smb2cli_query_directory()
...
Windows generates NT_STATUS_OBJECT_NAME_INVALID otherwise.
metze
2011-09-07 08:33:41 +02:00
Stefan Metzmacher
96a3ec51b4
s3:smb2cli: don't terminate the pathname in smb2cli_create()
...
Windows generates NT_STATUS_OBJECT_NAME_INVALID otherwise.
metze
2011-09-07 08:33:41 +02:00
Stefan Metzmacher
817bb1f8f2
s3:smb2cli: don't terminate the pathname in smb2cli_tcon()
...
Windows generates NT_STATUS_BAD_NETWORK_NAME otherwise.
metze
2011-09-07 08:33:40 +02:00
Stefan Metzmacher
884a5a620f
s3:smb2cli: SMB2_TCON needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:33:38 +02:00
Stefan Metzmacher
85b393a199
s3:smb2cli: SMB2_WRITE needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:33:15 +02:00
Stefan Metzmacher
42609036be
s3:smb2cli: SMB2_READ needs one dyn byte to that the structure size check works.
...
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
2011-09-07 08:32:45 +02:00