samba.git
7 years agovfs_media_harmony: fix return of void
Björn Jacke [Tue, 7 Aug 2012 17:16:40 +0000 (19:16 +0200)]
vfs_media_harmony: fix return of void

caught by the Studio Compiler

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Tue Aug  7 22:22:48 CEST 2012 on sn-devel-104

7 years agos3:smb2_server: fix SMB2 signing of compound responses
Stefan Metzmacher [Tue, 7 Aug 2012 12:24:28 +0000 (14:24 +0200)]
s3:smb2_server: fix SMB2 signing of compound responses

We need to defer the signing until we know the response
doesn't change anymore before it goes over the wire.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Aug  7 20:29:30 CEST 2012 on sn-devel-104

7 years agos3:smb2_server: there's no need to copy req->out.vector when we just keep the last...
Stefan Metzmacher [Tue, 7 Aug 2012 11:02:14 +0000 (13:02 +0200)]
s3:smb2_server: there's no need to copy req->out.vector when we just keep the last request

metze

7 years agos3:smb2_server: use memmove instead of copying single vector elements
Stefan Metzmacher [Tue, 7 Aug 2012 11:00:50 +0000 (13:00 +0200)]
s3:smb2_server: use memmove instead of copying single vector elements

metze

7 years agos3:smb2_server: make use of SMBD_SMB2_OUT_HDR_PTR() smbd_smb2_request_pending_queue()
Stefan Metzmacher [Tue, 7 Aug 2012 10:57:14 +0000 (12:57 +0200)]
s3:smb2_server: make use of SMBD_SMB2_OUT_HDR_PTR() smbd_smb2_request_pending_queue()

metze

7 years agos3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ
Stefan Metzmacher [Tue, 7 Aug 2012 10:56:23 +0000 (12:56 +0200)]
s3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ

metze

7 years agos3:smb2_server: make use of SMBD_SMB2_OUT_*_IOV smbd_smb2_request_reply()
Stefan Metzmacher [Tue, 7 Aug 2012 10:55:28 +0000 (12:55 +0200)]
s3:smb2_server: make use of SMBD_SMB2_OUT_*_IOV smbd_smb2_request_reply()

metze

7 years agos3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ
Stefan Metzmacher [Tue, 7 Aug 2012 10:47:44 +0000 (12:47 +0200)]
s3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ

metze

7 years agos3:smb2_server: make use of SMBD_SMB2_*_IOV_OFS
Stefan Metzmacher [Tue, 7 Aug 2012 10:41:07 +0000 (12:41 +0200)]
s3:smb2_server: make use of SMBD_SMB2_*_IOV_OFS

metze

7 years agos3:smb2_server: make use of helper macros in smb2_calculate_credits()
Stefan Metzmacher [Tue, 7 Aug 2012 10:31:36 +0000 (12:31 +0200)]
s3:smb2_server: make use of helper macros in smb2_calculate_credits()

metze

7 years agos3:smb2_server: make use of helper macros in smbd_smb2_request_validate()
Stefan Metzmacher [Tue, 7 Aug 2012 10:30:54 +0000 (12:30 +0200)]
s3:smb2_server: make use of helper macros in smbd_smb2_request_validate()

metze

7 years agos3:smb2_server: make use of SMBD_SMB2_NUM_IOV_PER_REQ
Stefan Metzmacher [Tue, 7 Aug 2012 10:26:38 +0000 (12:26 +0200)]
s3:smb2_server: make use of SMBD_SMB2_NUM_IOV_PER_REQ

metze

7 years agos3:smb2_server: add some more SMBD_SMB2_* defines/macros
Stefan Metzmacher [Tue, 7 Aug 2012 10:22:06 +0000 (12:22 +0200)]
s3:smb2_server: add some more SMBD_SMB2_* defines/macros

metze

7 years agos3-param: Remove never-reached condition for popts == NULL
Andrew Bartlett [Tue, 7 Aug 2012 11:29:53 +0000 (21:29 +1000)]
s3-param: Remove never-reached condition for popts == NULL

All the callers provide a parametric options pointer to fill in.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug  7 17:16:38 CEST 2012 on sn-devel-104

7 years agos3-param: Remove never-reached condition for opt_list == NULL
Andrew Bartlett [Tue, 7 Aug 2012 11:20:47 +0000 (21:20 +1000)]
s3-param: Remove never-reached condition for opt_list == NULL

All the callers provide a parametric options pointer to fill in.

Andrew Bartlett

7 years agosource3/loadparm.c: Move string_set/string_free inside.
Rusty Russell [Mon, 23 Jul 2012 05:21:39 +0000 (14:51 +0930)]
source3/loadparm.c: Move string_set/string_free inside.

The only user, so make them static inside loadparm.c

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
7 years agosource3/smbd/conn.c: wean off string_set/string_free
Rusty Russell [Mon, 23 Jul 2012 05:21:34 +0000 (14:51 +0930)]
source3/smbd/conn.c: wean off string_set/string_free

Use straight talloc strings.  This is the only user outside loadparm.c.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
7 years agosource3/loadparm: make struct loadparm_service a talloc object.
Rusty Russell [Mon, 23 Jul 2012 02:50:26 +0000 (12:20 +0930)]
source3/loadparm: make struct loadparm_service a talloc object.

This gives us a place to allocate members from.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
7 years agoloadparm: Add ctx member to struct loadparm_global.
Rusty Russell [Mon, 23 Jul 2012 02:49:46 +0000 (12:19 +0930)]
loadparm: Add ctx member to struct loadparm_global.

Rather than tallocing global parameters off NULL, keep it neat by having
a Global.ctx member.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
7 years agomedia_harmony VFS module: Add and build by default.
Andrew Klaassen [Thu, 3 May 2012 17:39:53 +0000 (13:39 -0400)]
media_harmony VFS module: Add and build by default.

 - Supersedes previous patch.
 - Added various fixes for fake mtime functionality.
 - Now requires lp_cache_locked_write_times patch (bug 8912).
 - Removed various xattr functions to comply with recent VFS changes.
 - Changed SMB_STRUCT_DIR to DIR and SMB_STRUCT_DIRENT to struct dirent to comply with recent VFS changes.
 - Added manpage.
 - Added sample trigger_avid_update.py script.

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Tue Aug  7 15:16:39 CEST 2012 on sn-devel-104

7 years agos3:smb2_server: do one central as_root check if the operation requires it
Stefan Metzmacher [Mon, 6 Aug 2012 10:32:50 +0000 (12:32 +0200)]
s3:smb2_server: do one central as_root check if the operation requires it

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Aug  7 13:14:38 CEST 2012 on sn-devel-104

7 years agos3:smb2_server: do one central tcon check if the operation requires it
Stefan Metzmacher [Mon, 6 Aug 2012 10:32:50 +0000 (12:32 +0200)]
s3:smb2_server: do one central tcon check if the operation requires it

metze

7 years agos3:smb2_server: do one central session check if the operation requires it
Stefan Metzmacher [Mon, 6 Aug 2012 10:32:50 +0000 (12:32 +0200)]
s3:smb2_server: do one central session check if the operation requires it

metze

7 years agos3:smb2_server: add and use smbd_smb2_call()
Stefan Metzmacher [Mon, 6 Aug 2012 08:42:30 +0000 (10:42 +0200)]
s3:smb2_server: add and use smbd_smb2_call()

metze

7 years agos3:smb2_server: add .as_root to smbd_smb2_dispatch_table
Stefan Metzmacher [Mon, 6 Aug 2012 08:04:48 +0000 (10:04 +0200)]
s3:smb2_server: add .as_root to smbd_smb2_dispatch_table

metze

7 years agos3:smb2_server: add .need_tcon to smbd_smb2_dispatch_table
Stefan Metzmacher [Mon, 6 Aug 2012 08:04:48 +0000 (10:04 +0200)]
s3:smb2_server: add .need_tcon to smbd_smb2_dispatch_table

metze

7 years agos3:smb2_server: add .need_session to smbd_smb2_dispatch_table
Stefan Metzmacher [Mon, 6 Aug 2012 08:02:54 +0000 (10:02 +0200)]
s3:smb2_server: add .need_session to smbd_smb2_dispatch_table

metze

7 years agos3:smb2_server: introduce a smbd_smb2_dispatch_table (for now just with names)
Stefan Metzmacher [Mon, 6 Aug 2012 07:29:40 +0000 (09:29 +0200)]
s3:smb2_server: introduce a smbd_smb2_dispatch_table (for now just with names)

metze

7 years agos3:smb2_server: move 'conn' to main block of smbd_smb2_request_dispatch()
Stefan Metzmacher [Tue, 7 Aug 2012 07:48:22 +0000 (09:48 +0200)]
s3:smb2_server: move 'conn' to main block of smbd_smb2_request_dispatch()

metze

7 years agolibcli/util: add NT_STATUS_FILE_NOT_AVAILABLE
Stefan Metzmacher [Tue, 7 Aug 2012 07:22:53 +0000 (09:22 +0200)]
libcli/util: add NT_STATUS_FILE_NOT_AVAILABLE

metze

7 years agolibcli/smb: use forward declaration instead of includes
Stefan Metzmacher [Tue, 7 Aug 2012 05:24:22 +0000 (07:24 +0200)]
libcli/smb: use forward declaration instead of includes

metze

7 years agos4-scripting: Remove unused variables from ntacl tests
Andrew Bartlett [Tue, 7 Aug 2012 06:55:58 +0000 (16:55 +1000)]
s4-scripting: Remove unused variables from ntacl tests

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug  7 11:15:41 CEST 2012 on sn-devel-104

7 years agos4-smbd: Check for failure of irpc_add_name
Andrew Bartlett [Tue, 7 Aug 2012 05:50:46 +0000 (15:50 +1000)]
s4-smbd: Check for failure of irpc_add_name

7 years agos3-pysmbd: Try opening as a file, then as a directory
Andrew Bartlett [Tue, 7 Aug 2012 04:19:06 +0000 (14:19 +1000)]
s3-pysmbd: Try opening as a file, then as a directory

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug  7 08:59:21 CEST 2012 on sn-devel-104

7 years agos3-pysmbd: Use talloc_zero()
Andrew Bartlett [Tue, 7 Aug 2012 04:18:41 +0000 (14:18 +1000)]
s3-pysmbd: Use talloc_zero()

This avoids operating on uninitialised data

Andrew Bartlett

7 years agos3-passdb: Simplify idmap wrapper in pdb_samba4
Andrew Bartlett [Tue, 7 Aug 2012 04:17:09 +0000 (14:17 +1000)]
s3-passdb: Simplify idmap wrapper in pdb_samba4

The source3 consumers of this API are now quite happy to be given an answer
of ID_TYPE_BOTH, so we do not need this extra code to try and force the
answer to UID or GID.

Andrew Bartlett

7 years agos3-pysmbd: Add talloc_stackframe() to smbd_set_simple_acl wrapper
Andrew Bartlett [Tue, 7 Aug 2012 00:45:14 +0000 (10:45 +1000)]
s3-pysmbd: Add talloc_stackframe() to smbd_set_simple_acl wrapper

7 years agos3:smb2_server: make use of smbd_smb2_inbuf_parse_compound() in smbd_smb2_request_read*()
Stefan Metzmacher [Sun, 5 Aug 2012 18:52:55 +0000 (20:52 +0200)]
s3:smb2_server: make use of smbd_smb2_inbuf_parse_compound() in smbd_smb2_request_read*()

This changes the way we read SMB2 traffic from the socket,
now as create just one large buffer for the whole NBT payload
and then split it into iovec elements in smbd_smb2_inbuf_parse_compound()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug  6 21:54:35 CEST 2012 on sn-devel-104

7 years agos3:smb2_server: make use of smbd_smb2_inbuf_parse_compound() in smbd_smb2_request_cre...
Stefan Metzmacher [Sun, 5 Aug 2012 18:48:51 +0000 (20:48 +0200)]
s3:smb2_server: make use of smbd_smb2_inbuf_parse_compound() in smbd_smb2_request_create()

metze

7 years agos3:smb2_server: remove const from smbd_smb2_first_negprot()
Stefan Metzmacher [Sun, 5 Aug 2012 18:46:35 +0000 (20:46 +0200)]
s3:smb2_server: remove const from smbd_smb2_first_negprot()

metze

7 years agos3:smb2_server: add smbd_smb2_inbuf_parse_compound()
Stefan Metzmacher [Sun, 5 Aug 2012 17:39:39 +0000 (19:39 +0200)]
s3:smb2_server: add smbd_smb2_inbuf_parse_compound()

metze

7 years agos4:libcli/smb2/write correct error checking
Christian Ambach [Fri, 27 Jul 2012 13:09:18 +0000 (15:09 +0200)]
s4:libcli/smb2/write correct error checking

Server might return STATUS_BUFFER_OVERFLOW, which is not caught by NT_STATUS_IS_ERR

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Mon Aug  6 20:01:01 CEST 2012 on sn-devel-104

7 years agosmbXcli: add some includes to fix compiler warnings
Christian Ambach [Tue, 24 Jul 2012 11:16:57 +0000 (13:16 +0200)]
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

7 years agolib/socket_wrapper: writev returns ssize_t, not int
Christian Ambach [Fri, 27 Jul 2012 13:08:05 +0000 (15:08 +0200)]
lib/socket_wrapper: writev returns ssize_t, not int

7 years agolib/param: move enum dns_update_settings to lib/param
Christian Ambach [Fri, 3 Aug 2012 15:59:17 +0000 (17:59 +0200)]
lib/param: move enum dns_update_settings to lib/param

7 years agos4:libcli/pyerrors: add PyErr_NTSTATUS_NOT_OK_RAISE()
Stefan Metzmacher [Mon, 6 Aug 2012 08:41:31 +0000 (10:41 +0200)]
s4:libcli/pyerrors: add PyErr_NTSTATUS_NOT_OK_RAISE()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug  6 18:06:50 CEST 2012 on sn-devel-104

7 years agos4:libcli/pyerrors: s/PyErr_WERROR_IS_ERR_RAISE/PyErr_WERROR_NOT_OK_RAISE/
Stefan Metzmacher [Mon, 6 Aug 2012 08:39:19 +0000 (10:39 +0200)]
s4:libcli/pyerrors: s/PyErr_WERROR_IS_ERR_RAISE/PyErr_WERROR_NOT_OK_RAISE/

metze

7 years agoRevert "ldb: Add parameter to avoid NULL format string flagged by -Werror=format"
Andrew Bartlett [Mon, 6 Aug 2012 08:46:41 +0000 (18:46 +1000)]
Revert "ldb: Add parameter to avoid NULL format string flagged by -Werror=format"

This reverts commit cddcaf7bd2c272bc578ac1e4f7ec438ab94fc243.

-Werror=format is no longer uses when it would cause this to fail.
 This is a legitimate use of the ldb_search API.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Aug  6 14:47:27 CEST 2012 on sn-devel-104

7 years agobuild: Make -Werror=format check only run where NULL is still accepted
Andrew Bartlett [Mon, 6 Aug 2012 08:46:30 +0000 (18:46 +1000)]
build: Make -Werror=format check only run where NULL is still accepted

This is needed because ldb_search() allows a NULL parameter for the format string
and this needs to be permitted by the format string checker before we want to
make this error fatal.

Andrew Bartlett

7 years agoRework recursive waf build to be a selftest-enabled not a developer build
Andrew Bartlett [Mon, 6 Aug 2012 08:33:35 +0000 (18:33 +1000)]
Rework recursive waf build to be a selftest-enabled not a developer build

This essentially reverts commit a943a9ba2f739e8aee630f774915e8204aa8cf3a.

I've fixed this by making lib/param/parm_table.c honour --enable-selftest.

Andrew Bartlett

7 years agobuild: Remove duplicate declaration of --enable-selftest
Andrew Bartlett [Mon, 6 Aug 2012 08:32:32 +0000 (18:32 +1000)]
build: Remove duplicate declaration of --enable-selftest

7 years agolib/param: Also enable vlp when --enable-selftest is specified
Andrew Bartlett [Mon, 6 Aug 2012 08:32:21 +0000 (18:32 +1000)]
lib/param: Also enable vlp when --enable-selftest is specified

7 years agos3:smbd: remove unused variable in sesssetup.c
Stefan Metzmacher [Sun, 5 Aug 2012 18:34:17 +0000 (20:34 +0200)]
s3:smbd: remove unused variable in sesssetup.c

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Aug  5 23:09:06 CEST 2012 on sn-devel-104

7 years agos3:smb2_server: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_server: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_ioctl: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_ioctl: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_lock: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_lock: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_setinfo: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_setinfo: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_getinfo: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_getinfo: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_negprot: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_negprot: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_write: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_write: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_tcon: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_tcon: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_create: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_create: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_find: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_find: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_sesssetup: make use of SMBD_SMB2_* macros
Stefan Metzmacher [Sun, 5 Aug 2012 13:00:23 +0000 (15:00 +0200)]
s3:smb2_sesssetup: make use of SMBD_SMB2_* macros

metze

7 years agos3:smb2_glue: make use of SMBD_SMB2_IN_HDR_PTR()
Stefan Metzmacher [Sun, 5 Aug 2012 12:58:57 +0000 (14:58 +0200)]
s3:smb2_glue: make use of SMBD_SMB2_IN_HDR_PTR()

metze

7 years agos3:smb2_read: make use of SMBD_SMB2_IN_BODY_PTR()
Stefan Metzmacher [Sun, 5 Aug 2012 12:55:58 +0000 (14:55 +0200)]
s3:smb2_read: make use of SMBD_SMB2_IN_BODY_PTR()

metze

7 years agos3:smb2_notify: make use of SMBD_SMB2_IN_*_PTR()
Stefan Metzmacher [Sun, 5 Aug 2012 12:57:35 +0000 (14:57 +0200)]
s3:smb2_notify: make use of SMBD_SMB2_IN_*_PTR()

metze

7 years agos3:smb2_flush: make use of SMBD_SMB2_IN_BODY_PTR()
Stefan Metzmacher [Sun, 5 Aug 2012 12:55:58 +0000 (14:55 +0200)]
s3:smb2_flush: make use of SMBD_SMB2_IN_BODY_PTR()

metze

7 years agos3:smb2_close: make use of SMBD_SMB2_IN_BODY_PTR()
Stefan Metzmacher [Sun, 5 Aug 2012 12:55:58 +0000 (14:55 +0200)]
s3:smb2_close: make use of SMBD_SMB2_IN_BODY_PTR()

metze

7 years agos3:smb2_break: make use of SMBD_SMB2_IN_BODY_PTR()
Stefan Metzmacher [Sun, 5 Aug 2012 12:55:29 +0000 (14:55 +0200)]
s3:smb2_break: make use of SMBD_SMB2_IN_BODY_PTR()

metze

7 years agos3:smbd: add helper macros to access smb2req->{in,out}.vector[]
Stefan Metzmacher [Sun, 5 Aug 2012 12:53:15 +0000 (14:53 +0200)]
s3:smbd: add helper macros to access smb2req->{in,out}.vector[]

For SMB3 encryption we need to change the vector layout
and we better hide this behind some central macros.

metze

7 years agos3:smb2_server: use 'i' instead of '1' as vector index in smbd_smb2_request_pending_t...
Stefan Metzmacher [Sun, 5 Aug 2012 14:35:08 +0000 (16:35 +0200)]
s3:smb2_server: use 'i' instead of '1' as vector index in smbd_smb2_request_pending_timer()

If we reach this code i is currently always 1, but it's easier to unstand this
way.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Aug  5 20:00:26 CEST 2012 on sn-devel-104

7 years agos3:smb2_lock: remove unused in_smbpid
Stefan Metzmacher [Sun, 5 Aug 2012 12:26:40 +0000 (14:26 +0200)]
s3:smb2_lock: remove unused in_smbpid

metze

7 years agos3:smb2_write: remove unused in_smbpid
Stefan Metzmacher [Sun, 5 Aug 2012 12:26:40 +0000 (14:26 +0200)]
s3:smb2_write: remove unused in_smbpid

metze

7 years agos3:smb2_read: remove unused in_smbpid
Stefan Metzmacher [Sun, 5 Aug 2012 12:25:48 +0000 (14:25 +0200)]
s3:smb2_read: remove unused in_smbpid

metze

7 years agos4:domain join: setup RODC invocationId
Stefan Metzmacher [Fri, 3 Aug 2012 10:47:11 +0000 (12:47 +0200)]
s4:domain join: setup RODC invocationId

Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug  4 18:27:21 CEST 2012 on sn-devel-104

7 years agodoc: Remove build/ from doxygen config or it will not work in brew.
Andreas Schneider [Fri, 3 Aug 2012 16:21:38 +0000 (18:21 +0200)]
doc: Remove build/ from doxygen config or it will not work in brew.

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Sat Aug  4 16:31:22 CEST 2012 on sn-devel-104

7 years agos3:smbd: add support for SMB_EXTENDED_SIGNATURES in SMBtconX
Stefan Metzmacher [Fri, 3 Aug 2012 06:44:39 +0000 (08:44 +0200)]
s3:smbd: add support for SMB_EXTENDED_SIGNATURES in SMBtconX

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug  4 14:28:04 CEST 2012 on sn-devel-104

7 years agos3:smbd: setup the application session key with the first tcon on a session
Stefan Metzmacher [Fri, 3 Aug 2012 06:42:43 +0000 (08:42 +0200)]
s3:smbd: setup the application session key with the first tcon on a session

Look for Server.Session.SessionKeyState in [MS-SMB].
The first SMBtconX sets the state to available, which makes it possible
to protect the session key at that stage, if client and server
support TREE_CONNECT_ANDX_EXTENDED_SIGNATURE.

metze

7 years agos3:rpc_server/wkssvc: make usage of session_extract_session_key()
Stefan Metzmacher [Sat, 4 Aug 2012 08:05:51 +0000 (10:05 +0200)]
s3:rpc_server/wkssvc: make usage of session_extract_session_key()

This makes sure we return NO_USER_SESSION_KEY if there's no session key.

metze

7 years agos3:rpc_server/netlogon: make usage of session_extract_session_key()
Stefan Metzmacher [Sat, 4 Aug 2012 08:05:51 +0000 (10:05 +0200)]
s3:rpc_server/netlogon: make usage of session_extract_session_key()

This makes sure we return NO_USER_SESSION_KEY if there's no session key.

metze

7 years agos3:smbd: setup session->global->signing_/application_key during SPNEGO SMB1 session...
Stefan Metzmacher [Thu, 2 Aug 2012 16:47:48 +0000 (18:47 +0200)]
s3:smbd: setup session->global->signing_/application_key during SPNEGO SMB1 session setups

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Aug  4 11:09:42 CEST 2012 on sn-devel-104

7 years agos3:smbd: setup session->global->signing_/application_key during old SMB1 session...
Stefan Metzmacher [Thu, 2 Aug 2012 16:47:48 +0000 (18:47 +0200)]
s3:smbd: setup session->global->signing_/application_key during old SMB1 session setups

metze

7 years agos3:smbd: keep the "application session key" during SMB1 reauth
Stefan Metzmacher [Thu, 2 Aug 2012 16:46:09 +0000 (18:46 +0200)]
s3:smbd: keep the "application session key" during SMB1 reauth

metze

7 years agos4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconX
Stefan Metzmacher [Thu, 2 Aug 2012 06:51:13 +0000 (08:51 +0200)]
s4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconX

metze

7 years agos4:libcli: add support for SMB_EXTENDED_SIGNATURES during SMBtconX
Stefan Metzmacher [Thu, 2 Aug 2012 06:51:13 +0000 (08:51 +0200)]
s4:libcli: add support for SMB_EXTENDED_SIGNATURES during SMBtconX

metze

7 years agos3:libsmb: add EXTENDED_SIGNATURE support in cli_tcon_andx*()
Stefan Metzmacher [Wed, 1 Aug 2012 09:47:07 +0000 (11:47 +0200)]
s3:libsmb: add EXTENDED_SIGNATURE support in cli_tcon_andx*()

metze

7 years agolibcli/smb: add smb1cli_session_protect_session_key()
Stefan Metzmacher [Wed, 1 Aug 2012 07:01:25 +0000 (09:01 +0200)]
libcli/smb: add smb1cli_session_protect_session_key()

metze

7 years agolibcli/smb: add smb_key_derivation() for TREE_CONNECT_ANDX_EXTENDED_SIGNATURES support
Stefan Metzmacher [Wed, 1 Aug 2012 07:28:06 +0000 (09:28 +0200)]
libcli/smb: add smb_key_derivation() for TREE_CONNECT_ANDX_EXTENDED_SIGNATURES support

metze

7 years agolibcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header
Stefan Metzmacher [Fri, 3 Aug 2012 07:58:29 +0000 (09:58 +0200)]
libcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header

metze

7 years agos3:smbd: skip nbt header in srv_check_sign_mac()
Stefan Metzmacher [Fri, 3 Aug 2012 07:57:19 +0000 (09:57 +0200)]
s3:smbd: skip nbt header in srv_check_sign_mac()

metze

7 years agolibcli/smb: change smb_signing to skip the NBT_HEADER_SIZE internally
Stefan Metzmacher [Fri, 3 Aug 2012 07:29:20 +0000 (09:29 +0200)]
libcli/smb: change smb_signing to skip the NBT_HEADER_SIZE internally

metze

7 years agoauth/ntlmssp: avoid talloc_tos() in ntlmssp_client_initial()
Stefan Metzmacher [Sat, 4 Aug 2012 07:07:24 +0000 (09:07 +0200)]
auth/ntlmssp: avoid talloc_tos() in ntlmssp_client_initial()

This avoids a smb_panic at log level = 10.
If we don't have a talloc stackframe yet.

metze

7 years agos3-ctdb: return proper exit code
Christian Ambach [Fri, 3 Aug 2012 10:42:41 +0000 (12:42 +0200)]
s3-ctdb: return proper exit code

do not loose the result from ctdbd_messaging_send_blob()

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Fri Aug  3 14:49:01 CEST 2012 on sn-devel-104

7 years agos3-ctdb: adjust a loglevel
Christian Ambach [Fri, 3 Aug 2012 10:29:10 +0000 (12:29 +0200)]
s3-ctdb: adjust a loglevel

7 years agos3-ctdb: Fix ctdb_serverids_exist for target nodes that died
Volker Lendecke [Mon, 16 Jul 2012 14:18:19 +0000 (16:18 +0200)]
s3-ctdb: Fix ctdb_serverids_exist for target nodes that died

Signed-off-by: Christian Ambach <ambi@samba.org>
7 years agos3-ctdb: Add debugs to ctdb_serverids_exist
Volker Lendecke [Mon, 16 Jul 2012 13:50:06 +0000 (15:50 +0200)]
s3-ctdb: Add debugs to ctdb_serverids_exist

Signed-off-by: Christian Ambach <ambi@samba.org>
7 years agolib/dbwrap: rewrite lock order check to ease debugging
Gregor Beck [Wed, 1 Aug 2012 13:31:18 +0000 (15:31 +0200)]
lib/dbwrap: rewrite lock order check to ease debugging

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug  3 12:52:38 CEST 2012 on sn-devel-104

7 years agodocs-xml: fix pid directory example
Björn Baumbach [Mon, 30 Jul 2012 15:09:07 +0000 (17:09 +0200)]
docs-xml: fix pid directory example

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug  3 10:30:37 CEST 2012 on sn-devel-104

7 years agodocs-xml: fix dfree cache time example
Björn Baumbach [Mon, 30 Jul 2012 15:02:55 +0000 (17:02 +0200)]
docs-xml: fix dfree cache time example

Signed-off-by: Stefan Metzmacher <metze@samba.org>