Jeremy Allison
cf29863c69
Fix bug #9124 - Samba fails to set "inherited" bit on inherited ACE's.
...
Change se_create_child_secdesc() to handle inheritance correctly.
2012-08-30 10:08:50 -07:00
Stefan Metzmacher
28350aeaa1
libcli/smb: split out a smb_transport private library
...
metze
2012-08-25 01:39:41 +02:00
Stefan Metzmacher
5eec19bc83
libcli/smb: wscript_build => wscript
...
We'll need some configure checks in future.
metze
2012-08-25 01:39:41 +02:00
Jeremy Allison
aca444cbfc
Remove useless bool "upper_case_domain" parameter from ntv2_owf_gen().
...
The code in SMBNTLMv2encrypt_hash() should not be requesting case
changes on the domain name.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Aug 24 21:39:42 CEST 2012 on sn-devel-104
2012-08-24 21:39:41 +02:00
Jeremy Allison
cbdf6c5c51
Remove useless bool "upper_case_domain" parameter.
2012-08-24 10:57:11 -07:00
Jeremy Allison
43870fb2c8
Move uppercasing the domain out of smb_pwd_check_ntlmv2()
...
Allows us to remove a silly bool parameter.
Based on work done by "Blohm, Guntram (I/FP-37, extern)" <extern.guntram.blohm@audi.de>.
2012-08-24 10:57:01 -07:00
Björn Jacke
db075b0202
libcli: fix value of NT_STATUS_FILE_NOT_AVAILABLE
...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Wed Aug 22 01:30:06 CEST 2012 on sn-devel-104
2012-08-22 01:30:06 +02:00
Stefan Metzmacher
abf018e8b6
libcli/smb: make sure the SMB2_TRANSFORM pdu is complete
...
metze
2012-08-17 14:51:57 +02:00
Stefan Metzmacher
56fc7bc661
libcli/smb: support broken OS/2 error responses bug #9096
...
OS/2 skips the DATA Block in SMB1 responses.
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Aug 16 13:16:49 CEST 2012 on sn-devel-104
2012-08-16 13:16:48 +02:00
Stefan Metzmacher
d2d5fb1abf
libcli/smb: verify decrypted SMB2 pdus correctly
...
We need to make sure we got a encrypted response if we asked
for it.
If we don't get a encrypted response, we use a similar logic
as with signing to propagated wellknown errors to the higher
layer and set state->smb2.signing_skipped = true.
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Aug 15 16:26:26 CEST 2012 on sn-devel-104
2012-08-15 16:26:26 +02:00
Stefan Metzmacher
7a7e9b1c76
libcli/smb: fix parsing of compounded messages within a SMB2_TRANSFORM pdu
...
One SMB2_TRANSFORM pdu wraps multiple SMB2 pdus.
We inject the SMB2_TRANSFORM header to each response which was wrapped
inside. This allows the next layer to verify if the SMB2 pdu was encrypted.
metze
2012-08-15 14:45:21 +02:00
Stefan Metzmacher
84f6b0f962
libcli/smb: fix smb2cli_req_compound_submit for multiple encrypted messages
...
There should be only one SMB2_TRANSFORM header for all compound requests.
metze
2012-08-15 14:45:05 +02:00
Stefan Metzmacher
7ffee47bc6
libcli/smb: all flags except SMB2_HDR_FLAG_ASYNC should be cleared in a cancel request.
...
metze
2012-08-15 14:45:04 +02:00
Björn Jacke
13f8674a15
build: rename security → samba-security
...
there is a libsecurity on OSF1 which clasheѕ with our security lib. see bug #9023 .
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Aug 10 14:22:21 CEST 2012 on sn-devel-104
2012-08-10 14:22:20 +02:00
Stefan Metzmacher
528d3fe2ae
libcli/smb: do not set SMB2_TF_MSG_SIZE in the caller
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Aug 8 07:32:55 CEST 2012 on sn-devel-104
2012-08-08 07:32:55 +02:00
Stefan Metzmacher
143fb8403a
libcli/smb: smb2_signing_[en|de]crypt_pdu() check and set SMB2_TF_MSG_SIZE
...
metze
2012-08-08 05:37:56 +02:00
Stefan Metzmacher
83a746d7f5
libcli/util: add NT_STATUS_FILE_NOT_AVAILABLE
...
metze
2012-08-07 11:16:36 +02:00
Stefan Metzmacher
145335878b
libcli/smb: use forward declaration instead of includes
...
metze
2012-08-07 11:16:36 +02:00
Christian Ambach
4e91ccf16d
smbXcli: add some includes to fix compiler warnings
...
if smbXcli_base.h is included on its own, there are various compiler warnings
about implicitly declared struct iovec and smb2_create_blobs
2012-08-06 18:07:52 +02:00
Stefan Metzmacher
97be49c4d4
libcli/smb: add smb1cli_session_protect_session_key()
...
metze
2012-08-04 09:10:21 +02:00
Stefan Metzmacher
dbefd7d194
libcli/smb: add smb_key_derivation() for TREE_CONNECT_ANDX_EXTENDED_SIGNATURES support
...
metze
2012-08-04 09:10:21 +02:00
Stefan Metzmacher
b1a0fda73d
libcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header
...
metze
2012-08-04 09:10:21 +02:00
Stefan Metzmacher
d88a6c1dc3
libcli/smb: change smb_signing to skip the NBT_HEADER_SIZE internally
...
metze
2012-08-04 09:10:20 +02:00
Stefan Metzmacher
d3aaa1ebc8
libcli/smb: move some TCON related defines to smb_constants.h
...
metze
2012-08-01 14:17:16 +02:00
Stefan Metzmacher
2f4f2144f4
libcli/smb: remove unused smb2cli_session_application_key()
...
metze
2012-08-01 14:17:13 +02:00
Stefan Metzmacher
5f25567c2e
libcli/smb: add smbXcli_session_application_key()
...
metze
2012-08-01 14:17:12 +02:00
Stefan Metzmacher
7af537e66f
libcli/smb: allow resetting of the smb1 application_key
...
We need this untill we have fixed all callers...
metze
2012-08-01 14:16:01 +02:00
Stefan Metzmacher
68c1eec11d
libcli/smb: let smb1cli_session_set_id() reset the application_key
...
We have some callers which reuse smbXcli_session,
e.g. cli_state_set_uid()
metze
2012-08-01 13:35:21 +02:00
Stefan Metzmacher
c3cb672d38
libcli/smb: add smb1cli_session_set_session_key()
...
metze
2012-08-01 12:30:26 +02:00
Stefan Metzmacher
8cb6557d22
libcli/smb: add basic session->smb2.channel_sequence handling
...
metze
2012-07-26 10:02:07 +02:00
Stefan Metzmacher
fdd98675ac
libcli/smb: add SMB2_HDR_CHANNEL_SEQUENCE
...
metze
2012-07-26 10:02:07 +02:00
Stefan Metzmacher
ba14bc52da
libcli/smb: introduce a smb2cli_session
...
This maintains the shared state between multiple session
channels.
metze
2012-07-26 10:02:07 +02:00
Stefan Metzmacher
46e08eb75f
s3:libcli/smb: add SMB2_SESSION_FLAG_BINDING
...
metze
2012-07-26 00:12:17 +02:00
Stefan Metzmacher
5c3a0cbae0
libcli/smb: setup tcon->smb2.should_encrypt in smb2cli_tcon_set_values()
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jul 25 16:44:22 CEST 2012 on sn-devel-104
2012-07-25 16:44:22 +02: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
56aa419d87
libcli/smb: there's no PID field in the SMB2/3 header anymore
...
It's a reserved field...
metze
2012-07-25 12:15:05 +02:00
Stefan Metzmacher
7de4ae7f9f
libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()
...
metze
2012-07-25 12:15:04 +02:00
Stefan Metzmacher
a10fe7b252
libcli/smb: add smb2cli_tcon_capabilities()
...
metze
2012-07-25 12:15:03 +02:00
Stefan Metzmacher
20d43a1d30
libcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()
...
metze
2012-07-24 22:20:06 +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
b9100a7ac4
libcli/smb: pass down smbXcli_tcon to smb1cli_req_create/send() and smb1cli_trans*
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 24 21:22:44 CEST 2012 on sn-devel-104
2012-07-24 21:22:44 +02:00
Luk Claes
552dda970c
libcli/smb: add smbXcli_tcon structure
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-24 18:44:04 +02:00
Stefan Metzmacher
43b070d8dd
libcli/smb: pass down smbXcli_session to smb1cli_req_create/send() and smb1cli_trans*
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 24 00:08:58 CEST 2012 on sn-devel-104
2012-07-24 00:08:58 +02:00