mat/samba.git
12 years agos4:drsuapi/getncchanges: the default for isRecycled is FALSE drs_recycled
Stefan Metzmacher [Tue, 15 Nov 2011 11:42:22 +0000 (12:42 +0100)]
s4:drsuapi/getncchanges: the default for isRecycled is FALSE

metze

12 years agos4-drsuapi: we store boolean in upppercase so we need to test them in uppercase
Matthieu Patou [Mon, 14 Nov 2011 17:32:41 +0000 (18:32 +0100)]
s4-drsuapi: we store boolean in upppercase so we need to test them in uppercase

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-kcc: Remove also deleted objects that are not in the Deleted Object container
Matthieu Patou [Tue, 15 Nov 2011 11:38:51 +0000 (12:38 +0100)]
s4-kcc: Remove also deleted objects that are not in the Deleted Object container

For the configuration container we do a full scan at every run of the
kcc-delete service. For the base DN we introduce a new parameter that
avoid the full scan to kick just when samba starts.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-ldb: Add isRecycled when is defined in the schema
Matthieu Patou [Tue, 1 Nov 2011 22:12:47 +0000 (23:12 +0100)]
s4-ldb: Add isRecycled when is defined in the schema

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-librpc Use gensec_sig_size() instead of a fixed NTLMSSP_SIG_SIZE
Andrew Bartlett [Wed, 21 Dec 2011 04:54:20 +0000 (15:54 +1100)]
s3-librpc Use gensec_sig_size() instead of a fixed NTLMSSP_SIG_SIZE

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 22 20:57:27 CET 2011 on sn-devel-104

12 years agos3-rpc_server: Rework pipe_ntlmssp_auth_bind() to be generic
Andrew Bartlett [Wed, 21 Dec 2011 04:34:17 +0000 (15:34 +1100)]
s3-rpc_server: Rework pipe_ntlmssp_auth_bind() to be generic

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server: Allow gensec mechanisms to return NT_STATUS_OK
Andrew Bartlett [Wed, 21 Dec 2011 04:28:26 +0000 (15:28 +1100)]
s3-rpc_server: Allow gensec mechanisms to return NT_STATUS_OK

If a kerberos mechanism is added, then it can return OK after just one packet.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server: rename pipe_ntlmssp_verify_final() to pipe_auth_generic_verify_final()
Andrew Bartlett [Wed, 21 Dec 2011 04:17:45 +0000 (15:17 +1100)]
s3-rpc_server: rename pipe_ntlmssp_verify_final() to pipe_auth_generic_verify_final()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server: Rename dcesrv_ntlmssp.[ch] to dcesrv_auth_generic.[ch]
Andrew Bartlett [Wed, 21 Dec 2011 04:09:29 +0000 (15:09 +1100)]
s3-rpc_server: Rename dcesrv_ntlmssp.[ch] to dcesrv_auth_generic.[ch]

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server rename NTLMSSP functions to auth_generic..()
Andrew Bartlett [Wed, 21 Dec 2011 03:40:04 +0000 (14:40 +1100)]
s3-rpc_server rename NTLMSSP functions to auth_generic..()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server rename ntlmssp_server_auth_start() -> auth_generic_server_start()
Andrew Bartlett [Wed, 21 Dec 2011 03:32:43 +0000 (14:32 +1100)]
s3-rpc_server rename ntlmssp_server_auth_start() -> auth_generic_server_start()

By adding an OID parameter we can make this routine generic to any
gensec module that may be made available.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server remove unused header
Andrew Bartlett [Fri, 16 Dec 2011 06:05:12 +0000 (17:05 +1100)]
s3-rpc_server remove unused header

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-auth split the auth_generic functions into a seperate file
Andrew Bartlett [Fri, 16 Dec 2011 05:55:36 +0000 (16:55 +1100)]
s3-auth split the auth_generic functions into a seperate file

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server request both sign and seal for clarity
Andrew Bartlett [Fri, 16 Dec 2011 05:44:17 +0000 (16:44 +1100)]
s3-rpc_server request both sign and seal for clarity

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-auth remove auth_ntlmssp_start(), call auth_generic_start() directly
Andrew Bartlett [Fri, 16 Dec 2011 05:38:53 +0000 (16:38 +1100)]
s3-auth remove auth_ntlmssp_start(), call auth_generic_start() directly

This makes it clear that this can support more than just NTLMSSP.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-auth rename auth_ntlmssp_prepare() -> auth_generic_prepare()
Andrew Bartlett [Fri, 16 Dec 2011 05:08:56 +0000 (16:08 +1100)]
s3-auth rename auth_ntlmssp_prepare() -> auth_generic_prepare()

This function handles more than NTLMSSP now, at least when we are an AD DC
and so changing the name may avoid some confusion in the future.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-auth rename auth_ntlmssp_state -> auth_generic_state
Andrew Bartlett [Fri, 16 Dec 2011 05:07:24 +0000 (16:07 +1100)]
s3-auth rename auth_ntlmssp_state -> auth_generic_state

This structure handles more than NTLMSSP now, at least when we are an AD DC
and so changing the name may avoid some confusion in the future.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-rpc_server request the DCE_STYLE feature in ntlmssp_server_auth_start
Andrew Bartlett [Fri, 16 Dec 2011 04:55:08 +0000 (15:55 +1100)]
s3-rpc_server request the DCE_STYLE feature in ntlmssp_server_auth_start

This is not used or honoured by NTLMSSP, but I hope to make this routine
more generic in the future.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-netlogon: use dsgetdcname() instead of get_dc_name()
Sumit Bose [Thu, 24 Nov 2011 17:22:57 +0000 (12:22 -0500)]
s3-netlogon: use dsgetdcname() instead of get_dc_name()

Sometimes the domain parameter might not contain the NetBIOS name of the remote
domain but the DNS name.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Dec 22 19:21:21 CET 2011 on sn-devel-104

12 years agos3-netlogon: Add support to authenticate trusted domains.
Sumit Bose [Tue, 22 Nov 2011 13:02:20 +0000 (08:02 -0500)]
s3-netlogon: Add support to authenticate trusted domains.

12 years agos4-torture: Test rpc schannel netr_LogonGetCapability.
Stefan Metzmacher [Sat, 19 Sep 2009 19:14:17 +0000 (21:14 +0200)]
s4-torture: Test rpc schannel netr_LogonGetCapability.

metze

12 years agos3-rpc_server: Pass in our flags to netlogon_creds_server_init().
Stefan Metzmacher [Tue, 29 Sep 2009 07:16:13 +0000 (09:16 +0200)]
s3-rpc_server: Pass in our flags to netlogon_creds_server_init().

metze

12 years agos3-netlogon: Add support for LogonGetCapabilities.
Stefan Metzmacher [Sat, 19 Sep 2009 19:07:20 +0000 (21:07 +0200)]
s3-netlogon: Add support for LogonGetCapabilities.

This is also needed to support AES.

metze

12 years agos4-librpc: Fix netlogon schannel client connect.
Andreas Schneider [Thu, 22 Dec 2011 15:32:31 +0000 (16:32 +0100)]
s4-librpc: Fix netlogon schannel client connect.

As a client we request as much flags as possible. The server checks
which flags it supports and returns the same negotiation flags or less.
So we need to store the negotiate flags from the server. We need them
later if we have to call netr_LogonGetCapabilities.

12 years agos3:torture/test_smb2: also try PROTOCOL_SMB2_24
Stefan Metzmacher [Thu, 22 Dec 2011 12:14:21 +0000 (13:14 +0100)]
s3:torture/test_smb2: also try PROTOCOL_SMB2_24

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 22 17:47:17 CET 2011 on sn-devel-104

12 years agolib/param: add support for "SMB2_24" in smb.conf options
Stefan Metzmacher [Thu, 22 Dec 2011 12:12:24 +0000 (13:12 +0100)]
lib/param: add support for "SMB2_24" in smb.conf options

metze

12 years agos3:smb2_negprot: add support for PROTOCOL_SMB2_24
Stefan Metzmacher [Thu, 22 Dec 2011 12:11:57 +0000 (13:11 +0100)]
s3:smb2_negprot: add support for PROTOCOL_SMB2_24

metze

12 years agolibcli/smb: add PROTOCOL_SMB2_24 support
Stefan Metzmacher [Thu, 22 Dec 2011 12:08:44 +0000 (13:08 +0100)]
libcli/smb: add PROTOCOL_SMB2_24 support

metze

12 years agolibcli/smb: add SMB2_DIALECT_REVISION_224
Stefan Metzmacher [Thu, 22 Dec 2011 12:07:48 +0000 (13:07 +0100)]
libcli/smb: add SMB2_DIALECT_REVISION_224

This is specified in the new [MS-SMB2] preview document.

metze

12 years agos3-auth Restore shortcut for guest security token
Andrew Bartlett [Wed, 21 Dec 2011 06:26:23 +0000 (17:26 +1100)]
s3-auth Restore shortcut for guest security token

This was lost when the server_info and session_info structures were split.

This helps avoid doing lookups for the guest account to determine the
uid/gid and SID values.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 22 15:51:09 CET 2011 on sn-devel-104

12 years agoruncmd: use set_close_on_exec()
Andrew Tridgell [Wed, 30 Nov 2011 04:18:29 +0000 (15:18 +1100)]
runcmd: use set_close_on_exec()

this prevents a fd leak to child processes

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec 22 14:00:06 CET 2011 on sn-devel-104

12 years agoruncmd: use a pipe for stdin to child processes
Andrew Tridgell [Wed, 30 Nov 2011 03:07:51 +0000 (14:07 +1100)]
runcmd: use a pipe for stdin to child processes

this allows child processes to detect the exit of the parent by
looking for EOF on stdin

12 years agoChange the signature of pthreadpool_finished_job() to return 0
Jeremy Allison [Thu, 22 Dec 2011 04:38:32 +0000 (20:38 -0800)]
Change the signature of pthreadpool_finished_job() to return 0
on success, errno on fail and return the jobid in a separate variable.

I need this fix for my vfs_aio_pthread.c module.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 22 12:12:33 CET 2011 on sn-devel-104

12 years agoparam: domain_logons and domain_master are of type enum_bool_auto
Amitay Isaacs [Thu, 22 Dec 2011 05:40:10 +0000 (16:40 +1100)]
param: domain_logons and domain_master are of type enum_bool_auto

These parameters should be defined as int and not bool. This fixes
the test failures on big endian machines.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Dec 22 10:37:42 CET 2011 on sn-devel-104

12 years agos3-rpc_server: Add my copyright for my previous work here
Andrew Bartlett [Fri, 16 Dec 2011 02:19:06 +0000 (13:19 +1100)]
s3-rpc_server: Add my copyright for my previous work here

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec 22 09:02:57 CET 2011 on sn-devel-104

12 years agos3-rpc_server: Remove old comment
Andrew Bartlett [Fri, 16 Dec 2011 02:18:50 +0000 (13:18 +1100)]
s3-rpc_server: Remove old comment

12 years agos3-rpc: added "rpc_server:default" config option
Andrew Tridgell [Tue, 6 Dec 2011 01:15:40 +0000 (12:15 +1100)]
s3-rpc: added "rpc_server:default" config option

this allows the config to specify a default behaviour (embedded,
external or disabled) for unknown pipes. This is needed to allow the
s3 smbd server to redirect unknown pipes to the s4 RPC server when
using s3 smbd as a file server for a s4 DC. If rpc_server:default is
not specified then this change preserves the old behaviour

12 years agos3-loadparm: mark a few parameters as having P_BYTES type
Andrew Tridgell [Wed, 30 Nov 2011 06:29:10 +0000 (17:29 +1100)]
s3-loadparm: mark a few parameters as having P_BYTES type

this fixes a problem with "max xmit = 32K" resulting in a maximum SMB
transmit size of 32 bytes, which makes for some very interesting
network traces!

This is what was causing smbtorture to consume gigabytes of memory in
the rpc.schannel test

12 years agoparam: Fix the data type for bAvailable
Amitay Isaacs [Wed, 21 Dec 2011 03:08:02 +0000 (14:08 +1100)]
param: Fix the data type for bAvailable

This causes the copy_service() to not copy bAvailable boolean on
big endian machines causing tests to fail.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Dec 22 05:30:49 CET 2011 on sn-devel-104

12 years agos3: There's no reason not to at least build winbind on darwin
Volker Lendecke [Wed, 21 Dec 2011 21:38:00 +0000 (22:38 +0100)]
s3: There's no reason not to at least build winbind on darwin

It does not necessarily do nsswitch services, but as a NETLOGON proxy
it should work fine

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Dec 22 00:16:44 CET 2011 on sn-devel-104

12 years agos3-dns: prevent from potentially doing wrong SRV DNS lookups.
Günther Deschner [Wed, 21 Dec 2011 14:47:35 +0000 (15:47 +0100)]
s3-dns: prevent from potentially doing wrong SRV DNS lookups.

With an empty sitename we asked for e.g.
_ldap._tcp.._sites.dc._msdcs.AD.EXAMPLE.COM

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 21 17:23:25 CET 2011 on sn-devel-104

12 years agoidl: Avoid c++ style comments
Volker Lendecke [Wed, 21 Dec 2011 10:29:38 +0000 (11:29 +0100)]
idl: Avoid c++ style comments

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Dec 21 13:36:01 CET 2011 on sn-devel-104

12 years agotdb: don't free old recovery area when expanding if already at EOF.
Rusty Russell [Wed, 21 Dec 2011 03:47:25 +0000 (14:17 +1030)]
tdb: don't free old recovery area when expanding if already at EOF.

We allocate a new recovery area by expanding the file.  But if the
recovery area is already at the end of file (as shown in at least one
client case), we can simply expand the record, rather than freeing it
and creating a new one.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Dec 21 06:25:40 CET 2011 on sn-devel-104

12 years agotdb: use same expansion factor logic when expanding for new recovery area.
Rusty Russell [Wed, 21 Dec 2011 03:47:16 +0000 (14:17 +1030)]
tdb: use same expansion factor logic when expanding for new recovery area.

If we're expanding because the current recovery area is too small, we
expand only the amount we need.  This can quickly lead to exponential
growth when we have a slowly-expanding record (hence a
slowly-expanding transaction size).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agoAllow an object to be deleted from a directory if the caller has DELETE_CHILD access
Jeremy Allison [Tue, 20 Dec 2011 19:38:37 +0000 (11:38 -0800)]
Allow an object to be deleted from a directory if the caller has DELETE_CHILD access
even if we don't have access to read the ACL on the object. Fixes bug #8673 - NT ACL issue.
Different fix needed for 3.6.x.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 20 22:13:51 CET 2011 on sn-devel-104

12 years agos3: Fix some False/NULL hickups
Volker Lendecke [Tue, 20 Dec 2011 09:25:05 +0000 (10:25 +0100)]
s3: Fix some False/NULL hickups

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104

12 years agosamba-tool: Add transaction wrapper for creating GPO
Amitay Isaacs [Wed, 14 Dec 2011 01:18:57 +0000 (12:18 +1100)]
samba-tool: Add transaction wrapper for creating GPO

This ensures that if the GPT files are not copied via SMB,
AD changes are rolled back.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Dec 20 09:12:41 CET 2011 on sn-devel-104

12 years agotdb2: Avoid a malloc/memcpy in _tdb1_store
Volker Lendecke [Thu, 15 Dec 2011 09:50:34 +0000 (10:50 +0100)]
tdb2: Avoid a malloc/memcpy in _tdb1_store

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Dec 19 16:53:40 CET 2011 on sn-devel-104

12 years agotdb: Avoid a malloc/memcpy in _tdb_store
Volker Lendecke [Thu, 15 Dec 2011 09:50:34 +0000 (10:50 +0100)]
tdb: Avoid a malloc/memcpy in _tdb_store

12 years agos4-dsdb: Relax the conditions where we can't do a subtree delete
Matthieu Patou [Tue, 15 Nov 2011 10:32:33 +0000 (11:32 +0100)]
s4-dsdb: Relax the conditions where we can't do a subtree delete

If the parent object is a SAM object (as defined in 3.1.1.5.2.3
Special Classes and Attributes of MS-ADTS) then we can use the subtree
delete control even if the object is a critical one.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Dec 19 14:32:19 CET 2011 on sn-devel-104

12 years agos4:drsuapi/getncchanges: return WERR_NOMEM if talloc_array() fails
Stefan Metzmacher [Tue, 15 Nov 2011 10:47:42 +0000 (11:47 +0100)]
s4:drsuapi/getncchanges: return WERR_NOMEM if talloc_array() fails

metze

12 years agos4-drs: introduce a timeout in the getncchanges processing to always return something...
Matthieu Patou [Thu, 10 Nov 2011 10:23:40 +0000 (11:23 +0100)]
s4-drs: introduce a timeout in the getncchanges processing to always return something in less than x seconds

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-drs: avoid calling unecesserly ldb_msg_find_attr_as_* as this call in unefficient
Matthieu Patou [Mon, 14 Nov 2011 17:53:30 +0000 (18:53 +0100)]
s4-drs: avoid calling unecesserly ldb_msg_find_attr_as_* as this call in unefficient

Current implementation of ldb_msg_find_attr_as_* iterate on the list of
attributes returned by the search and make a string comparison. As we
sorting the array of messages / guids we tend to call this function many
times. By storing the GUID and the USN in a separate structure we are
sure to call this function only once per attribute and object.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4-becomedc: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects for the...
Matthieu Patou [Fri, 4 Nov 2011 23:22:47 +0000 (00:22 +0100)]
s4-becomedc: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects for the base dn partition

Windows dcpromo do the same: getncchanges with DRS_GET_ANC and
DRS_CRITICAL_ONLY, then it does a getncchanges without those flags for
the rest.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-join: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects for the base...
Matthieu Patou [Tue, 25 Oct 2011 18:13:00 +0000 (20:13 +0200)]
s4-join: replicate first with DRS_CRITICAL_ONLY and DRS_GET_ANC objects for the base dn partition

Windows dcpromo do the same: getncchanges with DRS_GET_ANC and
DRS_CRITICAL_ONLY, then it does a getncchanges without those flags for
the rest.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agotdb: be more careful on 4G files.
Rusty Russell [Mon, 19 Dec 2011 05:17:50 +0000 (15:47 +1030)]
tdb: be more careful on 4G files.

I came across a tdb which had wrapped to 4G + 4K, and the contents had been
destroyed by processes which thought it only 4k long.  Fix this by checking
on open, and making tdb_oob() check for wrap itself.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Dec 19 07:52:01 CET 2011 on sn-devel-104

12 years agopatch tdb-oob-fix.patch
Rusty Russell [Mon, 19 Dec 2011 05:04:39 +0000 (15:34 +1030)]
patch tdb-oob-fix.patch

12 years agos3-net: Fix the return codes. 0 on success, -1 on failure
Amitay Isaacs [Tue, 6 Dec 2011 07:11:11 +0000 (18:11 +1100)]
s3-net: Fix the return codes. 0 on success, -1 on failure

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Mon Dec 19 01:57:24 CET 2011 on sn-devel-104

12 years agos3: Fix the clustering build
Volker Lendecke [Sat, 17 Dec 2011 16:04:09 +0000 (17:04 +0100)]
s3: Fix the clustering build

ctdb_private.h already defines set_close_on_exec.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Dec 17 18:41:39 CET 2011 on sn-devel-104

12 years agolibcli/util: add NT_STATUS_NETWORK_SESSION_EXPIRED and NT_STATUS_ALL_SIDS_FILTERED
Stefan Metzmacher [Sat, 17 Dec 2011 10:20:50 +0000 (11:20 +0100)]
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

12 years agos4 dns: Allow updates based on smb.conf setting
Kai Blin [Fri, 16 Dec 2011 13:25:57 +0000 (14:25 +0100)]
s4 dns: Allow updates based on smb.conf setting

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sat Dec 17 04:19:40 CET 2011 on sn-devel-104

12 years agos4 dns: Add some debug output
Kai Blin [Fri, 16 Dec 2011 13:22:51 +0000 (14:22 +0100)]
s4 dns: Add some debug output

12 years agos4 dns: Actually handle the update request
Kai Blin [Fri, 16 Dec 2011 13:21:52 +0000 (14:21 +0100)]
s4 dns: Actually handle the update request

12 years agos4 dns: Implement RFC-compatible update prescan
Kai Blin [Fri, 16 Dec 2011 13:07:11 +0000 (14:07 +0100)]
s4 dns: Implement RFC-compatible update prescan

12 years agos4 dns: Update prerequisite checking conforming to RFC
Kai Blin [Fri, 16 Dec 2011 12:45:22 +0000 (13:45 +0100)]
s4 dns: Update prerequisite checking conforming to RFC

12 years agos4 dns: Give better test output on RCODE mismatch
Kai Blin [Fri, 16 Dec 2011 10:36:47 +0000 (11:36 +0100)]
s4 dns: Give better test output on RCODE mismatch

12 years agos4 dns: Move record lookup to dns_utils.c
Kai Blin [Fri, 16 Dec 2011 08:43:47 +0000 (09:43 +0100)]
s4 dns: Move record lookup to dns_utils.c

12 years agos4 dns: Implement dns record comparison function
Kai Blin [Fri, 16 Dec 2011 08:24:18 +0000 (09:24 +0100)]
s4 dns: Implement dns record comparison function

12 years agos4 dns: Implement dns name equality check
Kai Blin [Fri, 16 Dec 2011 08:21:51 +0000 (09:21 +0100)]
s4 dns: Implement dns name equality check

12 years agos4 dns: Fix some typos in comments and a whitespace
Kai Blin [Fri, 16 Dec 2011 08:13:31 +0000 (09:13 +0100)]
s4 dns: Fix some typos in comments and a whitespace

12 years agocheck_name() not needed in mkdir.
Jeremy Allison [Fri, 16 Dec 2011 23:48:47 +0000 (15:48 -0800)]
check_name() not needed in mkdir.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 17 02:44:55 CET 2011 on sn-devel-104

12 years agoEnsure VALID_STAT before accessing fields.
Jeremy Allison [Fri, 16 Dec 2011 23:48:03 +0000 (15:48 -0800)]
Ensure VALID_STAT before accessing fields.

12 years agos4:torture/rap/printing: check smbcli_rap_netprintqgetinfo() WERR status
Stefan Metzmacher [Fri, 16 Dec 2011 17:34:57 +0000 (18:34 +0100)]
s4:torture/rap/printing: check smbcli_rap_netprintqgetinfo() WERR status

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Dec 17 01:09:32 CET 2011 on sn-devel-104

12 years agoFix bug #8664 - Renaming a symlink fails if the symlink target is outside of the...
Jeremy Allison [Fri, 16 Dec 2011 20:26:45 +0000 (12:26 -0800)]
Fix bug #8664 - Renaming a symlink fails if the symlink target is outside of the share.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec 16 23:32:26 CET 2011 on sn-devel-104

12 years agoRestrict UCF_UNIX_NAME_LOOKUP (symlink allowed) to restricted set of calls.
Jeremy Allison [Fri, 16 Dec 2011 19:26:41 +0000 (11:26 -0800)]
Restrict UCF_UNIX_NAME_LOOKUP (symlink allowed) to restricted set of calls.

12 years agowafsamba: Fix undefined variable name in error message.
Jelmer Vernooij [Fri, 16 Dec 2011 16:53:01 +0000 (17:53 +0100)]
wafsamba: Fix undefined variable name in error message.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec 16 21:53:57 CET 2011 on sn-devel-104

12 years agos3:idmap_autorid: use less transactions
Christian Ambach [Fri, 16 Dec 2011 17:41:54 +0000 (18:41 +0100)]
s3:idmap_autorid: use less transactions

reduce the amount of transactions that are mostly unnecessary because no
updates were done, only reads

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri Dec 16 20:18:37 CET 2011 on sn-devel-104

12 years agos3:dbwrap fix return value of db_tdb_parse
Christian Ambach [Fri, 16 Dec 2011 13:51:46 +0000 (14:51 +0100)]
s3:dbwrap fix return value of db_tdb_parse

use the TDB ecode to determine the NTSTATUS return value
and not the return code that is just -1

12 years agos3:printing/spoolssd: avoid using server_messaging_context()
Stefan Metzmacher [Thu, 15 Dec 2011 10:57:24 +0000 (11:57 +0100)]
s3:printing/spoolssd: avoid using server_messaging_context()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 16:29:41 CET 2011 on sn-devel-104

12 years agos3:smbd: remove unused sconn_server_id()
Stefan Metzmacher [Thu, 15 Dec 2011 10:54:01 +0000 (11:54 +0100)]
s3:smbd: remove unused sconn_server_id()

metze

12 years agos3:smbd: avoid using sconn_server_id()
Stefan Metzmacher [Thu, 15 Dec 2011 10:51:20 +0000 (11:51 +0100)]
s3:smbd: avoid using sconn_server_id()

metze

12 years agos3:locking: avoid using sconn_server_id()
Stefan Metzmacher [Thu, 15 Dec 2011 10:50:43 +0000 (11:50 +0100)]
s3:locking: avoid using sconn_server_id()

metze

12 years agos3:lib/conn_tdb: avoid using sconn_server_id()
Stefan Metzmacher [Thu, 15 Dec 2011 10:50:01 +0000 (11:50 +0100)]
s3:lib/conn_tdb: avoid using sconn_server_id()

metze

12 years agos4:libcli/rap: the caller should get talloc children from call->ndr_pull_{param,data}
Stefan Metzmacher [Fri, 16 Dec 2011 10:26:54 +0000 (11:26 +0100)]
s4:libcli/rap: the caller should get talloc children from call->ndr_pull_{param,data}

This should fix the flakey 'rap.printing.rap_printq_getinfo' test,
see https://git.samba.org/autobuild.flakey/2011-12-16-0022/samba4.stdout

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 13:11:42 CET 2011 on sn-devel-104

12 years agos4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'
Stefan Metzmacher [Fri, 16 Dec 2011 10:25:37 +0000 (11:25 +0100)]
s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'

metze

12 years agos4:libcli/rap: use talloc_zero() and initialize everything
Stefan Metzmacher [Fri, 16 Dec 2011 10:18:04 +0000 (11:18 +0100)]
s4:libcli/rap: use talloc_zero() and initialize everything

metze

12 years agos4:libcli/rap: remove unused members from struct rap_call
Stefan Metzmacher [Fri, 16 Dec 2011 08:17:45 +0000 (09:17 +0100)]
s4:libcli/rap: remove unused members from struct rap_call

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 10:53:42 CET 2011 on sn-devel-104

12 years agos4:libcli/rap: initialize call->rcv_datalen
Stefan Metzmacher [Fri, 16 Dec 2011 08:16:40 +0000 (09:16 +0100)]
s4:libcli/rap: initialize call->rcv_datalen

metze

12 years agos3: Add some const to find_oplock_types
Volker Lendecke [Thu, 15 Dec 2011 09:12:42 +0000 (10:12 +0100)]
s3: Add some const to find_oplock_types

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Dec 16 09:10:07 CET 2011 on sn-devel-104

12 years agos3: Make open_file_ntcreate a bit easier to read
Volker Lendecke [Thu, 15 Dec 2011 15:30:08 +0000 (16:30 +0100)]
s3: Make open_file_ntcreate a bit easier to read

Move the declaration of "id" closer to its use

12 years agos3: Make open_file_ntcreate a bit easier to read
Volker Lendecke [Thu, 15 Dec 2011 15:30:08 +0000 (16:30 +0100)]
s3: Make open_file_ntcreate a bit easier to read

Move the calculation of "new_file_created" closer to its use

12 years agos3: Make open_file_ntcreate a bit easier to read
Volker Lendecke [Thu, 15 Dec 2011 15:30:08 +0000 (16:30 +0100)]
s3: Make open_file_ntcreate a bit easier to read

Remove a negation where it's not necessary

12 years agoAdd support for TCP_DEFER_ACCEPT
Volker Lendecke [Thu, 15 Dec 2011 15:12:37 +0000 (16:12 +0100)]
Add support for TCP_DEFER_ACCEPT

"man tcp" on Linux says:

TCP_DEFER_ACCEPT

Allows a listener to be awakened only when data arrives on the  socket.  Takes
an integer value (seconds), this can bound the maximum number of attempts TCP
will make to complete the connection. This option should not be used in code
intended to be portable.

This might reduce the 139/445 forks a bit on high-load servers

12 years agos3: Slightly simplify delay_for_exclusive_oplocks
Volker Lendecke [Thu, 15 Dec 2011 13:35:07 +0000 (14:35 +0100)]
s3: Slightly simplify delay_for_exclusive_oplocks

12 years agos3: Slightly simplify delay_for_batch_oplocks
Volker Lendecke [Thu, 15 Dec 2011 13:33:06 +0000 (14:33 +0100)]
s3: Slightly simplify delay_for_batch_oplocks

12 years agoThird part of fix for bug #8663 - deleting a symlink fails if the symlink target...
Jeremy Allison [Fri, 16 Dec 2011 00:55:32 +0000 (16:55 -0800)]
Third part of fix for bug #8663 - deleting a symlink fails if the symlink target is outside of the share.

smbd_check_access_rights() - we can always delete a symlink.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec 16 03:32:15 CET 2011 on sn-devel-104

12 years agoSecond part of fix for bug #8663 - deleting a symlink fails if the symlink target...
Jeremy Allison [Fri, 16 Dec 2011 00:33:37 +0000 (16:33 -0800)]
Second part of fix for bug #8663 - deleting a symlink fails if the symlink target is outside of the share.

Ensure we use UCF_UNIX_NAME_LOOKUP flags on filename_convert()
when doing a UNIX infolevel in trans2setfilepathinfo().

12 years agoFirst part of fix for bug #8663 - deleting a symlink fails if the symlink target...
Jeremy Allison [Fri, 16 Dec 2011 00:31:51 +0000 (16:31 -0800)]
First part of fix for bug #8663 - deleting a symlink fails if the symlink target is outside of the share.

Remove two unneeded check_name() calls. They have already been done
in order to get here.

12 years agolib/param: Set s4 "host msdfs = true" by default
Andrew Bartlett [Thu, 15 Dec 2011 22:26:04 +0000 (09:26 +1100)]
lib/param: Set s4 "host msdfs = true" by default

This matches the s3 loadparm, and makes this feature available
by default for our users in a DC environment.  (This is needed
for the correct operation of GPOs).

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Dec 16 01:08:34 CET 2011 on sn-devel-104

12 years agoloadparm: fixed service list handling
Andrew Tridgell [Tue, 6 Dec 2011 00:30:24 +0000 (11:30 +1100)]
loadparm: fixed service list handling

when you have:

  server services = +smb -s3fs

and 'smb' is already in the list, then this should not be an
error. This ensures that a config that specifically sets the services
it wants doesn't generate an error if the service list being set
happens to be the default