Michael Adam
6a31e659cb
registry: change registry_init_basic() to return WERROR instead of bool
...
Michael
2008-04-13 15:33:48 +02:00
Michael Adam
e65a999989
registry: change reghook_cache_add() to return WERROR instead of bool
...
Michael
2008-04-13 15:33:48 +02:00
Michael Adam
78bb005ee4
registry cachehook: change helper function keyname_to_path() to return WERROR.
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
da45fb92f6
adt_tree: change pathtree_add to return WERR instead of bool.
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
e97d558c56
registry cachehook: revert logic to make fast path more obvious and reduce indent.
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
2f4ca62dce
registry: change reghook_cache_init() to return WERROR and use it in the callers.
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
4bfc0be55f
registry cachehook: compare cache_tree against NULL, not 0.
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
e0718f04a7
registry: change init_registry_key() and init_registry_data() to return WERR
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
4fd9b45ffc
registry: unify debug output in the registry init functions.
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
c312852abc
registry: change regdb_init() to return WERROR instead of bool.
...
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
8fe1a2f567
registry: make registry_init_smbconf() hook the registry ops onto given key.
...
This still defaults to HKLM\Software\Samba\smbconf, but is interchangeable now.
This allows us to open the libsmbconf registry backend on different registry keys.
Michael
2008-04-13 15:33:47 +02:00
Volker Lendecke
81f34489f7
Update WHATSNEW entry for pre3
2008-04-13 12:20:58 +02:00
Michael Adam
9841ee7fd4
registry cachehook: add talloc failed debug messages.
...
Michael
2008-04-13 01:47:16 +02:00
Michael Adam
c9f01aee37
registry cachehook: eliminate a couple trailing spaces (empty lines).
...
Michael
2008-04-13 01:44:57 +02:00
Michael Adam
3f5955d361
registry cachehook: fix memleak (to talloc_tos()): free key at the end.
...
Michael
2008-04-13 01:43:43 +02:00
Michael Adam
acb9c98dff
registry cachehook: refactor normalization of keyname out.
...
Michael
2008-04-13 01:43:42 +02:00
Michael Adam
2e762be0db
registry: adapt copied function header comments.
...
Michael
2008-04-13 01:43:42 +02:00
Michael Adam
2f9ee2f782
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
2008-04-13 01:43:42 +02:00
Günther Deschner
84608e165e
Fix ou handling in netdomjoin-gui.
...
The ou list was concatenated again and again...
Guenther
2008-04-13 00:46:33 +02:00
Michael Adam
b62dd61cc5
libnetapi: fix a C++ warning by making implicit cast explicit
...
Michael
2008-04-13 00:24:42 +02:00
Michael Adam
18ced7e420
dbwrap_tdb2: fix a C++ warning by making implicit cast explicit
...
Michael
2008-04-13 00:23:58 +02:00
Günther Deschner
eefd03d39b
Add WERR_USER_ALREADY_EXISTS and WERR_PASSWORD_RESTRICTION.
...
Guenther
2008-04-12 18:30:14 +02:00
Günther Deschner
2453375ee0
Move some WERRORs down to the NERR_BASE block.
...
Guenther
2008-04-12 18:29:13 +02:00
Günther Deschner
bf638d97d7
Fill in WHATSNEW.txt for pre3.
...
Guenther
2008-04-12 18:26:37 +02:00
Stefan Metzmacher
55b86c0a13
WHATSNEW.txt: list my changes
...
metze
2008-04-12 11:13:40 +02:00
Stefan Metzmacher
b313acdd31
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
2008-04-12 10:01:42 +02:00
Stefan Metzmacher
5f5d90ef76
groupdb: readd groupdb:backend parametric option
...
This reverts c5adb92c020e38644baf1afc8fc570a518cd6307.
The reason is that ldb doesn't work for cluster setups yet.
metze
2008-04-12 09:21:04 +02:00
Stefan Metzmacher
64450cc1e4
dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbindd
...
metze
2008-04-12 09:14:10 +02:00
Stefan Metzmacher
5cea2bf367
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
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
aa6230de0d
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
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
f34dad2b4a
rerun 'make idl'
...
metze
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
46a0d8e872
messaging.idl: add structure to marshall dbwrap_tdb2 changes
...
metze
2008-04-12 09:14:08 +02:00
Stefan Metzmacher
7418c3ab1d
messaging: add MSG_DBWRAP_TDB2_CHANGES flag
...
metze
2008-04-12 09:14:08 +02:00
Stefan Metzmacher
ee6325495f
messaging: add FLAG_MSG_DBWRAP message class flag
...
metze
2008-04-12 09:14:08 +02:00
Jeremy Allison
7258c780f0
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
2008-04-11 17:46:17 -07:00
Jeremy Allison
12e6818df1
Fix bug #5386 , don't keep printing the same waiting
...
error message.
Jeremy.
2008-04-11 17:41:49 -07:00
Michael Adam
27fea343d2
build: smbconftort only needs LIBSMB_ERR_OBJ, not LIBSAMBA_OBJ
...
Michael
2008-04-12 02:41:21 +02:00
Michael Adam
79b5a0c7a8
build: move SECRETS_OBJ into LIBSMB_ERR_OBJ.
...
LIBSMB_ERR_OBJ depends on SECRETS_OBJ
Michael
2008-04-12 02:41:21 +02:00
Michael Adam
bea66f07b4
build: move SECRETS_OBJ into LIBSMB_OBJ
...
LIBSMB_OBJ is not used without SECRETS_OBJ
Michael
2008-04-12 02:41:20 +02:00
Michael Adam
310fd52ea4
build: regroup LIBSMB objects to for a smallest linkable uint (LIBSMB_ERR_OBJ)
...
Michael
2008-04-12 02:41:20 +02:00
Michael Adam
48745e3fbd
registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c
...
This function is only used inside registry code.
Michael
2008-04-12 02:41:20 +02:00
Michael Adam
27c7441145
build: group RPC_PARSE_OBJ1 with LIBSAMBA_OBJ
...
it is only ever used together
Michael
2008-04-12 02:41:20 +02:00
Michael Adam
ddc2292c15
build: group NTERR/DOSERR/ERRORMAP and LIBSAMBA object differently
...
Michael
2008-04-12 02:41:20 +02:00
Jeremy Allison
6a965e72a8
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
2008-04-11 17:24:31 -07:00
Jeremy Allison
43b0254d93
Quieten valgrind message on make valgrindtest. This doesn't
...
seem to be valid (vl - feel free to confirm).
Jeremy.
2008-04-11 17:23:48 -07:00
Michael Adam
8a87e40270
libnetapi: fix dependency problem by linking libnetapi statically (internally)
...
This is a workaround until we have isolated enough internal libraries
as shared libraries.
Michael
2008-04-12 02:17:46 +02:00
Michael Adam
563b837b76
libnetapi: fix interactive logging by preventing setup_logging from closing stderr.
...
Michael
2008-04-12 02:05:25 +02:00
Michael Adam
d9bd894c2e
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
2008-04-12 01:36:10 +02:00
Michael Adam
07a9da0243
update WHATSNEW
...
Michael
2008-04-11 23:40:55 +02:00
Volker Lendecke
8e348ab865
Remove a redundant TALLOC_FREE
2008-04-11 23:14:53 +02:00