1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00

3817 Commits

Author SHA1 Message Date
Günther Deschner
7fb9991b4c libnetapi: fill in NetQueryDisplayInformation_r.
Guenther
2008-04-13 19:12:31 +02:00
Günther Deschner
9edb067f62 libnetapi: don't reset the error code in NetUserAdd_r if the operation failed.
Guenther
2008-04-13 19:11:01 +02:00
Günther Deschner
6ec4a62b6d libnetapi: add NetQueryDisplayInformation skeleton.
Guenther
2008-04-13 19:04:18 +02:00
Günther Deschner
eb33d30d80 libnetapi: don't to try to free NULL struct.
Guenther
2008-04-13 17:39:29 +02:00
Michael Adam
7c343c6057 registry: change registry_init_smbconf() to return WERROR instead of bool
Michael
2008-04-13 15:33:48 +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
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
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
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
ee6325495f messaging: add FLAG_MSG_DBWRAP message class flag
metze
2008-04-12 09:14:08 +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
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
c4e1439ede libsmbconf: don't mark the API as "subject to change" any longer.
At least I hope it won't need many changes anymore...

Michael
2008-04-11 15:40:02 +02:00
Tim Prouty
59124382d2 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.
2008-04-11 11:33:33 +02:00
Günther Deschner
5804d8b112 Use libnetapi_open_pipe in netapi functions.
Guenther
2008-04-10 22:44:00 +02:00
Günther Deschner
87d8fc338f Add libnetapi_open_pipe, inspired by the cli_cm_ interface.
Guenther
2008-04-10 22:42:07 +02:00
Günther Deschner
d9f19fc615 Use libnetapi_open_ipc_connection in libnetapi.
Guenther
2008-04-10 22:04:04 +02:00
Günther Deschner
d34c3e8ad2 Fix one missing netapi_private header.
Guenther
2008-04-10 21:56:12 +02:00
Günther Deschner
dd6251d514 Split out private headers in libnetapi.
Guenther
2008-04-10 21:52:03 +02:00
Günther Deschner
e9e46cfcbe Add very basic cli_cm_* based connection handler to libnetapi.
Guenther
2008-04-10 21:41:03 +02:00
Günther Deschner
5f8793dd1d Use SERVER_INFO_1005 in libnetapi.
Guenther
2008-04-10 21:31:12 +02:00
Günther Deschner
30337bce2c Fix typo.
Guenther
2008-04-10 21:23:59 +02:00
Michael Adam
757601ec83 libsmbconf: testsuite: add test for delete_includes
Michael
2008-04-10 01:29:01 +02:00
Michael Adam
182433be5b libsmbconf: return success and count 0 from get_includes when no includes present.
Michael
2008-04-10 01:29:01 +02:00
Michael Adam
daef50e54d libsmbconf: add delete_includes mehtod to the api (and backend implementations)
Michael
2008-04-10 01:29:01 +02:00
Michael Adam
0dc1fd6859 libsmbconf: let set_includes delete the includes paramter when given an empty list
instead of complaining

Michael
2008-04-10 01:29:01 +02:00
Michael Adam
dd543cd30c libsmbconf: fix crashbug - correctly check for existence of file.
Michael
2008-04-10 01:29:01 +02:00
Michael Adam
5a880c6a2f libsmbconf: prevent getting/deleting value "includes".
This has to be handled differently (by using get_includes / set_includes)

Michael
2008-04-10 01:29:01 +02:00
Michael Adam
2c8c65d690 libsmbconf: consider "include" a forbidden parameter in regisry config again.
It is now taken care of by the special includes handling.

Michael
2008-04-10 01:29:00 +02:00
Michael Adam
9bd06d5737 libsmbconf: add includes at the end of parameter list in reg_get_share().
Michael
2008-04-10 01:29:00 +02:00
Michael Adam
01c4bd0730 libsmbconf: add function smbconf_reg_valname_valid() and use it in get_values()
so "includes" doesn't get listed as a parameter

Michael
2008-04-10 01:29:00 +02:00
Michael Adam
072a3228a4 libsmbconf: refactor get_includes on opened key into smbconf_reg_get_includes_internal()
Michael
2008-04-10 01:29:00 +02:00
Michael Adam
23fb33fd33 libsmbconf: rename registry_smbconf_valname_forbidden() to smbconf_reg_valname_forbidden()
Michael
2008-04-10 01:29:00 +02:00
Michael Adam
798808174d libsmbconf: make registry_smbconf_valname_forbidden() static
Michael
2008-04-10 01:29:00 +02:00
Michael Adam
98151fd3e1 libsmbconf: move registry_smbconf_valname_forbidden() to the registry backend
from util_reg.c - no other callers left

Michael
2008-04-10 01:29:00 +02:00
Michael Adam
382c623948 libsmbconf: more sanely print multi_sz values in registry backend
Michael
2008-04-10 01:28:59 +02:00
Michael Adam
c2d3d56d62 libsmbconf: testsuite: fix handling of error message/overall status
Michael
2008-04-10 01:28:59 +02:00
Michael Adam
1f64a1b2b4 libsmbconf: testsuite: add test_set_get_includes() and use it in registry test
Michael
2008-04-10 01:28:59 +02:00
Michael Adam
828c729724 libsmbconf: testsuite: refactor printing of string lists out.
Michael
2008-04-10 01:28:59 +02:00
Michael Adam
3fee0d79cc 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
2008-04-10 01:28:59 +02:00
Michael Adam
31e68cbe5b libsmbconf: testsuite: test get_includes for registry backend
Michael
2008-04-10 01:28:59 +02:00
Michael Adam
2a4b71b105 libsmbconf: testsuite: use the get_global_includes in get_includes test.
Michael
2008-04-10 01:28:58 +02:00
Michael Adam
ce1b2f5508 libsmbconf: add "_global_" wrappers for get/set_includes.
These use the usual global_check like the other global wrappers.

Michael
2008-04-10 01:28:58 +02:00
Michael Adam
1ca5afe58c libsmbconf: testsuite: add test for "get_includes" and use it in the text backend test.
Michael
2008-04-10 01:28:58 +02:00
Michael Adam
5e253e10b7 libsmbconf: fill get_includes() in text backed to retrieve includes from cache.
Michael
2008-04-10 01:28:58 +02:00
Michael Adam
7cfec55ed4 libsmbconf: testsuite: set the debufg fd to stderr.
...so that we see some debug output

Michael
2008-04-10 01:28:58 +02:00