samba.git
13 years agopidl: Add prototype for init function in pidl-generated Python bindings.
Jelmer Vernooij [Fri, 17 Dec 2010 20:58:16 +0000 (21:58 +0100)]
pidl: Add prototype for init function in pidl-generated Python bindings.

13 years agoRevert "s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later"
Andrew Bartlett [Thu, 16 Dec 2010 21:43:33 +0000 (08:43 +1100)]
Revert "s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later"

This reverts commit 25163380239abbad28f1656c42e6fab1b92473d9 because
further analyis showed the real problem was introduced in 0941099a
(which changed the caller behaviour, but only for indexed searches).

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Dec 18 02:19:59 CET 2010 on sn-devel-104

13 years agolib/ldb Remove talloc_free() that causes double-free in callbacks.
Andrew Bartlett [Thu, 16 Dec 2010 11:28:45 +0000 (22:28 +1100)]
lib/ldb Remove talloc_free() that causes double-free in callbacks.

This partially reverts 0941099a, which was a little over-eager in
fixing what were presumed to be memory leaks.

It is always the callbacks responsiblity to free the ares, but if they
don't then the end of the request should handle the cleanup.
Attempting to talloc_free() here will result (as it did in the
descriptor module) in a double-free error if the callback does free
it, and no other caller of ldb_module_send_entry() has this behaviour.

Andrew Bartlett

13 years agoldb: Rename controls_except_specified -> ldb_controls_except_specified.
Jelmer Vernooij [Fri, 17 Dec 2010 23:43:24 +0000 (00:43 +0100)]
ldb: Rename controls_except_specified -> ldb_controls_except_specified.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 18 01:33:24 CET 2010 on sn-devel-104

13 years agoldb_map: Fix prefix for map functions.
Jelmer Vernooij [Fri, 17 Dec 2010 23:30:22 +0000 (00:30 +0100)]
ldb_map: Fix prefix for map functions.

13 years agoldb: Rename last instance of save_controls -> ldb_save_controls.
Jelmer Vernooij [Fri, 17 Dec 2010 23:12:17 +0000 (00:12 +0100)]
ldb: Rename last instance of save_controls -> ldb_save_controls.

13 years agoldb: Add prototype for ldb_init_module.
Jelmer Vernooij [Fri, 17 Dec 2010 23:11:36 +0000 (00:11 +0100)]
ldb: Add prototype for ldb_init_module.

13 years agoldb: Rename two exported functions so they match abi_match.
Jelmer Vernooij [Fri, 17 Dec 2010 22:00:46 +0000 (23:00 +0100)]
ldb: Rename two exported functions so they match abi_match.

13 years agopidl: Use system pytalloc if possible.
Jelmer Vernooij [Fri, 17 Dec 2010 22:00:31 +0000 (23:00 +0100)]
pidl: Use system pytalloc if possible.

13 years agoAdd bzrignore symlink.
Jelmer Vernooij [Fri, 17 Dec 2010 21:37:04 +0000 (22:37 +0100)]
Add bzrignore symlink.

13 years agowafsamba: Use abi_match in version script files.
Jelmer Vernooij [Fri, 17 Dec 2010 21:23:52 +0000 (22:23 +0100)]
wafsamba: Use abi_match in version script files.

13 years agoheimdal_build: Simplify HEIMDAL_LIBRARY - version_script files are now taken from...
Jelmer Vernooij [Fri, 17 Dec 2010 20:53:42 +0000 (21:53 +0100)]
heimdal_build: Simplify HEIMDAL_LIBRARY - version_script files are now taken from upstream rather than generated.

13 years agoheimdal_build: Add version-script for heimdal_base, hx509 and hcrypto. Convert hbase...
Jelmer Vernooij [Fri, 17 Dec 2010 20:51:21 +0000 (21:51 +0100)]
heimdal_build: Add version-script for heimdal_base, hx509 and hcrypto. Convert hbase and hcrypto to libraries.

13 years agos4-drepl: Reference current Schema cache into working_schema context
Kamen Mazdrashki [Fri, 17 Dec 2010 20:26:03 +0000 (22:26 +0200)]
s4-drepl: Reference current Schema cache into working_schema context

working_schema is a shallow copy of current schema and thus
depends on part of it. So we want it to be around as long as
working_schema is used.

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Fri Dec 17 23:34:29 CET 2010 on sn-devel-104

13 years agos4-drepl: Fix log message to be shown on its own line
Kamen Mazdrashki [Fri, 17 Dec 2010 20:12:30 +0000 (22:12 +0200)]
s4-drepl: Fix log message to be shown on its own line

13 years agoMove checks inside file_set_sparse() to allow it to be called from anywhere.
Jeremy Allison [Fri, 17 Dec 2010 00:50:31 +0000 (16:50 -0800)]
Move checks inside file_set_sparse() to allow it to be called from anywhere.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec 17 21:56:38 CET 2010 on sn-devel-104

13 years agofile_set_sparse needs to be a handle based call.
Jeremy Allison [Fri, 17 Dec 2010 00:42:33 +0000 (16:42 -0800)]
file_set_sparse needs to be a handle based call.

13 years agos3:smbd: implement FSCTL_SET_SPARSE more correctly
Björn Jacke [Thu, 18 Nov 2010 16:24:00 +0000 (17:24 +0100)]
s3:smbd: implement FSCTL_SET_SPARSE more correctly

this is a port of a patch from metze for 3.3:

We don't do the "strict allocation" when the sparse bit isn't
set, but that shouldn't matter.

We now allow windows applications to set and unset the sparse
bit.

Note that in order to implement this 100% like described
in [MS-FSA], we'd have to change our data model and support
the sparse flag per stream.

13 years agoUpdate our attribute flags.
Jeremy Allison [Fri, 17 Dec 2010 18:22:58 +0000 (10:22 -0800)]
Update our attribute flags.

13 years agos3:smbd: add file_set_sparse() function
Björn Jacke [Tue, 14 Dec 2010 09:03:07 +0000 (10:03 +0100)]
s3:smbd: add file_set_sparse() function

this is based on a patch for 3.3 from metze

13 years agos3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, too
Björn Jacke [Thu, 18 Nov 2010 16:22:31 +0000 (17:22 +0100)]
s3/vfs_gpfs: map SPARSE attribute to/from WINATTRs, too

13 years agos3: remove set_sparse_flag
Björn Jacke [Thu, 18 Nov 2010 16:03:01 +0000 (17:03 +0100)]
s3: remove set_sparse_flag

we need to determine sparseness from the sparse flag we store not from the
allocation size on the POSIX filesystem. This is how Windows works - in the
first place sparseness is a file flag, not the allocation state of the file

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3: add FILE_ATTRIBUTE_SPARSE to get_stat_dos_flags
Björn Jacke [Thu, 18 Nov 2010 15:04:03 +0000 (16:04 +0100)]
s3: add FILE_ATTRIBUTE_SPARSE to get_stat_dos_flags

13 years agoheimdal_build: Add version-script for krb5.
Jelmer Vernooij [Fri, 17 Dec 2010 19:11:15 +0000 (20:11 +0100)]
heimdal_build: Add version-script for krb5.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec 17 21:09:25 CET 2010 on sn-devel-104

13 years agoheimdal_build: Add version-script for gssapi.
Jelmer Vernooij [Fri, 17 Dec 2010 19:08:11 +0000 (20:08 +0100)]
heimdal_build: Add version-script for gssapi.

13 years agoheimdal_build: Add version-script for asn1.
Jelmer Vernooij [Fri, 17 Dec 2010 19:06:15 +0000 (20:06 +0100)]
heimdal_build: Add version-script for asn1.

13 years agoheimdal_build: Add version-script for hdb.
Jelmer Vernooij [Fri, 17 Dec 2010 19:01:21 +0000 (20:01 +0100)]
heimdal_build: Add version-script for hdb.

13 years agoheimdal_build: Add version-script for kdc.
Jelmer Vernooij [Fri, 17 Dec 2010 19:00:58 +0000 (20:00 +0100)]
heimdal_build: Add version-script for kdc.

13 years agoheimdal_build: Add version-script for wind.
Jelmer Vernooij [Fri, 17 Dec 2010 18:55:54 +0000 (19:55 +0100)]
heimdal_build: Add version-script for wind.

13 years agoheimdal_build: Add version-script for ntlm.
Jelmer Vernooij [Fri, 17 Dec 2010 18:54:09 +0000 (19:54 +0100)]
heimdal_build: Add version-script for ntlm.

13 years agoheimdal: Add version script file for hcrypto (unused so far, as hcrypto still needs...
Jelmer Vernooij [Fri, 17 Dec 2010 18:52:42 +0000 (19:52 +0100)]
heimdal: Add version script file for hcrypto (unused so far, as hcrypto still needs to be made a proper library).

13 years agoheimdal_build: Add version-script for roken.
Jelmer Vernooij [Fri, 17 Dec 2010 18:51:37 +0000 (19:51 +0100)]
heimdal_build: Add version-script for roken.

13 years agoheimdal_build: Add version-script for com_err.
Jelmer Vernooij [Fri, 17 Dec 2010 18:50:52 +0000 (19:50 +0100)]
heimdal_build: Add version-script for com_err.

13 years agowafsamba: Specify full vscript path so non-autogenerated files are possible, too.
Jelmer Vernooij [Fri, 17 Dec 2010 18:38:12 +0000 (19:38 +0100)]
wafsamba: Specify full vscript path so non-autogenerated files are possible, too.

13 years agoheimdal_build: Simplify version_script handling.
Jelmer Vernooij [Fri, 17 Dec 2010 18:21:58 +0000 (19:21 +0100)]
heimdal_build: Simplify version_script handling.

13 years agowafsamba: Don't build vscript for modules.
Jelmer Vernooij [Fri, 17 Dec 2010 18:21:47 +0000 (19:21 +0100)]
wafsamba: Don't build vscript for modules.

13 years agowafsamba: Move version script handling out of SAMBA_LIBRARY.
Jelmer Vernooij [Fri, 17 Dec 2010 18:16:33 +0000 (19:16 +0100)]
wafsamba: Move version script handling out of SAMBA_LIBRARY.

13 years agoSimplify link installation.
Jelmer Vernooij [Fri, 17 Dec 2010 17:47:05 +0000 (18:47 +0100)]
Simplify link installation.

13 years agoheimdal_build: Simplify library handling.
Jelmer Vernooij [Fri, 17 Dec 2010 17:42:34 +0000 (18:42 +0100)]
heimdal_build: Simplify library handling.

13 years agos4-smbtorture: allow to call test_GetDriverInfo_winreg without printer handle.
Günther Deschner [Thu, 16 Dec 2010 15:06:02 +0000 (16:06 +0100)]
s4-smbtorture: allow to call test_GetDriverInfo_winreg without printer handle.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 17:35:21 CET 2010 on sn-devel-104

13 years agos4-smbtorture: check if returned driver paths match requested architecture.
Günther Deschner [Wed, 15 Dec 2010 16:44:56 +0000 (17:44 +0100)]
s4-smbtorture: check if returned driver paths match requested architecture.

Guenther

13 years agos3:net ads dns register: use "cluster addresses" option if configured (bug #7871)
Stefan Metzmacher [Thu, 16 Dec 2010 11:07:24 +0000 (12:07 +0100)]
s3:net ads dns register: use "cluster addresses" option if configured (bug #7871)

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 17 16:49:14 CET 2010 on sn-devel-104

13 years agos3:net ads dns register: add support for specifying addresse on the commandline ...
Michael Adam [Thu, 16 Dec 2010 00:49:14 +0000 (01:49 +0100)]
s3:net ads dns register: add support for specifying addresse on the commandline (bug #7871)

In the clustering case, this is also made the only possiblity to do dns updates,
since the list addresses on the local interfaces is not suitable in that case.

This fixes the "net ads dns register" part of bug #7871.
It might be extended by a parsing of the "cluster addresses" setting.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3:net: add net_update_dns_ext() that accepts a list of addresses as parameter (bug...
Michael Adam [Wed, 15 Dec 2010 23:52:41 +0000 (00:52 +0100)]
s3:net: add net_update_dns_ext() that accepts a list of addresses as parameter (bug# 7871)

This generalized form of net_update_dns() will be used to
add support for specifying a list of addresses on the commandline
of "net ads dns register".

This prepares the "net ads dns register" part of the fix for bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agos3:net: disable dynamic dns updates at the end of "net ads join" in a cluster (bug...
Michael Adam [Wed, 1 Dec 2010 23:42:21 +0000 (00:42 +0100)]
s3:net: disable dynamic dns updates at the end of "net ads join" in a cluster (bug #7871)

In a clustered environment, registering the set of ip addresses that are
assigned to the interfaces of the node that performs the join does usually
not have the desired effect, since the local interfaces do not carry
complete set of the cluster's public IP addresses.  And it can also contain
internal addresses that should not be visible to the outside at all.
In order to do dns updates in a clustererd setup, use net ads dns register.

This fixes the net ads join part of bug #7871.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agoutil_net: fix a comment typo in interpret_string_addr_internal()
Michael Adam [Wed, 15 Dec 2010 23:24:00 +0000 (00:24 +0100)]
util_net: fix a comment typo in interpret_string_addr_internal()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
13 years agolibcli/security: remove unused variable.
Günther Deschner [Fri, 17 Dec 2010 11:47:13 +0000 (12:47 +0100)]
libcli/security: remove unused variable.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 13:56:27 CET 2010 on sn-devel-104

13 years agos4-smbtorture: pass down driverosversion to test_DriverInfo_winreg.
Günther Deschner [Thu, 16 Dec 2010 14:59:19 +0000 (15:59 +0100)]
s4-smbtorture: pass down driverosversion to test_DriverInfo_winreg.

Guenther

13 years agos4-smbtorture: skip level 8 checks in test_GetDriverInfo_winreg for w2k3.
Günther Deschner [Thu, 16 Dec 2010 15:01:51 +0000 (16:01 +0100)]
s4-smbtorture: skip level 8 checks in test_GetDriverInfo_winreg for w2k3.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec 17 12:20:38 CET 2010 on sn-devel-104

13 years agos4-smbtorture: skipping level 8 driveradds against w2k3.
Günther Deschner [Thu, 16 Dec 2010 10:58:36 +0000 (11:58 +0100)]
s4-smbtorture: skipping level 8 driveradds against w2k3.

Guenther

13 years agos4-smbtorture: add torture_assert_strn_equal macro.
Günther Deschner [Wed, 15 Dec 2010 16:44:23 +0000 (17:44 +0100)]
s4-smbtorture: add torture_assert_strn_equal macro.

Guenther

13 years agos3-net: fix net sid type build warning.
Günther Deschner [Thu, 16 Dec 2010 11:40:47 +0000 (12:40 +0100)]
s3-net: fix net sid type build warning.

Guenther

13 years agos3/net: tz argument should be NULL of course
Björn Jacke [Fri, 17 Dec 2010 00:00:49 +0000 (01:00 +0100)]
s3/net: tz argument should be NULL of course

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Dec 17 01:48:40 CET 2010 on sn-devel-104

13 years agoDo more vfs_stat_fsp calls instead of FSTAT - ensures fsp->fsp_name->st is kept up...
Jeremy Allison [Thu, 16 Dec 2010 21:52:59 +0000 (13:52 -0800)]
Do more vfs_stat_fsp calls instead of FSTAT - ensures fsp->fsp_name->st is kept up to date.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 23:41:06 CET 2010 on sn-devel-104

13 years agos4-waf: nsstest only needs replace.
Günther Deschner [Wed, 15 Dec 2010 14:39:47 +0000 (15:39 +0100)]
s4-waf: nsstest only needs replace.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Dec 16 11:40:52 CET 2010 on sn-devel-104

13 years agospoolss: fill in PerMachineConnections add and delete IDL.
Günther Deschner [Mon, 4 Oct 2010 13:03:08 +0000 (15:03 +0200)]
spoolss: fill in PerMachineConnections add and delete IDL.

Guenther

13 years agos4-dsdb Don't talloc_free() ares on failure, as LDB might free it later
Andrew Bartlett [Thu, 16 Dec 2010 04:51:55 +0000 (15:51 +1100)]
s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later

We need to make LDB consistent here (indexed vs unindexed behaviour
differs here!), but for the moment this is the easiest way out of a
segfault.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec 16 06:42:56 CET 2010 on sn-devel-104

13 years agos4-dsdb Use sid_blob_parse()
Andrew Bartlett [Wed, 15 Dec 2010 04:48:00 +0000 (15:48 +1100)]
s4-dsdb Use sid_blob_parse()

13 years agolibcli/security Add sid_blob_parse() to directly parse a binary SID blob
Andrew Bartlett [Wed, 15 Dec 2010 04:47:01 +0000 (15:47 +1100)]
libcli/security Add sid_blob_parse() to directly parse a binary SID blob

13 years agoTypos in wintest
Zahari Zahariev [Mon, 13 Dec 2010 16:14:51 +0000 (18:14 +0200)]
Typos in wintest

13 years agoFix old bug in openX code, exposed when "strict allocate" is set to true.
Jeremy Allison [Thu, 16 Dec 2010 00:49:04 +0000 (16:49 -0800)]
Fix old bug in openX code, exposed when "strict allocate" is set to true.

We need to return the file size here, not the allocation size, but
we were not updating the stat struct after the vfs_set_filesize()
call. Ensure we always use fresh data in openX replies.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 02:37:58 CET 2010 on sn-devel-104

13 years agoChange strict allocate to default to true. (cherry picked from commit 820ea22a07b062b...
Jeremy Allison [Wed, 15 Dec 2010 21:32:09 +0000 (13:32 -0800)]
Change strict allocate to default to true. (cherry picked from commit 820ea22a07b062b1717d35de8fa7051fc1067c3f)

13 years agos4-tests: Added a speedtest for LDAP search operations with different accounts.
Nadezhda Ivanova [Wed, 15 Dec 2010 19:29:53 +0000 (21:29 +0200)]
s4-tests: Added a speedtest for LDAP search operations with different accounts.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Dec 15 21:32:09 CET 2010 on sn-devel-104

13 years agos4-tests: Added tests for LDAP add/delete/modify using anonymous login.
Nadezhda Ivanova [Wed, 15 Dec 2010 19:28:59 +0000 (21:28 +0200)]
s4-tests: Added tests for LDAP add/delete/modify using anonymous login.

13 years agos4-dsdb: Fixed incorrect LDAP return code when anonymous login is used.
Nadezhda Ivanova [Wed, 15 Dec 2010 19:28:12 +0000 (21:28 +0200)]
s4-dsdb: Fixed incorrect LDAP return code when anonymous login is used.

13 years agoFix bug 7866 - "net" in v3-6-test broken.
Jeremy Allison [Wed, 15 Dec 2010 18:57:23 +0000 (10:57 -0800)]
Fix bug 7866 - "net" in v3-6-test broken.

Someone wasn't careful about testing when not running as root :-).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 20:45:25 CET 2010 on sn-devel-104

13 years agoldb: Bump API after symbol changes.
Jelmer Vernooij [Wed, 15 Dec 2010 16:29:59 +0000 (17:29 +0100)]
ldb: Bump API after symbol changes.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec 15 18:18:52 CET 2010 on sn-devel-104

13 years agoldb: Build modules as .so files.
Jelmer Vernooij [Wed, 15 Dec 2010 15:47:46 +0000 (16:47 +0100)]
ldb: Build modules as .so files.

13 years agojoin: Properly cancel transaction on exceptions.
Jelmer Vernooij [Wed, 15 Dec 2010 15:40:59 +0000 (16:40 +0100)]
join: Properly cancel transaction on exceptions.

13 years agoMove get_loadparm() and get_credentials() to samba.tests.TestCase.
Jelmer Vernooij [Wed, 15 Dec 2010 13:57:43 +0000 (14:57 +0100)]
Move get_loadparm() and get_credentials() to samba.tests.TestCase.

13 years agos3:rpc_client: implement rpc_transport_np_init() on top of rpc_transport_tstream_init()
Stefan Metzmacher [Mon, 6 Sep 2010 15:31:15 +0000 (17:31 +0200)]
s3:rpc_client: implement rpc_transport_np_init() on top of rpc_transport_tstream_init()

This also makes use of tstream_cli_np_open() to get the tstream.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 15 16:12:30 CET 2010 on sn-devel-104

13 years agos3:rpc_client: implement rpc_transport_sock_init() on top of rpc_transport_tstream_init()
Stefan Metzmacher [Mon, 6 Sep 2010 15:31:27 +0000 (17:31 +0200)]
s3:rpc_client: implement rpc_transport_sock_init() on top of rpc_transport_tstream_init()

metze

13 years agos3:rpc_client/rpc_transport_tstream.c: add some logic to handle cli_np tstreams
Stefan Metzmacher [Tue, 14 Dec 2010 17:20:25 +0000 (18:20 +0100)]
s3:rpc_client/rpc_transport_tstream.c: add some logic to handle cli_np tstreams

metze

13 years agos3:rpc_client/rpc_transport_tstream: timeout should be unsigned int
Stefan Metzmacher [Tue, 14 Dec 2010 17:19:14 +0000 (18:19 +0100)]
s3:rpc_client/rpc_transport_tstream: timeout should be unsigned int

metze

13 years agos3:rpc_client: let rpc_transport_tstream_init() create read and write queue
Stefan Metzmacher [Tue, 22 Jun 2010 22:01:45 +0000 (18:01 -0400)]
s3:rpc_client: let rpc_transport_tstream_init() create read and write queue

metze

13 years agos3:libsmb: add tstream_cli_np_get_cli_state()
Stefan Metzmacher [Tue, 14 Dec 2010 17:18:13 +0000 (18:18 +0100)]
s3:libsmb: add tstream_cli_np_get_cli_state()

metze

13 years agos3:libsmb: add tstream_cli_np_set_timeout()
Stefan Metzmacher [Tue, 14 Dec 2010 17:17:45 +0000 (18:17 +0100)]
s3:libsmb: add tstream_cli_np_set_timeout()

metze

13 years agos3:libsmb: add tstream_cli_np_use_trans() and the needed logic
Stefan Metzmacher [Sat, 4 Sep 2010 09:01:55 +0000 (11:01 +0200)]
s3:libsmb: add tstream_cli_np_use_trans() and the needed logic

tstream_cli_np_use_trans() defers the next tstream_writev
to the next tstream_readv and send both as an SMBtrans request.

metze

13 years agos3:libsmb: add tstream_is_cli_np()
Stefan Metzmacher [Sat, 4 Sep 2010 09:00:31 +0000 (11:00 +0200)]
s3:libsmb: add tstream_is_cli_np()

metze

13 years agos3:libsmb: add cli_np_tstream.c
Stefan Metzmacher [Thu, 12 Aug 2010 10:00:15 +0000 (12:00 +0200)]
s3:libsmb: add cli_np_tstream.c

This abstracts a named pipe over smb as a tstream,
which will make it easier to implement the dcerpc
layer in a more generic way.

metze

13 years agos4-dsdb/tests/python: Explicitly pass comamnd line LoadParm() instance to system_sess...
Kamen Mazdrashki [Wed, 15 Dec 2010 13:16:54 +0000 (15:16 +0200)]
s4-dsdb/tests/python: Explicitly pass comamnd line LoadParm() instance to system_session()

Otherwise system_session() creates a LoadParm() instance
which resets certain global parameters to their defaults
from smb.conf ("log level" for instance)

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 15:10:47 CET 2010 on sn-devel-104

13 years agos4-dns: implemented parsing and storing of DNS records from bind
Andrew Tridgell [Wed, 15 Dec 2010 10:46:05 +0000 (21:46 +1100)]
s4-dns: implemented parsing and storing of DNS records from bind

DNS updates from nsupdate against our ldb SAM now work

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec 15 12:36:46 CET 2010 on sn-devel-104

13 years agos4-dns: added basic DLZ writeable support to dlz_bind9
Andrew Tridgell [Wed, 15 Dec 2010 04:02:09 +0000 (15:02 +1100)]
s4-dns: added basic DLZ writeable support to dlz_bind9

this implements the expanded DLZ update driver API, allowing for bind9
to send dynamic updates to the Samba DLZ driver.

This change also adds support for exporting all DNS zones in the SAM
database, which also means we now correctly separate the _msdcs zone
from the main zone.

13 years agowaf: fixed re-running of build rules
Andrew Tridgell [Wed, 15 Dec 2010 03:59:47 +0000 (14:59 +1100)]
waf: fixed re-running of build rules

the addition of ldflags deps caused us to re-run the build rules every
time.

13 years agos3-waf: use shared libwbclient wscript_build.
Günther Deschner [Wed, 15 Dec 2010 09:21:16 +0000 (10:21 +0100)]
s3-waf: use shared libwbclient wscript_build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 11:42:16 CET 2010 on sn-devel-104

13 years agos3-waf: fix winbind-client subsystem.
Günther Deschner [Wed, 15 Dec 2010 09:11:34 +0000 (10:11 +0100)]
s3-waf: fix winbind-client subsystem.

Guenther

13 years agos3-waf: add libkrb5 winbind locator plugin.
Günther Deschner [Wed, 15 Dec 2010 09:04:34 +0000 (10:04 +0100)]
s3-waf: add libkrb5 winbind locator plugin.

Guenther

13 years agos3-waf: rework rpc_server handling a bit.
Günther Deschner [Tue, 14 Dec 2010 23:33:21 +0000 (00:33 +0100)]
s3-waf: rework rpc_server handling a bit.

Guenther

13 years agobuild: openbsd plateform is openbsd4
Matthieu Patou [Wed, 15 Dec 2010 09:06:53 +0000 (12:06 +0300)]
build: openbsd plateform is openbsd4

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec 15 10:55:08 CET 2010 on sn-devel-104

13 years agobuild: hpux didn't support -Bdynamic
Matthieu Patou [Wed, 15 Dec 2010 08:33:02 +0000 (11:33 +0300)]
build: hpux didn't support -Bdynamic

13 years agoProtect the onefs sendfile from EAGAIN/EWOULDBLOCK.
Jeremy Allison [Wed, 15 Dec 2010 01:35:29 +0000 (17:35 -0800)]
Protect the onefs sendfile from EAGAIN/EWOULDBLOCK.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 03:26:43 CET 2010 on sn-devel-104

13 years agoImplement "use sendfile = yes" for SMB2. (cherry picked from commit 95cb7adcd03a1abbd...
Jeremy Allison [Tue, 14 Dec 2010 21:36:08 +0000 (13:36 -0800)]
Implement "use sendfile = yes" for SMB2. (cherry picked from commit 95cb7adcd03a1abbd0af395b6c96dd8e0eebd3d1)

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 02:24:08 CET 2010 on sn-devel-104

13 years agoFix read/write calls over sockets to cope with EAGAIN/EWOULDBLOCK for non-blocking...
Jeremy Allison [Tue, 14 Dec 2010 23:30:06 +0000 (15:30 -0800)]
Fix read/write calls over sockets to cope with EAGAIN/EWOULDBLOCK for non-blocking sockets.

13 years agoChange interface of schedule_smb2_aio_read() to allocate the return DATA_BLOB.
Jeremy Allison [Wed, 15 Dec 2010 00:32:10 +0000 (16:32 -0800)]
Change interface of schedule_smb2_aio_read() to allocate the return DATA_BLOB.
Change smb2_read code to allocate return DATA_BLOB just before the read.

Preparing for SMB2 sendfile change which will not need to allocate
return buffer.

Jeremy

13 years agos4-test/repl_schema: remove unused and commented out code
Kamen Mazdrashki [Tue, 14 Dec 2010 22:24:23 +0000 (00:24 +0200)]
s4-test/repl_schema: remove unused and commented out code

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 01:37:10 CET 2010 on sn-devel-104

13 years agos4-test/repl_schema: Make sure every object is with unique name
Kamen Mazdrashki [Mon, 13 Dec 2010 18:15:26 +0000 (20:15 +0200)]
s4-test/repl_schema: Make sure every object is with unique name

This way, test writer don't have to be careful to choose
unique objects suffix

13 years agos4-dsdb_schema: Handle remote ATTIDs based on msDs-IntId value
Kamen Mazdrashki [Fri, 10 Dec 2010 23:59:05 +0000 (01:59 +0200)]
s4-dsdb_schema: Handle remote ATTIDs based on msDs-IntId value

If we get such an msDs-IntId value, then we should just use it,
there is no mapping available for such values

13 years agos4-schema_syntax: Log error message when _dsdb_syntax_OID_oid_drsuapi_to_ldb() fails
Kamen Mazdrashki [Fri, 10 Dec 2010 02:22:58 +0000 (04:22 +0200)]
s4-schema_syntax: Log error message when _dsdb_syntax_OID_oid_drsuapi_to_ldb() fails

I haven't found a way to test this function during replication so far,
but when I do, it will be useful to notice this error in the log file

13 years agos4-drepl: We won't need a working schema for empty replicas sent.
Kamen Mazdrashki [Fri, 10 Dec 2010 02:17:09 +0000 (04:17 +0200)]
s4-drepl: We won't need a working schema for empty replicas sent.

Without this check, receiving empty replica leads to a situation
where we left with a working_schema attached to the ldb.

The problem here is that working_schema is not fully functional
schema cache and keeping it attached to the ldb may lead
to modules failing to accomplish their jobs

13 years agos4-dsdb_schema: We need base_dn in Schema's shallow copy too
Kamen Mazdrashki [Fri, 10 Dec 2010 02:08:58 +0000 (04:08 +0200)]
s4-dsdb_schema: We need base_dn in Schema's shallow copy too