samba.git
12 years agolibsmbconf: Document smbconf_share_exists().
Andreas Schneider [Thu, 14 Apr 2011 09:23:56 +0000 (11:23 +0200)]
libsmbconf: Document smbconf_share_exists().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_share_names().
Andreas Schneider [Thu, 14 Apr 2011 09:22:25 +0000 (11:22 +0200)]
libsmbconf: Document smbconf_get_share_names().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_get_config().
Andreas Schneider [Thu, 14 Apr 2011 09:19:36 +0000 (11:19 +0200)]
libsmbconf: Document smbconf_get_config().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_drop().
Andreas Schneider [Thu, 14 Apr 2011 09:13:49 +0000 (11:13 +0200)]
libsmbconf: Document smbconf_drop().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_changed().
Andreas Schneider [Thu, 14 Apr 2011 09:12:27 +0000 (11:12 +0200)]
libsmbconf: Document smbconf_changed().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_shutdown().
Andreas Schneider [Thu, 14 Apr 2011 09:05:09 +0000 (11:05 +0200)]
libsmbconf: Document smbconf_shutdown().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_is_writeable().
Andreas Schneider [Thu, 14 Apr 2011 09:04:15 +0000 (11:04 +0200)]
libsmbconf: Document smbconf_is_writeable().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Document smbconf_backend_requires_messaging().
Andreas Schneider [Thu, 14 Apr 2011 09:02:49 +0000 (11:02 +0200)]
libsmbconf: Document smbconf_backend_requires_messaging().

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3-waf: Create a public libsmconf.
Andreas Schneider [Tue, 12 Apr 2011 09:02:07 +0000 (11:02 +0200)]
s3-waf: Create a public libsmconf.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3-waf: Create a registry private library.
Andreas Schneider [Tue, 12 Apr 2011 08:59:20 +0000 (10:59 +0200)]
s3-waf: Create a registry private library.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_config() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 15:43:10 +0000 (17:43 +0200)]
libsmbconf: Convert smbconf_get_config() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_transaction_*() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 15:24:13 +0000 (17:24 +0200)]
libsmbconf: Convert smbconf_transaction_*() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_delete_includes() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 14:01:22 +0000 (16:01 +0200)]
libsmbconf: Convert smbconf_delete_includes() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_set_includes() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 13:14:52 +0000 (15:14 +0200)]
libsmbconf: Convert smbconf_set_includes() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_includes() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 12:52:52 +0000 (14:52 +0200)]
libsmbconf: Convert smbconf_get_includes() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_delete_parameter() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 12:20:32 +0000 (14:20 +0200)]
libsmbconf: Convert smbconf_delete_parameter() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_parameter() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 11:50:53 +0000 (13:50 +0200)]
libsmbconf: Convert smbconf_get_parameter() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_set_parameter() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 11:23:26 +0000 (13:23 +0200)]
libsmbconf: Convert smbconf_set_parameter() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_delete_share() to sbcErr.
Andreas Schneider [Mon, 11 Apr 2011 09:39:03 +0000 (11:39 +0200)]
libsmbconf: Convert smbconf_delete_share() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_share() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 15:20:35 +0000 (17:20 +0200)]
libsmbconf: Convert smbconf_get_share() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_create_share() to smbErr.
Andreas Schneider [Fri, 8 Apr 2011 13:48:01 +0000 (15:48 +0200)]
libsmbconf: Convert smbconf_create_share() to smbErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_get_share_names() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 12:19:15 +0000 (14:19 +0200)]
libsmbconf: Convert smbconf_get_share_names() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_drop() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 08:40:02 +0000 (10:40 +0200)]
libsmbconf: Convert smbconf_drop() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_open() to sbcErr.
Andreas Schneider [Fri, 8 Apr 2011 08:28:17 +0000 (10:28 +0200)]
libsmbconf: Convert smbconf_open() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Convert smbconf_init() to sbcErr.
Andreas Schneider [Thu, 7 Apr 2011 15:19:03 +0000 (17:19 +0200)]
libsmbconf: Convert smbconf_init() to sbcErr.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Added a sbcErrorString() function.
Andreas Schneider [Thu, 7 Apr 2011 13:27:52 +0000 (15:27 +0200)]
libsmbconf: Added a sbcErrorString() function.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agolibsmbconf: Introduce a sbcErrType.
Andreas Schneider [Thu, 7 Apr 2011 13:27:26 +0000 (15:27 +0200)]
libsmbconf: Introduce a sbcErrType.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agoFix alpha version - we're now working on alpha16.
Jelmer Vernooij [Mon, 9 May 2011 07:13:15 +0000 (09:13 +0200)]
Fix alpha version - we're now working on alpha16.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue May 10 18:36:08 CEST 2011 on sn-devel-104

12 years agos3-printing: Fix double free of cups request.
Günther Deschner [Tue, 10 May 2011 13:49:05 +0000 (15:49 +0200)]
s3-printing: Fix double free of cups request.

We never free the request in our cups api usage except for here. The reason is
probably htis (from the cupsDoConnect API docs):

"This function sends the IPP request to the specified server, retrying and
authenticating as necessary. The request is freed with ippDelete() after
receiving a valid IPP response."

Revert "Fix a memory leak in cups_pull_comment_location"

This reverts commit fee2664dad37536b05ce8bdae3e74d45b257f632.

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 10 17:32:58 CEST 2011 on sn-devel-104

12 years agos3-printing: very obvious fix for cups_pull_comment_location().
Günther Deschner [Tue, 10 May 2011 13:48:25 +0000 (15:48 +0200)]
s3-printing: very obvious fix for cups_pull_comment_location().

This has been in there since 2008...

Guenther

12 years agos3-events: tevent_internal.h is not a public header
Andrew Tridgell [Tue, 10 May 2011 12:55:45 +0000 (14:55 +0200)]
s3-events: tevent_internal.h is not a public header

We need to use the "foo.h" form instead of the <foo.h> form for
headers that are not installed publicly. Otherwise when an external
version of tevent is used we won't find the header and the build will
fail.

Note that this creates a structure dependency between the
tevent structures in the external library and the headers in our
source tree. That is not ideal, but is currently OK as the waf build
will only use the external library if it is at least the same version
as the internal tree, which means it will actually be the same
version, as we release the external version from our tree.

We should come up with a better solution, but for now this allows
openchange to build again.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue May 10 16:06:40 CEST 2011 on sn-devel-104

12 years agos3: Use tevent_req_ntstatus properly in a few places
Volker Lendecke [Tue, 10 May 2011 09:05:47 +0000 (11:05 +0200)]
s3: Use tevent_req_ntstatus properly in a few places

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 10 13:11:10 CEST 2011 on sn-devel-104

12 years agos3: Use tevent_req_ntstatus properly in a few places
Volker Lendecke [Tue, 10 May 2011 09:05:47 +0000 (11:05 +0200)]
s3: Use tevent_req_ntstatus properly in a few places

12 years agoasync_smb.c: convert cli->timeout properly
Rusty Russell [Tue, 10 May 2011 08:03:11 +0000 (17:33 +0930)]
async_smb.c: convert cli->timeout properly

I have a test failure on my 32-bit Ubuntu system, in that
samba3.smbtorture_s3.plain(s3dc).LOCK9 immediately times out (rather than
waiting 5 seconds for the child).

Debugging revealed this code: timeout is in ms and is set to > 1000 in
various places.  The code dates from 2002, and other perturbations didn't
reveal why it breaks now, but fix it anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue May 10 12:09:07 CEST 2011 on sn-devel-104

12 years agotdb_wrap.h: not a public header.
Rusty Russell [Tue, 10 May 2011 02:16:53 +0000 (11:46 +0930)]
tdb_wrap.h: not a public header.

It is a private library, and OpenChange has their own which they use, so
it's not for them either.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue May 10 05:21:19 CEST 2011 on sn-devel-104

13 years agogencache: don't use CLEAR_IF_FIRST as fallback.
Rusty Russell [Tue, 19 Apr 2011 02:36:05 +0000 (12:06 +0930)]
gencache: don't use CLEAR_IF_FIRST as fallback.

CLEAR_IF_FIRST only works if *all* openers use that flag.

So just truncate the file: it's racy, but that's what we're doing anyway.

We'd really need a TDB_OPENCHECK_OR_CLEAR flag to do this properly (or in
TDB2, a open hook at the right point).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agoAdd -fno-common where supported (WAF only)
Rusty Russell [Tue, 10 May 2011 02:07:30 +0000 (11:37 +0930)]
Add -fno-common where supported (WAF only)

Normally under UNIX, uninitialized non-static global variables get
placed in the "common" section, where they are merged at link time.
This means if two C files define "int debug", they will end up
referring to the same variable.  Or if one does "float level" and the
other does "int level" you'll get an accidental union.

Such bugs can be hard to track down; fortunately GCC offers
-fno-common to disable this feature.  It didn't reveal any places
which need fixing, however).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agobuild: Remove --disable-s3build so we can rely on these subsystems
Andrew Bartlett [Mon, 9 May 2011 09:00:18 +0000 (11:00 +0200)]
build: Remove --disable-s3build so we can rely on these subsystems

This will make it easier to write code that uses the whole codebase.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon May  9 12:25:33 CEST 2011 on sn-devel-104

12 years agos3-build: Move generated config.h and config.h.in to include/autoconf
Andrew Bartlett [Mon, 9 May 2011 08:59:15 +0000 (10:59 +0200)]
s3-build: Move generated config.h and config.h.in to include/autoconf

This ensures that these are not found by the waf build, which causes
issues when the wrong config.h is used by the recursive smbtorture build

Andrew Bartlett

12 years agotevent: Fix a typo
Volker Lendecke [Mon, 9 May 2011 05:13:00 +0000 (07:13 +0200)]
tevent: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May  9 08:17:08 CEST 2011 on sn-devel-104

12 years agos3: Fix a typo
Samba-JP oota [Mon, 9 May 2011 05:12:25 +0000 (07:12 +0200)]
s3: Fix a typo

12 years agoselftest: Test both users created in plugin_s4_dc environment
Andrew Bartlett [Mon, 9 May 2011 02:22:01 +0000 (04:22 +0200)]
selftest: Test both users created in plugin_s4_dc environment

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon May  9 06:10:52 CEST 2011 on sn-devel-104

12 years agoselftest: don't override just-added username in plugin_s4_dc test
Andrew Bartlett [Mon, 9 May 2011 02:20:00 +0000 (04:20 +0200)]
selftest: don't override just-added username in plugin_s4_dc test

This will allow us to test a user added via smbpasswd as well as the
administrator added by provision.

Andrew Bartlett

12 years agonsswitch: Fix build check logic
Kai Blin [Sun, 8 May 2011 19:50:34 +0000 (21:50 +0200)]
nsswitch: Fix build check logic

Only build pam_winbind.so if we want pam modules _and_ have the libs

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sun May  8 23:56:33 CEST 2011 on sn-devel-104

12 years agoselftest: Polish selftest-vars.sh a little so it can be used again
Kamen Mazdrashki [Sun, 8 May 2011 10:31:32 +0000 (13:31 +0300)]
selftest: Polish selftest-vars.sh a little so it can be used again

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun May  8 22:50:01 CEST 2011 on sn-devel-104

12 years agos4-selftest Add tests for proxy_samba4_dc
Andrew Bartlett [Sun, 8 May 2011 13:26:28 +0000 (15:26 +0200)]
s4-selftest Add tests for proxy_samba4_dc

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May  8 20:03:45 CEST 2011 on sn-devel-104

12 years agoselftest: Make the ncalrpc dir common between Samba4 and Samba3.
Andrew Bartlett [Sun, 8 May 2011 08:32:01 +0000 (10:32 +0200)]
selftest: Make the ncalrpc dir common between Samba4 and Samba3.

This also avoids creating the directory, as the startup routines will
create it with the correct permissions.

Andrew Bartlett

12 years agoncalrpc: Force ncalrpc dir to be mode 755 in all users
Andrew Bartlett [Sun, 8 May 2011 08:29:27 +0000 (10:29 +0200)]
ncalrpc: Force ncalrpc dir to be mode 755 in all users

This allows this directory to be shared between Samba3 and Samba4 in a
Franky-style setup easily.

Andrew Bartlett

12 years agoselftest: Add plugin_s4_dc environment
Andrew Bartlett [Sun, 8 May 2011 04:55:33 +0000 (06:55 +0200)]
selftest: Add plugin_s4_dc environment

This environment uses pdb_samba4 and auth_samba4 to plug these
critical subsystems into a mixed Samba3/Samba4 DC, in a similar way to
the 'Franky' proposal.

Andrew Barltett

12 years agos3-auth Add auth_samba4 module
Andrew Bartlett [Sun, 8 May 2011 12:48:11 +0000 (14:48 +0200)]
s3-auth Add auth_samba4 module

This module makes a direct call into the Samba4 auth stack to
authenticate Samba4 uses in a Samba3 file server.  The direct call
avoids the need to obtain schannel credentials.

Andrew Bartlett

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

12 years agos3-passdb: added pdb_samba4
Andrew Bartlett [Fri, 6 May 2011 14:50:04 +0000 (00:50 +1000)]
s3-passdb: added pdb_samba4

This uses direct LDB operations and calls to the dsdb library to allow
passdb operations (such as pdbedit and smbpasswd) offline, and uses
transactions internally for database consistency.

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

12 years agos3-passdb Redirect domain GUID and SID queries to the passdb stack
Andrew Bartlett [Sun, 8 May 2011 10:52:06 +0000 (12:52 +0200)]
s3-passdb Redirect domain GUID and SID queries to the passdb stack

This is done if the passdb module supports PDB_ADS, and ensures that a
random SID is never made up locally for these directories.

This is only enabled when in the waf build, due to dependency issues.

Andrew Bartlett

12 years agos4-dsdb Add transactions to dsdb modify helpers
Andrew Bartlett [Sun, 8 May 2011 13:56:58 +0000 (15:56 +0200)]
s4-dsdb Add transactions to dsdb modify helpers

12 years agos4-samr Remove incorrect transaction_cancel() in error path
Andrew Bartlett [Sun, 8 May 2011 13:24:57 +0000 (15:24 +0200)]
s4-samr Remove incorrect transaction_cancel() in error path

The transactions are now handled entirely within dsdb_add_user()

Andrew Bartlett

12 years agos4-param cope with doulbe-parsing of -foo and +foo lists
Andrew Bartlett [Sun, 8 May 2011 04:58:19 +0000 (06:58 +0200)]
s4-param cope with doulbe-parsing of -foo and +foo lists

For some reason these lists are parsed twice, and so any -foo was
failing as it was already removed the first time.

Andrew Bartlett

12 years agobuild: Allow the C code to know if this is a waf build
Andrew Bartlett [Sun, 8 May 2011 15:35:05 +0000 (17:35 +0200)]
build: Allow the C code to know if this is a waf build

This allows addition of functionality that can't be handled (for
example, due to dependencies) in the autoconf build.

Andrew Bartlett

12 years agos4-interfaces: keep interfaces in the order they were declared
Andrew Tridgell [Sun, 8 May 2011 10:55:41 +0000 (12:55 +0200)]
s4-interfaces: keep interfaces in the order they were declared

the spoolss notify test depends on the interfaces order

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun May  8 13:57:58 CEST 2011 on sn-devel-104

12 years agos3-test: build smbtorture with --enable-developer
Andrew Tridgell [Sun, 8 May 2011 10:55:00 +0000 (12:55 +0200)]
s3-test: build smbtorture with --enable-developer

this makes debugging of tests much easier, as we get debug symbols

12 years agolib/socket: Remove outdated comment
Andrew Bartlett [Tue, 3 May 2011 10:24:39 +0000 (20:24 +1000)]
lib/socket: Remove outdated comment

The autoconf and waf tests for interfaces logic are in libreplace now.

12 years agos4-interfaces Rename interfaces code so not to conflict with source3/
Andrew Bartlett [Mon, 2 May 2011 05:57:19 +0000 (15:57 +1000)]
s4-interfaces Rename interfaces code so not to conflict with source3/

The iface_count, iface_n_bcast, and load_interfaces functions
conflicted with functions of the same name in source3, so the source4
functions were renamed.  Hopefully we can actually wrap one around the
other in future.

Andrew Bartlett

12 years agos3-lib Use common lib/socket code for get_interfaces() et al
Andrew Bartlett [Mon, 2 May 2011 02:20:21 +0000 (12:20 +1000)]
s3-lib Use common lib/socket code for get_interfaces() et al

12 years agolib/socket move interfaces code to the top level
Andrew Bartlett [Mon, 2 May 2011 03:02:17 +0000 (13:02 +1000)]
lib/socket move interfaces code to the top level

12 years agos4-lib/socket Samba4 is not IPv6 compatible
Andrew Bartlett [Tue, 3 May 2011 09:41:41 +0000 (19:41 +1000)]
s4-lib/socket Samba4 is not IPv6 compatible

Don't add IPv6 interfaces until we actually support them.

I'll soon have IPv6 service at home, and then I'll make it my buisness
to sort this out once and for all.

Andrew Bartlett

12 years agos4-lib merge get_interfaces() from Samba3 to Samba4
Andrew Bartlett [Mon, 2 May 2011 02:09:19 +0000 (12:09 +1000)]
s4-lib merge get_interfaces() from Samba3 to Samba4

12 years agos3-smbd: expose smbd_set_server_fd()
Andrew Tridgell [Mon, 2 May 2011 23:32:01 +0000 (09:32 +1000)]
s3-smbd: expose smbd_set_server_fd()

this allows the fd to be setup by subsystems that want to use the s3
server core code

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May  8 12:01:13 CEST 2011 on sn-devel-104

12 years agos3-waf: expose the server_exit code in the smbd_base library
Andrew Tridgell [Mon, 2 May 2011 23:33:17 +0000 (09:33 +1000)]
s3-waf: expose the server_exit code in the smbd_base library

these functions are called from the rest of smbd_base

12 years agobuild: allow s3 libraries to be built with no undefined symbols
Andrew Tridgell [Fri, 6 May 2011 14:49:13 +0000 (00:49 +1000)]
build: allow s3 libraries to be built with no undefined symbols

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agos4-param Don't set variables such as the debuglevel unless global
Andrew Bartlett [Sun, 8 May 2011 08:30:36 +0000 (10:30 +0200)]
s4-param Don't set variables such as the debuglevel unless global

This ensures that when a second lp_ctx is created, that it does not
set global variables such as the debug level, log file etc,
potentially overriding the settings created by another context.

In particular this matters when loading Samba4 modules into Samba3.

Andrew Bartlett

12 years agoImprove debug messages when creating socket directories
Andrew Bartlett [Sun, 8 May 2011 08:28:03 +0000 (10:28 +0200)]
Improve debug messages when creating socket directories

This makes clear what the permissions error and directory name actually is

Andrew Bartlett

12 years agolibds: moved enum security_types to a common header
Andrew Tridgell [Sat, 7 May 2011 11:32:20 +0000 (13:32 +0200)]
libds: moved enum security_types to a common header

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agos3-utils Set dyn_CONFIGFILE from -c on smbpasswd command line
Andrew Bartlett [Sun, 8 May 2011 04:56:47 +0000 (06:56 +0200)]
s3-utils Set dyn_CONFIGFILE from -c on smbpasswd command line

This is similar to the code in popt_common and allows the smb.conf to
be re-loaded from this file later in the code (or for Samba4 plugins
to attempt to parse the same smb.conf).

Andrew Bartlett

12 years agoselftest Use die() less often, as it fails to allow cleanup
Andrew Bartlett [Sun, 8 May 2011 04:54:50 +0000 (06:54 +0200)]
selftest Use die() less often, as it fails to allow cleanup

12 years agoauth: allow auth_common.h to be included multiple times without error
Andrew Bartlett [Sat, 7 May 2011 06:36:06 +0000 (08:36 +0200)]
auth: allow auth_common.h to be included multiple times without error

12 years agos4-auth Rename auth -> auth4 to avoid conflict with s3 auth
Andrew Bartlett [Sat, 7 May 2011 06:14:06 +0000 (08:14 +0200)]
s4-auth Rename auth -> auth4 to avoid conflict with s3 auth

12 years agos4-ntvfs: Rename brl_*() -> brlock_*() to avoid conflict with brlock_init in s3
Andrew Bartlett [Sat, 7 May 2011 06:12:54 +0000 (08:12 +0200)]
s4-ntvfs: Rename brl_*() -> brlock_*() to avoid conflict with brlock_init in s3

12 years agos4-auth: remove unused prototype
Andrew Tridgell [Fri, 6 May 2011 14:49:38 +0000 (00:49 +1000)]
s4-auth: remove unused prototype

12 years agos3: Fix including libsmb/proto.h without prior ads.h
Volker Lendecke [Sat, 7 May 2011 08:38:12 +0000 (10:38 +0200)]
s3: Fix including libsmb/proto.h without prior ads.h

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May  7 11:38:11 CEST 2011 on sn-devel-104

12 years agoFix Samba3 on OpenIndiana.
Gordon Ross [Fri, 6 May 2011 23:00:08 +0000 (16:00 -0700)]
Fix Samba3 on OpenIndiana.

I'd like Samba to use the native OpenLDAP and MIT Kerberos libs.
Attached are some patches to do that. (relative to git master)
It does not build for me without these.

(OpenIndiana is an off-shoot of OpenSolaris  See http://www.openindiana.org)

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat May  7 02:20:14 CEST 2011 on sn-devel-104

12 years agoA couple more off-by-one calculations with strlcpy.
Jeremy Allison [Fri, 6 May 2011 14:54:18 +0000 (07:54 -0700)]
A couple more off-by-one calculations with strlcpy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May  6 18:39:17 CEST 2011 on sn-devel-104

12 years agos4-smbd: fix randseed_init() usage.
Günther Deschner [Fri, 6 May 2011 14:22:41 +0000 (16:22 +0200)]
s4-smbd: fix randseed_init() usage.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May  6 17:37:11 CEST 2011 on sn-devel-104

12 years agos3-includes: no need to globally include libads/ads_status.h.
Günther Deschner [Fri, 6 May 2011 10:54:59 +0000 (12:54 +0200)]
s3-includes: no need to globally include libads/ads_status.h.

Guenther

12 years agos3-includes: finally only include client.h when libsmb is used.
Günther Deschner [Fri, 6 May 2011 10:53:38 +0000 (12:53 +0200)]
s3-includes: finally only include client.h when libsmb is used.

Guenther

12 years agos3-libsmb: move protos to libsmb/proto.h
Günther Deschner [Fri, 6 May 2011 09:47:43 +0000 (11:47 +0200)]
s3-libsmb: move protos to libsmb/proto.h

Guenther

12 years agos3-proto: remove some duplicate prototypes.
Günther Deschner [Fri, 6 May 2011 12:03:00 +0000 (14:03 +0200)]
s3-proto: remove some duplicate prototypes.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May  6 16:21:08 CEST 2011 on sn-devel-104

12 years agos3-spoolss: remove unused struct in construct_notify_printer_info().
Günther Deschner [Thu, 5 May 2011 19:52:57 +0000 (21:52 +0200)]
s3-spoolss: remove unused struct in construct_notify_printer_info().

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May  6 12:07:17 CEST 2011 on sn-devel-104

12 years agolibcli/security: fix build warning, cr_descr_log_acl() is not used currently.
Günther Deschner [Thu, 5 May 2011 10:52:29 +0000 (12:52 +0200)]
libcli/security: fix build warning, cr_descr_log_acl() is not used currently.

Guenther

12 years agotdb: fix a build warning.
Günther Deschner [Thu, 5 May 2011 10:52:05 +0000 (12:52 +0200)]
tdb: fix a build warning.

Guenther

12 years agos3: only include tdb headers where needed.
Günther Deschner [Thu, 5 May 2011 09:25:29 +0000 (11:25 +0200)]
s3: only include tdb headers where needed.

Guenther

12 years agolib/util don't use enum protocol_types in ms_fnmatch_protocol
Andrew Bartlett [Wed, 4 May 2011 11:20:57 +0000 (21:20 +1000)]
lib/util don't use enum protocol_types in ms_fnmatch_protocol

This makes it easier to compile this in the top level with s3 and s4
headers.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri May  6 08:50:52 CEST 2011 on sn-devel-104

12 years agolibcli/smb Move cifs posix helper functions and headers in common
Andrew Bartlett [Wed, 4 May 2011 11:19:46 +0000 (21:19 +1000)]
libcli/smb Move cifs posix helper functions and headers in common

unix_perms_to_wire() was a duplicate symbol in the top level build.

Andrew Bartlett

12 years agolib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()
Andrew Bartlett [Wed, 4 May 2011 10:57:12 +0000 (20:57 +1000)]
lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()

gen_fnmatch was a duplicate symbol in the top level build.

gen_fnmatch() used for simple non-CIFS pattern matching, so selecting
the lib/util implementation should not be a concern.

Andrew Bartlett

12 years agolib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbol
Andrew Bartlett [Wed, 4 May 2011 10:53:33 +0000 (20:53 +1000)]
lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbol

This verison of the function takes a protcol as argument to determine
matching rules.

Andrew Bartlett

12 years agoerrors: Remove unused unix_to_werror()
Andrew Bartlett [Wed, 4 May 2011 07:00:23 +0000 (17:00 +1000)]
errors: Remove unused unix_to_werror()

12 years agolibcli/util Move NTSTATUS table to the top level
Andrew Bartlett [Wed, 4 May 2011 05:50:07 +0000 (15:50 +1000)]
libcli/util Move NTSTATUS table to the top level

12 years agonterr: Add mem_ctx for return string from get_nt_error_c_code()
Andrew Bartlett [Wed, 4 May 2011 05:30:01 +0000 (15:30 +1000)]
nterr: Add mem_ctx for return string from get_nt_error_c_code()

It is clearer to avoid the implicit return on talloc_tos()

Andrew Bartlett

12 years agos3-smbd ntstatus_to_dos() pulls the DOS error codes out internally
Andrew Bartlett [Wed, 4 May 2011 06:16:13 +0000 (16:16 +1000)]
s3-smbd ntstatus_to_dos() pulls the DOS error codes out internally

This means we don't need to duplicate that logic here.

Andrew Bartlett

12 years agolibcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level
Andrew Bartlett [Wed, 4 May 2011 03:59:57 +0000 (13:59 +1000)]
libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level

This takes the Samba4 version, with the NT_STATUS_IS_DOS() check.
This will be used in smbd/error.c shortly.

Andrew Bartlett

12 years agoerrors: Merge source3/ werror_to_ntstatus() code to source4/
Andrew Bartlett [Wed, 4 May 2011 06:51:23 +0000 (16:51 +1000)]
errors: Merge source3/ werror_to_ntstatus() code to source4/

12 years agoerrors: Merge ntstatus -> DOS error table between Samba3 and Samba4.
Andrew Bartlett [Wed, 4 May 2011 03:47:26 +0000 (13:47 +1000)]
errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.

They are now identical

Andrew Bartlett

12 years agos3-lib Remove unused dos error codes from errmap_unix
Andrew Bartlett [Wed, 4 May 2011 01:39:21 +0000 (11:39 +1000)]
s3-lib Remove unused dos error codes from errmap_unix

This also makes unix_nt_errmap private to errmap_unix.c and errormap.c
so the tables themselves cannot be duplicate symbols until merged.

Andrew Bartlett