Michael Adam [Sat, 12 Apr 2008 22:54:44 +0000 (00:54 +0200)]
registry: remove the REGISTRY_HOOKS layer from the reghook cache.
There is no need to save the keyname again, we only need to
get the REGISTRY_OPS out of the pathtree.
Furthermore, this makes life easier, since we can now pass
in keynames as temporarily allocated strings.
Michael
Günther Deschner [Sat, 12 Apr 2008 21:12:53 +0000 (23:12 +0200)]
Fix ou handling in netdomjoin-gui.
The ou list was concatenated again and again...
Guenther
Michael Adam [Sat, 12 Apr 2008 22:24:42 +0000 (00:24 +0200)]
libnetapi: fix a C++ warning by making implicit cast explicit
Michael
Michael Adam [Sat, 12 Apr 2008 22:23:58 +0000 (00:23 +0200)]
dbwrap_tdb2: fix a C++ warning by making implicit cast explicit
Michael
Günther Deschner [Sat, 12 Apr 2008 16:30:14 +0000 (18:30 +0200)]
Add WERR_USER_ALREADY_EXISTS and WERR_PASSWORD_RESTRICTION.
Guenther
Günther Deschner [Sat, 12 Apr 2008 16:29:13 +0000 (18:29 +0200)]
Move some WERRORs down to the NERR_BASE block.
Guenther
Günther Deschner [Sat, 12 Apr 2008 16:26:37 +0000 (18:26 +0200)]
Fill in WHATSNEW.txt for pre3.
Guenther
Stefan Metzmacher [Sat, 12 Apr 2008 09:13:40 +0000 (11:13 +0200)]
WHATSNEW.txt: list my changes
metze
Stefan Metzmacher [Mon, 31 Mar 2008 09:24:10 +0000 (11:24 +0200)]
groupdb: make mapping_tdb compatible to mapping_ldb
mapping_ldb replaces the record if it already exists.
I'm not sure if that a good thing, but for now
both backends should provide the same behavior.
metze
Stefan Metzmacher [Fri, 28 Mar 2008 07:24:28 +0000 (08:24 +0100)]
groupdb: readd groupdb:backend parametric option
This reverts
c5adb92c020e38644baf1afc8fc570a518cd6307.
The reason is that ldb doesn't work for cluster setups yet.
metze
Stefan Metzmacher [Tue, 1 Apr 2008 12:01:28 +0000 (14:01 +0200)]
dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbindd
metze
Stefan Metzmacher [Wed, 26 Mar 2008 09:08:10 +0000 (10:08 +0100)]
dbwrap: use db_open_tdb2() in for db_open_trans() if "dbwrap:use_tdb2=yes"
For clustered setups you need to disable the ctdb backend for each
tdb which should use the tdb2 backend (e.g. ctdb:registry.tdb=no).
To disable tdb2 per tdb use something like "tdb2:passdb.tdb=no"
metze
Stefan Metzmacher [Wed, 19 Mar 2008 18:40:10 +0000 (19:40 +0100)]
dbwrap: add dbwrap_tdb2 backend
This backend can be used untill ctdb knows about real
transactions.
It stores a master tdb in a shared location and a readonly copy
on the local harddisk. Reads are always on the local tdb
and writes always on both. Change notify messages are send
to all message context, which ask for them. With the notifies
it's possible to just update the changed records, instead of
copying all records (which is the fallback).
You need to configure:
dbwrap:use_tdb2=yes
dbwrap_tdb2:master directory=/some/shared/path
dbwrap_tdb2:local directory=/var/lib/samba
metze
Stefan Metzmacher [Mon, 31 Mar 2008 09:18:12 +0000 (11:18 +0200)]
rerun 'make idl'
metze
Stefan Metzmacher [Mon, 31 Mar 2008 09:17:15 +0000 (11:17 +0200)]
messaging.idl: add structure to marshall dbwrap_tdb2 changes
metze
Stefan Metzmacher [Mon, 31 Mar 2008 10:50:23 +0000 (12:50 +0200)]
messaging: add MSG_DBWRAP_TDB2_CHANGES flag
metze
Stefan Metzmacher [Mon, 31 Mar 2008 10:50:23 +0000 (12:50 +0200)]
messaging: add FLAG_MSG_DBWRAP message class flag
metze
Jeremy Allison [Sat, 12 Apr 2008 00:46:17 +0000 (17:46 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Sat, 12 Apr 2008 00:41:49 +0000 (17:41 -0700)]
Fix bug #5386, don't keep printing the same waiting
error message.
Jeremy.
Michael Adam [Fri, 11 Apr 2008 20:22:12 +0000 (22:22 +0200)]
build: smbconftort only needs LIBSMB_ERR_OBJ, not LIBSAMBA_OBJ
Michael
Michael Adam [Fri, 11 Apr 2008 20:13:39 +0000 (22:13 +0200)]
build: move SECRETS_OBJ into LIBSMB_ERR_OBJ.
LIBSMB_ERR_OBJ depends on SECRETS_OBJ
Michael
Michael Adam [Fri, 11 Apr 2008 19:59:39 +0000 (21:59 +0200)]
build: move SECRETS_OBJ into LIBSMB_OBJ
LIBSMB_OBJ is not used without SECRETS_OBJ
Michael
Michael Adam [Fri, 11 Apr 2008 19:51:41 +0000 (21:51 +0200)]
build: regroup LIBSMB objects to for a smallest linkable uint (LIBSMB_ERR_OBJ)
Michael
Michael Adam [Fri, 11 Apr 2008 19:38:06 +0000 (21:38 +0200)]
registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c
This function is only used inside registry code.
Michael
Michael Adam [Fri, 11 Apr 2008 14:37:06 +0000 (16:37 +0200)]
build: group RPC_PARSE_OBJ1 with LIBSAMBA_OBJ
it is only ever used together
Michael
Michael Adam [Fri, 11 Apr 2008 14:32:48 +0000 (16:32 +0200)]
build: group NTERR/DOSERR/ERRORMAP and LIBSAMBA object differently
Michael
Jeremy Allison [Sat, 12 Apr 2008 00:24:31 +0000 (17:24 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Sat, 12 Apr 2008 00:23:48 +0000 (17:23 -0700)]
Quieten valgrind message on make valgrindtest. This doesn't
seem to be valid (vl - feel free to confirm).
Jeremy.
Michael Adam [Fri, 11 Apr 2008 22:12:25 +0000 (00:12 +0200)]
libnetapi: fix dependency problem by linking libnetapi statically (internally)
This is a workaround until we have isolated enough internal libraries
as shared libraries.
Michael
Michael Adam [Sat, 12 Apr 2008 00:05:25 +0000 (02:05 +0200)]
libnetapi: fix interactive logging by preventing setup_logging from closing stderr.
Michael
Michael Adam [Fri, 11 Apr 2008 23:36:10 +0000 (01:36 +0200)]
util_tdb: fix a segfault caused by a fatal typo.
In tdb_wrap_log(), in on occurrence of "debug_level = 0"
instead of "debuglevel = 0" caused me segfaults when
accessing DEBUGLEVEL (which is defined as "*debug_level"...)
Michael
Michael Adam [Fri, 11 Apr 2008 13:39:39 +0000 (15:39 +0200)]
update WHATSNEW
Michael
Volker Lendecke [Fri, 11 Apr 2008 21:14:53 +0000 (23:14 +0200)]
Remove a redundant TALLOC_FREE
Volker Lendecke [Fri, 11 Apr 2008 20:20:32 +0000 (22:20 +0200)]
Remove some write-only fstrings
Stefan Metzmacher [Fri, 11 Apr 2008 13:16:51 +0000 (15:16 +0200)]
net: 'net' doesn't need wb_common.o anymore.
metze
Stefan Metzmacher [Fri, 11 Apr 2008 10:01:02 +0000 (12:01 +0200)]
nsswitch: remove unused nsswitch/wb_client.c
metze
Stefan Metzmacher [Fri, 11 Apr 2008 10:00:29 +0000 (12:00 +0200)]
net_idmap: use wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
metze
Stefan Metzmacher [Fri, 11 Apr 2008 07:28:20 +0000 (09:28 +0200)]
libwbclient: add wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
metze
Michael Adam [Fri, 11 Apr 2008 13:36:44 +0000 (15:36 +0200)]
libsmbconf: don't mark the API as "subject to change" any longer.
At least I hope it won't need many changes anymore...
Michael
Tim Prouty [Mon, 3 Mar 2008 21:32:54 +0000 (13:32 -0800)]
Cleanup size_t return values in convert_string_allocate
This patch is the first iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
Volker Lendecke [Fri, 11 Apr 2008 09:34:33 +0000 (11:34 +0200)]
Fix bug 5366
Michael Adam [Fri, 11 Apr 2008 08:57:50 +0000 (10:57 +0200)]
test: not only pretend to call smbconftort - really do it :-}
Michael
Björn Jacke [Fri, 11 Apr 2008 08:33:46 +0000 (10:33 +0200)]
some shells are pickier than others ...
Günther Deschner [Thu, 10 Apr 2008 20:44:00 +0000 (22:44 +0200)]
Use libnetapi_open_pipe in netapi functions.
Guenther
Günther Deschner [Thu, 10 Apr 2008 20:42:07 +0000 (22:42 +0200)]
Add libnetapi_open_pipe, inspired by the cli_cm_ interface.
Guenther
Günther Deschner [Thu, 10 Apr 2008 20:04:04 +0000 (22:04 +0200)]
Use libnetapi_open_ipc_connection in libnetapi.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:56:12 +0000 (21:56 +0200)]
Fix one missing netapi_private header.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:52:03 +0000 (21:52 +0200)]
Split out private headers in libnetapi.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:41:03 +0000 (21:41 +0200)]
Add very basic cli_cm_* based connection handler to libnetapi.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:31:12 +0000 (21:31 +0200)]
Use SERVER_INFO_1005 in libnetapi.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:29:05 +0000 (21:29 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:28:17 +0000 (21:28 +0200)]
Add SERVER_INFO_1005 to libnetapi.idl.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:23:59 +0000 (21:23 +0200)]
Fix typo.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:21:27 +0000 (21:21 +0200)]
Add some more cli_cm_set_X functions.
Guenther
Günther Deschner [Thu, 10 Apr 2008 19:19:30 +0000 (21:19 +0200)]
Add MAX_NERR define.
Guenther
Jeremy Allison [Thu, 10 Apr 2008 15:56:34 +0000 (08:56 -0700)]
Fix the last reported debian problem with nmbd not waiting
until interfaces come up.
Jeremy.
Michael Adam [Thu, 10 Apr 2008 09:53:53 +0000 (11:53 +0200)]
winbindd: only call winbindd_validate_cache when not in offline logon mode.
originally, the cache was cleared before calling validate, but
this way, we skipt the validation of the database when not in
offline logon mode.
This is put into a new wrapper function winbindd_cache_validate_and_initialize()
which is now called in winbindd.c instead calling validate and
initialize functions separately.
Michael
Volker Lendecke [Thu, 10 Apr 2008 09:52:44 +0000 (11:52 +0200)]
Also accept 0x15 getdc replies
My NT4SP6 which my DC here trusts sends 0x15 instead of 0x13, from looking at
the sniff at least the DC name is at the same place.
Karolin Seeger [Thu, 10 Apr 2008 08:42:17 +0000 (10:42 +0200)]
objectclass -> objectClass
Karolin
Björn Jacke [Wed, 9 Apr 2008 16:20:07 +0000 (18:20 +0200)]
fix some extrasemi compile warnings
Karolin Seeger [Thu, 10 Apr 2008 06:38:26 +0000 (08:38 +0200)]
Fix typo.
Karolin
Michael Adam [Wed, 9 Apr 2008 21:48:45 +0000 (23:48 +0200)]
net conf: use talloc and talloc_strdup_lower throughout all net conf functions.
Michael
Michael Adam [Wed, 9 Apr 2008 21:24:52 +0000 (23:24 +0200)]
net conf: implement "net conf delincludes".
usage: "net conf delincludes <servicename>"
This is equivalent to "net conf setincludes <servicename>"
(without further arguments).
Michael
Michael Adam [Wed, 9 Apr 2008 16:46:38 +0000 (18:46 +0200)]
net conf: implement a "net conf setincludes" command.
given zero or more filenames as command line parameters
Michael
Michael Adam [Wed, 9 Apr 2008 13:37:33 +0000 (15:37 +0200)]
net conf: implement "net conf getincludes".
Michael
Michael Adam [Wed, 9 Apr 2008 13:17:28 +0000 (15:17 +0200)]
net conf: add diagnostic message for failure to load text file.
Michael
Michael Adam [Wed, 9 Apr 2008 12:59:05 +0000 (14:59 +0200)]
net conf: reduce indentation by grouping testmode code together.
Michael
Michael Adam [Tue, 8 Apr 2008 23:27:30 +0000 (01:27 +0200)]
net conf: don't drop config in testmode
Michael
Michael Adam [Tue, 8 Apr 2008 23:20:36 +0000 (01:20 +0200)]
net conf: fix import to correctly add includes (at the end)
Michael
Michael Adam [Tue, 8 Apr 2008 23:28:43 +0000 (01:28 +0200)]
loadparm: drop debug level in map_parameter from 0 to 1
we don't want to see this all the times in tests.
Michael
Michael Adam [Tue, 8 Apr 2008 10:08:18 +0000 (12:08 +0200)]
test: run smbconftort testsuite from the local_s3 tests
Michael
Michael Adam [Wed, 9 Apr 2008 20:23:12 +0000 (22:23 +0200)]
libsmbconf: testsuite: add test for delete_includes
Michael
Michael Adam [Wed, 9 Apr 2008 20:22:20 +0000 (22:22 +0200)]
libsmbconf: return success and count 0 from get_includes when no includes present.
Michael
Michael Adam [Wed, 9 Apr 2008 20:21:15 +0000 (22:21 +0200)]
libsmbconf: add delete_includes mehtod to the api (and backend implementations)
Michael
Michael Adam [Wed, 9 Apr 2008 16:46:02 +0000 (18:46 +0200)]
libsmbconf: let set_includes delete the includes paramter when given an empty list
instead of complaining
Michael
Michael Adam [Wed, 9 Apr 2008 13:16:45 +0000 (15:16 +0200)]
libsmbconf: fix crashbug - correctly check for existence of file.
Michael
Michael Adam [Wed, 9 Apr 2008 07:54:17 +0000 (09:54 +0200)]
libsmbconf: prevent getting/deleting value "includes".
This has to be handled differently (by using get_includes / set_includes)
Michael
Michael Adam [Tue, 8 Apr 2008 23:19:50 +0000 (01:19 +0200)]
libsmbconf: consider "include" a forbidden parameter in regisry config again.
It is now taken care of by the special includes handling.
Michael
Michael Adam [Tue, 8 Apr 2008 22:47:27 +0000 (00:47 +0200)]
libsmbconf: add includes at the end of parameter list in reg_get_share().
Michael
Michael Adam [Tue, 8 Apr 2008 22:05:45 +0000 (00:05 +0200)]
libsmbconf: add function smbconf_reg_valname_valid() and use it in get_values()
so "includes" doesn't get listed as a parameter
Michael
Michael Adam [Tue, 8 Apr 2008 21:58:56 +0000 (23:58 +0200)]
libsmbconf: refactor get_includes on opened key into smbconf_reg_get_includes_internal()
Michael
Michael Adam [Tue, 8 Apr 2008 20:57:48 +0000 (22:57 +0200)]
libsmbconf: rename registry_smbconf_valname_forbidden() to smbconf_reg_valname_forbidden()
Michael
Michael Adam [Tue, 8 Apr 2008 20:56:06 +0000 (22:56 +0200)]
libsmbconf: make registry_smbconf_valname_forbidden() static
Michael
Michael Adam [Tue, 8 Apr 2008 20:51:02 +0000 (22:51 +0200)]
libsmbconf: move registry_smbconf_valname_forbidden() to the registry backend
from util_reg.c - no other callers left
Michael
Michael Adam [Tue, 8 Apr 2008 20:23:57 +0000 (22:23 +0200)]
libsmbconf: more sanely print multi_sz values in registry backend
Michael
Michael Adam [Tue, 8 Apr 2008 16:00:27 +0000 (18:00 +0200)]
libsmbconf: testsuite: fix handling of error message/overall status
Michael
Michael Adam [Tue, 8 Apr 2008 15:54:29 +0000 (17:54 +0200)]
libsmbconf: testsuite: add test_set_get_includes() and use it in registry test
Michael
Michael Adam [Tue, 8 Apr 2008 15:49:10 +0000 (17:49 +0200)]
libsmbconf: testsuite: refactor printing of string lists out.
Michael
Michael Adam [Tue, 8 Apr 2008 15:46:36 +0000 (17:46 +0200)]
libsmbconf: implement get_includes() and set_includes() for registry backend.
includes are stored per share in a special registry value "includes"
of type multi_sz.
Michael
Michael Adam [Tue, 8 Apr 2008 12:31:16 +0000 (14:31 +0200)]
libsmbconf: testsuite: test get_includes for registry backend
Michael
Michael Adam [Tue, 8 Apr 2008 12:30:46 +0000 (14:30 +0200)]
libsmbconf: testsuite: use the get_global_includes in get_includes test.
Michael
Michael Adam [Tue, 8 Apr 2008 12:24:42 +0000 (14:24 +0200)]
libsmbconf: add "_global_" wrappers for get/set_includes.
These use the usual global_check like the other global wrappers.
Michael
Michael Adam [Tue, 8 Apr 2008 10:30:21 +0000 (12:30 +0200)]
libsmbconf: testsuite: add test for "get_includes" and use it in the text backend test.
Michael
Michael Adam [Tue, 8 Apr 2008 10:09:24 +0000 (12:09 +0200)]
libsmbconf: fill get_includes() in text backed to retrieve includes from cache.
Michael
Michael Adam [Tue, 8 Apr 2008 15:53:45 +0000 (17:53 +0200)]
libsmbconf: testsuite: set the debufg fd to stderr.
...so that we see some debug output
Michael
Michael Adam [Tue, 8 Apr 2008 15:52:46 +0000 (17:52 +0200)]
libsmbconf: testsuite: use POPT_COMMON_SAMBA instead of POPT_COMMON_CONFIGFILE
so we can for instance set the debug level on the command line.
Michael
Michael Adam [Tue, 8 Apr 2008 15:51:57 +0000 (17:51 +0200)]
libsmbconf: testsuite: add talloc_stackframe to main().
Michael
Michael Adam [Tue, 8 Apr 2008 10:07:35 +0000 (12:07 +0200)]
libsmbconf: testsuite: add support for "--configfile" option.
Michael
Michael Adam [Tue, 8 Apr 2008 09:02:17 +0000 (11:02 +0200)]
libsmbconf: add testsuite to the library.
Currently only the init function is tested, more tests to come...
Michael
Michael Adam [Tue, 8 Apr 2008 08:16:03 +0000 (10:16 +0200)]
libsmbconf: add talloc context to the get_includes methods.
Michael