Andrew Bartlett
5ad7665b63
libcli/smb: Convert struct smb_trans_enc_state to talloc
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-31 20:17:10 +01:00
Andrew Bartlett
fce53e0e79
s3-libsmb: Remove unused enum smb_trans_enc_type
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-31 20:17:10 +01:00
Stefan Metzmacher
f6fb55aeae
libcli/util: fix typo in nt_errs[] for NT_STATUS_NETWORK_SESSION_EXPIRED
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jan 29 14:11:12 CET 2012 on sn-devel-104
2012-01-29 14:11:12 +01:00
Stefan Metzmacher
c543ce1028
libcli/smb: fix smbXcli_negprot(..., PROTOCOL_NT1, PROTOCOL_SMB2_02)
...
The SMB1 negprot request already consumed the SMB2 sequence '0'.
This also happens for the SMB 2.02 case.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 27 15:27:41 CET 2012 on sn-devel-104
2012-01-27 15:27:40 +01:00
David Disseldorp
af6bf7714d
lib: use differing NTSTATUS and WERROR struct members
...
This allows the compiler to catch uses of incorrectly typed arguments
for [NT_STATUS|W_ERROR]_IS_OK() and [NT_STATUS|W_ERROR]_EQUAL(). I.e.
WERROR werr;
werr = my_fn(); /* XXX returns WERROR type */
if (NT_STATUS_EQUAL(werr, NT_STATUS_OBJECT_NAME_COLLISION)) {
2012-01-23 12:18:20 -08:00
Andrew Bartlett
e175d25c68
s3-libsmb: Always allow SMB_TRANS_ENC_GSS to be defined
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jan 21 01:28:54 CET 2012 on sn-devel-104
2012-01-21 01:28:53 +01:00
Andrew Bartlett
58916c047d
s3-libsmb: Remove unused smb_tran_enc_state_gss and gssapi headers
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-20 23:55:55 +01:00
Andrew Bartlett
41ed715d42
s3-libsmb: use struct gensec_security directly
...
This is rather than via a now one-element union.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-20 23:55:55 +01:00
Andrew Bartlett
06f7105490
s3-libcli Change krb5 smb sealing to call via gensec and gensec_gse
...
This also fixes the support for smb sealing with krb5 in make test, as
this now relies on secrets.tdb rather than /etc/krb5.keytab.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-20 23:55:54 +01:00
Andrew Bartlett
b69c40ffce
auth/kerberos: Remove unused TALLOC_CTX argument to check_pac_checksum
2012-01-12 18:02:54 +11:00
Jeremy Allison
f15cf9176d
Second part of fix for bug #8673 - NT ACL issue.
...
Ensure we process the entire ACE list instead of returning ACCESS_DENIED
and terminating the walk - ensure we only return the exact bits that cause
the access to be denied. Some of the S3 fileserver needs to know if we
are only denied DELETE access before overriding it by looking at the
containing directory ACL.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jan 11 19:24:53 CET 2012 on sn-devel-104
2012-01-11 19:24:53 +01:00
Andrew Bartlett
19deda26d0
krb5: Require krb5_string_to_key be available to build with krb5
2012-01-10 21:50:07 +01:00
Andrew Bartlett
0c6af1e2da
krb5: Require krb5_principal_compare_any_realm be available to build with krb5
2012-01-10 21:50:07 +01:00
Andrew Bartlett
6b2e742d6c
krb5: Require krb5_c_verify_checksum is available to build with krb5
2012-01-10 21:50:07 +01:00
Volker Lendecke
f1432d14a4
libcli/smb: Add smbXcli_conn_samba_suicide
...
This is a pure test tool against Samba servers
2012-01-05 13:09:36 +01:00
Volker Lendecke
48804e40d4
Fix the build without kerberos
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jan 1 23:56:24 CET 2012 on sn-devel-104
2012-01-01 23:56:24 +01:00
Andrew Bartlett
9a085b0b80
auth/kerberos: Move gssapi_parse.c to the top level
...
This will help with writing a gensec module for the s3 gse layer.
Andrew Bartlett
2011-12-28 22:39:19 +11:00
Volker Lendecke
d4e834ec6c
lib: Fix NT_STATUS_ALL_SIDS_FILTERED definition
...
This seems to be more in line with all the other NT_STATUS definitions.
Metze, please check.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Dec 23 23:19:17 CET 2011 on sn-devel-104
2011-12-23 23:19:17 +01:00
Stefan Metzmacher
2bd2f3880e
libcli/smb: add PROTOCOL_SMB2_24 support
...
metze
2011-12-22 15:58:45 +01:00
Stefan Metzmacher
5bc242f4a2
libcli/smb: add SMB2_DIALECT_REVISION_224
...
This is specified in the new [MS-SMB2] preview document.
metze
2011-12-22 15:58:45 +01:00
Stefan Metzmacher
23a034335c
libcli/util: add NT_STATUS_NETWORK_SESSION_EXPIRED and NT_STATUS_ALL_SIDS_FILTERED
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Dec 17 14:24:40 CET 2011 on sn-devel-104
2011-12-17 14:24:40 +01:00
Volker Lendecke
a77b0dd7b8
libcli: Remove an unused variable
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Dec 12 23:21:49 CET 2011 on sn-devel-104
2011-12-12 23:21:49 +01:00
Andrew Bartlett
c9d929af8b
s4-lsarpc handle more info levels in SetInfoTrustedDomain calls
...
This uses the very helpful conversion functions written for the s3 lsa server
and places these in common.
Andrew Bartlett
2011-12-12 12:57:07 +01:00
Stefan Metzmacher
13dbef241b
smbXcli: add support for SMBreadBraw
...
metze
2011-11-29 16:00:08 +01:00
Stefan Metzmacher
e450c45e67
smbXcli: add smb1cli_conn_server_{readbraw,writebraw,lockread,writeunlock}()
...
metze
2011-11-29 16:00:08 +01:00
Stefan Metzmacher
51a7201a12
smb1cli_trans: add support for tevent_req_cancel()
...
metze
2011-11-29 16:00:08 +01:00
Stefan Metzmacher
524d06615f
smb1cli_trans: return the status from the server if possible
...
metze
2011-11-29 16:00:08 +01:00
Stefan Metzmacher
f0d8038ed8
smbXcli: rebuild smb1.recv_iov array if we expect more than one response
...
metze
2011-11-29 16:00:07 +01:00
Stefan Metzmacher
8c7e7ee91b
smbXcli: allow up to 10 iovec elements for the bytes in smb1cli_req_create()
...
The smb1cli_trans_* code uses up to 6 elements, which was too much for
the current limit of 5.
metze
2011-11-29 16:00:07 +01:00
Stefan Metzmacher
3453665bcb
smbXcli: s/smb2cli_writev_done/smb2cli_req_writev_done
...
This is a better name and it matches smb1cli_req_writev_done
metze
2011-11-29 16:00:07 +01:00
Stefan Metzmacher
c9ca3bb492
smbXcli: call tevent_queue_stop() for the outgoing queue on disconnect
...
metze
2011-11-29 16:00:07 +01:00
Stefan Metzmacher
91cb09fa0c
smbXcli: use talloc_stackframe() instead of talloc_tos() in smb1cli_conn_signv()
...
metze
2011-11-29 16:00:07 +01:00
Stefan Metzmacher
9f6454af39
libcli/smb: remove unused smb_signing_set_bsrspyl() prototype
...
metze
2011-11-29 16:00:07 +01:00
Volker Lendecke
7491bd78d6
Fix Coverity ID 2638: OVERRUN_STATIC
2011-11-28 14:52:32 +01:00
Volker Lendecke
f094cc3ade
Fix Coverity ID 2639: UNUSED_VALUE
2011-11-28 14:52:31 +01:00
Volker Lendecke
d287fe5399
s3:libsmb: Fix a typo
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
a210d9fa05
s3:smbXcli: keep two fd per connection in order to work with the epoll tevent backend
...
metze
2011-11-24 19:02:33 +01:00
Stefan Metzmacher
da2027faf7
smbXcli: rework smb1cli_trans.c to use smbXcli_conn/smbXcli_req
...
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
c1db4a0d9f
smbXcli: cp source3/libsmb/clitrans.c libcli/smb/smb1cli_trans.c
...
metze
2011-11-24 19:02:32 +01:00
Stefan Metzmacher
bda3d491b4
smbXcli: add smb2cli_req_set_notify_async()
...
That can be used if the caller wants to be notified if
the async interim response arrives.
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
0995d68d59
smbXcli: add support for tevent_req_cancel() on smbXcli_req
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
91ffe696aa
smbXcli: fix smb signing for SMBntcancel
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
c2a39f4ecd
smbXcli: add smb2cli_session_create_channel()
...
This makes it possible to implement SMB 2.22 Multi-Channel
for testing.
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
99b3d57fc3
s3:smb2cli: make use of smbXcli_session and setup the session key for SMB2 signing
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
396d7a7dd3
smbXcli: add support for smb2 signing
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
3fd54b57c1
smbXcli: add smbXcli_session infrastructure
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
4435dad827
smbXcli: add support for PROTOCOL_SMB2_22 in smbXcli_negprot()
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
9d06e0fcc7
smbXcli: add support for SMB2 multi-credit requests
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
d533543166
smbXcli: add support for 2.??? negprot and PROTOCOL_SMB2_10
...
metze
2011-11-24 19:02:31 +01:00
Stefan Metzmacher
1cfeb3f8a0
smbXcli: pass client_guid to smbXcli_conn_create()
...
metze
2011-11-24 19:02:31 +01:00