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
Stefan Metzmacher
ceb063ca7d
smbXcli: add smbXcli_negprot_*
...
This supports negotiation of any SMB1 or SMB2 dialect.
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
b958498c2a
smbXcli: add helper functions to access the negotiated features
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
1a0ce02a23
smbXcli: also notify chained requests about broken connections
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
4d8e151779
smbXcli: simplify smb1cli_req_chain_submit()
...
We should hang everything on the first request in the chain,
as that's the one that gets added to the pending array.
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
e2912fa853
smbXcli: remove unused smb1cli_have_andx_command()
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
fee3a0a657
smbXcli: reorder smb1cli_conn_dispatch_incoming() to avoid too much nesting
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
0f194e35a6
smbXcli: rework smb1cli_req_recv() to expose an iov with 3 elements
...
Each smb1cli_req has 3 iov elements
[SMB HDR, SMB Parameter Block, SMB Data Block].
The 'inbuf' is still exposed if the caller requires it
(until we fix all legacy callers).
The can now pass an array of expected [status,wct] combinations,
instead of just one expected min_wct.
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
ce224f4d25
smbXcli: use smb1cli_inbuf_parse_chain() and remember more details per chain response
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
7c5651c3f6
smbXcli: add smb1cli_inbuf_parse_chain()
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
94cb738dd4
smbXcli: pass hdr to smb1cli_pull_raw_error()
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
4529395d3c
smbXcli: add state->smb1.recv_{cmd,status,iov}
...
In the following commits we will need to remember a few more things.
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
5e7cf194d2
smbXcli: split out a smb1cli_req_flags() function
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
2a570e6305
smbXcli: set message id to UINT64_MAX for BREAK in smb2cli_req_create()
...
This way the caller can register an oplock handler.
Note that smb2cli_req_compound_submit() will overwrite this
if a request is send over the wire.
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
349977e1a0
s3:smb2cli: replace smb2cli_base.c code with the more generic smbXcli_base.c code
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
84806eceb2
smbXcli: rework smb2cli_req to smbXcli_conn/smbXcli_req
...
metze
2011-11-24 19:02:30 +01:00
Stefan Metzmacher
21b5f1c185
libcli/smb: copy smb2cli_req_* code to smbXcli_base.c
...
metze
2011-11-24 19:02:29 +01:00
Stefan Metzmacher
26892a9783
smbXcli: rework smbXcli_base.c to use smbXcli_conn/smbXcli_req
...
This splits the low level smb code from 'struct cli_state'
and makes it much more generic and useful for testing.
metze
2011-11-24 19:02:29 +01:00
Stefan Metzmacher
012dee3803
smbXcli: cp source3/libsmb/async_smb.c libcli/smb/smbXcli_base.c
...
metze
2011-11-24 19:02:29 +01:00
Christian Ambach
53ad886f75
security: add local authority well-known SIDs
...
add the S-1-2 well-known SID family
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu Nov 24 19:01:08 CET 2011 on sn-devel-104
2011-11-24 19:01:08 +01:00
Christian Ambach
717a27ba22
s3:smb2 report access_based_dir_enum in tcon reply
...
let the client know when hide unreadable or hide unwriteable files
is set for a share
2011-11-24 17:26:02 +01:00
Christian Ambach
faf8b9bba0
s3:smb2 do not set allow_namespace_caching flag for a share
...
this matches Win7/2002R2 behavior and clients also must ignore
this flag when set (MS-SMB 2.2.10), so we should not set it at all
2011-11-24 17:25:58 +01:00
Christian Ambach
94229435e8
s3:vfs:gpfs remove non-working code
...
when development of vfs_gpfs was started a long time ago it was
considered a good idea to have it compileable even if GPFS is not
around and then the module would complain in the logs that libgpfs
is not there
Nowadays this does not work any more as the code contains GPFS
specific types that need the GPFS header files.
Instead of making it compile again by adding GPFS typedefs, this
removes the whole approach. Other VFS modules also do not even
compile when necessary headers are not around, so do the same for
the GPFS module code.
2011-11-24 17:25:04 +01:00
Christian Ambach
6753656c74
s3:vfs:gpfs fix some compiler warnings
2011-11-24 17:24:58 +01:00
Christian Ambach
db1abd4d2d
s3:vfs:gpfs convert syncio parameter
...
convert syncio parameter to be stored in the VFS handle data
this removes the need to go through lp_parm_bool() on each open
2011-11-24 15:52:09 +01:00
Kai Blin
9f1eb8ab8e
s4 dns: Test QCLASS_NONE query
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Nov 24 14:10:45 CET 2011 on sn-devel-104
2011-11-24 14:10:44 +01:00
Kai Blin
8685a35e9c
s4 dns: Test QTYPE_ALL query
2011-11-24 12:35:08 +01:00
Kai Blin
16d9ebb396
s4 dns: Check more of the returned values for the A query
2011-11-24 12:35:08 +01:00
Kai Blin
1a599da550
s4 dns: Move dns_transaction_udp to other helper functions
2011-11-24 12:35:08 +01:00
Stefan Metzmacher
12123e751e
pidl:Samba4/NDR/Parser: don't generate code for [ignore] pointers
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov 24 12:31:04 CET 2011 on sn-devel-104
2011-11-24 12:31:04 +01:00
Jeremy Allison
3741cf999e
Remove unused variable.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Nov 24 00:17:41 CET 2011 on sn-devel-104
2011-11-24 00:17:40 +01:00
Jeremy Allison
9c4fdde023
Fix uninitialized variable frees on error paths.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 23 22:38:13 CET 2011 on sn-devel-104
2011-11-23 22:38:13 +01:00
Volker Lendecke
b1f7164aa8
s3: Fix a valgrind error
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 23 19:17:20 CET 2011 on sn-devel-104
2011-11-23 19:17:20 +01:00
Volker Lendecke
d126414b47
s3: Move server_info_struct to nmbd
...
That's the only place where it's used.
2011-11-23 16:17:03 +01:00
Volker Lendecke
b4ca1fa538
s3: Replace delete_token_list by an array
...
This will make it easier to convert locking.tdb to IDL, and I don't think there
will be enough entries to justify a linked list over an array.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 23 09:02:12 CET 2011 on sn-devel-104
2011-11-23 09:02:10 +01:00
Jeremy Allison
a17e01baa7
Ensure we don't free uninitialized variables.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 23 02:27:53 CET 2011 on sn-devel-104
2011-11-23 02:27:52 +01:00
Jeremy Allison
7ef4d08a98
Remove the setting of the inherited ACL on new files/directories. This is
...
now done correctly in the main codepath. The vfs_acl_XXXX modules are
now thin shims that simply store/retrieve ACLs as they should be.
2011-11-22 12:33:54 -08:00
Jeremy Allison
de3ab9bd05
Move setting the inherited ACL into the main open code path. Next will
...
remove it from the ACL modules.
2011-11-22 12:33:27 -08:00
Jeremy Allison
6795432f27
Move the "set SD" code into provided SD and "inherit acls" branches.
2011-11-22 11:53:51 -08:00
Jeremy Allison
7b275c551b
Only add the SD if it's not a new stream file.
2011-11-22 10:37:56 -08:00
Jeremy Allison
12514bf008
Move the add security descriptor code to *after* all the other meta-data is
...
updated. We may be adding an SD that restricts our own access.
2011-11-22 10:28:52 -08:00
Volker Lendecke
d5d17f0f57
s3: Fix wb_next_pwent_fill_done
...
Within a callback routine it is not possible to call tevent_req_post
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov 22 19:17:30 CET 2011 on sn-devel-104
2011-11-22 19:17:30 +01:00
Kai Blin
81b4db74a7
s3 libaddns: Prevent a crash when dns_create_update fails
...
When dns_create_update() fails, it does not initialize *req, and then TALLOC_FREE(req) in the
error handling crashes if we're lucky.
Instead of going into the generic error handling, treat the failure in dns_create_update() like
dns_create_update_request() and just pass on the error.
Thanks to Harry Mason for reporting this issue.
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue Nov 22 14:29:07 CET 2011 on sn-devel-104
2011-11-22 14:29:07 +01:00
Andrew Tridgell
b16f539e0e
s4-dns: added --no-credentials option to samba_dnsupdate
...
this is for a user who is doing DNS updates via key files rather than
GSSAPI. This allows the update to go through without a kerberos error
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 22 06:34:59 CET 2011 on sn-devel-104
2011-11-22 06:34:59 +01:00
Jeremy Allison
3e6e1aed94
Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
2011-11-21 23:39:08 +01:00
Stefan Metzmacher
aa2e415442
s3:winbindd_cm: close sockfd on error in cm_prepare_connection()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Nov 21 19:58:58 CET 2011 on sn-devel-104
2011-11-21 19:58:57 +01:00
Stefan Metzmacher
b895f1fb01
s3:libsmb: close fd on error in cli_connect_nb()
...
metze
2011-11-21 18:03:07 +01:00
Günther Deschner
f3c39cfbe0
librpc: install drsuapi and drsblobs headers.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Nov 21 17:24:28 CET 2011 on sn-devel-104
2011-11-21 17:24:28 +01:00
Günther Deschner
ad728b25eb
s3-waf: remove version from libpdb.so for now.
...
Guenther
2011-11-21 12:55:04 +01:00