Michael Adam
935b99c84c
libsmbconf: add a check for talloc failure to smbconf_txt_init().
...
Michael
(This used to be commit f76ec7d87e206426c795374397ba725ecdeec784)
2008-04-13 20:04:44 +02:00
Michael Adam
35d6068f25
libsmbconf: remove the bool verbatim parameter from txt backend init function.
...
Always be verbatim for now. Backend config options may be added later
via some private data pointer.
Michael
(This used to be commit e8bafcfbf4a7ab1dc1ce4f2acd24b0eb74933256)
2008-04-13 20:04:43 +02:00
Michael Adam
611b6bfa3b
libsmbconf: rename smbconf_init() to smbconf_init_internal().
...
smbconf_init should be the name of the dispatcher (to be written)
Michael
(This used to be commit 3fb95ab757650712716472ebaccb7119feb27596)
2008-04-13 20:04:43 +02:00
Günther Deschner
aea1a244ee
libnetapi: add libnetapi_set_use_kerberos
...
Don't unconditionally set the kerberos flag for authentication.
Guenther
(This used to be commit 15bef5ae413adf278cccc0e547c4b8ccd180eca2)
2008-04-13 19:25:59 +02:00
Günther Deschner
6318088434
libnetapi: Add NetQueryDisplayInformation header.
...
Guenther
(This used to be commit 3c107934acc907e3eedd116b42d1d07ee0574183)
2008-04-13 19:25:59 +02:00
Günther Deschner
d0acdc9038
libnetapi: add NetQueryDisplayInformation example.
...
Guenther
(This used to be commit 5f9332cf1f60bb5a23a16776b95af3a83c5deb40)
2008-04-13 19:15:15 +02:00
Günther Deschner
b3367c9e35
libnetapi: fill in NetQueryDisplayInformation_r.
...
Guenther
(This used to be commit 7fb9991b4c54fd0b9629e47afc1e5bbc2cfc1088)
2008-04-13 19:12:31 +02:00
Günther Deschner
dcb9264edf
libnetapi: don't reset the error code in NetUserAdd_r if the operation failed.
...
Guenther
(This used to be commit 9edb067f62b1e36f1da461b3eb09cb123d2089dd)
2008-04-13 19:11:01 +02:00
Günther Deschner
5647deccb1
libnetapi: add NetQueryDisplayInformation skeleton.
...
Guenther
(This used to be commit 6ec4a62b6d584f6745c3285474372f235614b598)
2008-04-13 19:04:18 +02:00
Günther Deschner
e39f02217a
libnetapi: don't to try to free NULL struct.
...
Guenther
(This used to be commit eb33d30d80ab2fe770e248f5b2a70a83a43dd156)
2008-04-13 17:39:29 +02:00
Michael Adam
6c66d5d019
registry: change registry_init_smbconf() to return WERROR instead of bool
...
Michael
(This used to be commit 7c343c60574cda091f59861fbcb2893aefb564e9)
2008-04-13 15:33:48 +02:00
Michael Adam
01f4bd4f4d
adt_tree: change pathtree_add to return WERR instead of bool.
...
Michael
(This used to be commit da45fb92f69221758f36db4cbb7d871e3ce60718)
2008-04-13 15:33:47 +02:00
Michael Adam
bcb19766d6
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
(This used to be commit 8fe1a2f567afbecbe487f08825cb43b038065e99)
2008-04-13 15:33:47 +02:00
Günther Deschner
a75421b019
Fix ou handling in netdomjoin-gui.
...
The ou list was concatenated again and again...
Guenther
(This used to be commit 84608e165e24c68c12d40086f81684ef37f69159)
2008-04-13 00:46:33 +02:00
Michael Adam
2595377988
libnetapi: fix a C++ warning by making implicit cast explicit
...
Michael
(This used to be commit b62dd61cc56ec33601289fd4e23058c7f9ad3f0d)
2008-04-13 00:24:42 +02:00
Michael Adam
3aa565e790
dbwrap_tdb2: fix a C++ warning by making implicit cast explicit
...
Michael
(This used to be commit 18ced7e42072953a1968db15b0a344b54214b83d)
2008-04-13 00:23:58 +02:00
Stefan Metzmacher
138b58bcec
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
(This used to be commit 5cea2bf3673c982bafeef4a8bbd3bd2ab73cc0c5)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
dfb181ab73
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
(This used to be commit aa6230de0d5f1875aa8c12c4fc017d3a40f90890)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
c316c7ab73
messaging: add FLAG_MSG_DBWRAP message class flag
...
metze
(This used to be commit ee6325495f48bab43a37d740a6eca57192004d57)
2008-04-12 09:14:08 +02:00
Michael Adam
c890aef164
registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c
...
This function is only used inside registry code.
Michael
(This used to be commit 48745e3fbd6b38f39678938b8c3f145769065e7b)
2008-04-12 02:41:20 +02:00
Michael Adam
ecd46b8ad4
libnetapi: fix interactive logging by preventing setup_logging from closing stderr.
...
Michael
(This used to be commit 563b837b76e3a6086051fc56e0522b841939d37f)
2008-04-12 02:05:25 +02:00
Michael Adam
8be49cdd3e
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
(This used to be commit d9bd894c2ec4faf87e8ff96e27c7e2b8175f9387)
2008-04-12 01:36:10 +02:00
Michael Adam
a3f1b5f150
libsmbconf: don't mark the API as "subject to change" any longer.
...
At least I hope it won't need many changes anymore...
Michael
(This used to be commit c4e1439eded7bb4df60b9d4b457e5b7898928c9e)
2008-04-11 15:40:02 +02:00
Tim Prouty
bb869741dd
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.
(This used to be commit 59124382d2894a1b194b48dd82bc5f956959eb48)
2008-04-11 11:33:33 +02:00
Günther Deschner
ef6ed54765
Use libnetapi_open_pipe in netapi functions.
...
Guenther
(This used to be commit 5804d8b112e1da022988c635284eb4799974d4c7)
2008-04-10 22:44:00 +02:00
Günther Deschner
3d5aecd2b9
Add libnetapi_open_pipe, inspired by the cli_cm_ interface.
...
Guenther
(This used to be commit 87d8fc338f6e6b48691bff3eeebfc00c5d408ff7)
2008-04-10 22:42:07 +02:00
Günther Deschner
aeb7f7db40
Use libnetapi_open_ipc_connection in libnetapi.
...
Guenther
(This used to be commit d9f19fc61586d606393368799dee9757c169d602)
2008-04-10 22:04:04 +02:00
Günther Deschner
deb6362f1f
Fix one missing netapi_private header.
...
Guenther
(This used to be commit d34c3e8ad2b21051162e2a9d65f773c486c43d8b)
2008-04-10 21:56:12 +02:00
Günther Deschner
8ab9696bfb
Split out private headers in libnetapi.
...
Guenther
(This used to be commit dd6251d51472a96bfc5ba3d62ea788c8924d4c6b)
2008-04-10 21:52:03 +02:00
Günther Deschner
4968ce2555
Add very basic cli_cm_* based connection handler to libnetapi.
...
Guenther
(This used to be commit e9e46cfcbe25366121f680a6d81fe08c128bf00a)
2008-04-10 21:41:03 +02:00
Günther Deschner
1a8a8b7769
Use SERVER_INFO_1005 in libnetapi.
...
Guenther
(This used to be commit 5f8793dd1d8a3694afb7f2d882cfb9990eb40b75)
2008-04-10 21:31:12 +02:00
Günther Deschner
8ea6da9354
Fix typo.
...
Guenther
(This used to be commit 30337bce2c748e5338f9cc923e096883322f50d3)
2008-04-10 21:23:59 +02:00
Michael Adam
3201155e00
libsmbconf: testsuite: add test for delete_includes
...
Michael
(This used to be commit 757601ec830f4a08c5fdcbe2d9bfac86fdc6602c)
2008-04-10 01:29:01 +02:00
Michael Adam
30fedf2855
libsmbconf: return success and count 0 from get_includes when no includes present.
...
Michael
(This used to be commit 182433be5bae753d264491a3ec97433e2e316d10)
2008-04-10 01:29:01 +02:00
Michael Adam
87ca447231
libsmbconf: add delete_includes mehtod to the api (and backend implementations)
...
Michael
(This used to be commit daef50e54d58a6684b6a890ebf523ca6245f0290)
2008-04-10 01:29:01 +02:00
Michael Adam
1321dda51b
libsmbconf: let set_includes delete the includes paramter when given an empty list
...
instead of complaining
Michael
(This used to be commit 0dc1fd68598529891429fb29ab1f561fb434bf38)
2008-04-10 01:29:01 +02:00
Michael Adam
9a3fe1943e
libsmbconf: fix crashbug - correctly check for existence of file.
...
Michael
(This used to be commit dd543cd30c3eca9621681ba4b6e9a6683ef2bd07)
2008-04-10 01:29:01 +02:00
Michael Adam
bb91ab6116
libsmbconf: prevent getting/deleting value "includes".
...
This has to be handled differently (by using get_includes / set_includes)
Michael
(This used to be commit 5a880c6a2f2415220557a76a9b4ce9a17c766819)
2008-04-10 01:29:01 +02:00
Michael Adam
d26daa0234
libsmbconf: consider "include" a forbidden parameter in regisry config again.
...
It is now taken care of by the special includes handling.
Michael
(This used to be commit 2c8c65d6900086e92c838333b31abf9efdb61343)
2008-04-10 01:29:00 +02:00
Michael Adam
7bf407c711
libsmbconf: add includes at the end of parameter list in reg_get_share().
...
Michael
(This used to be commit 9bd06d5737aff2bb27c07575285e079fd561a566)
2008-04-10 01:29:00 +02:00
Michael Adam
bb39d5c14b
libsmbconf: add function smbconf_reg_valname_valid() and use it in get_values()
...
so "includes" doesn't get listed as a parameter
Michael
(This used to be commit 01c4bd07305b4ce800b99a098652623f118a74aa)
2008-04-10 01:29:00 +02:00
Michael Adam
1da629537c
libsmbconf: refactor get_includes on opened key into smbconf_reg_get_includes_internal()
...
Michael
(This used to be commit 072a3228a4e08894c67ad2983bcea3417e202773)
2008-04-10 01:29:00 +02:00
Michael Adam
a7e06ad625
libsmbconf: rename registry_smbconf_valname_forbidden() to smbconf_reg_valname_forbidden()
...
Michael
(This used to be commit 23fb33fd33a8287d8691a1a5e95bf160be3ed25c)
2008-04-10 01:29:00 +02:00
Michael Adam
b91cdf7183
libsmbconf: make registry_smbconf_valname_forbidden() static
...
Michael
(This used to be commit 798808174d0d4cae3a746e26a253cad1a3177684)
2008-04-10 01:29:00 +02:00
Michael Adam
e06e8084c6
libsmbconf: move registry_smbconf_valname_forbidden() to the registry backend
...
from util_reg.c - no other callers left
Michael
(This used to be commit 98151fd3e1c24e5c8aaf3f5132071e91ac6ef257)
2008-04-10 01:29:00 +02:00
Michael Adam
7f0127a903
libsmbconf: more sanely print multi_sz values in registry backend
...
Michael
(This used to be commit 382c623948abd1c6a5cf8ab7ee2be784fcef76ee)
2008-04-10 01:28:59 +02:00
Michael Adam
40c60b0917
libsmbconf: testsuite: fix handling of error message/overall status
...
Michael
(This used to be commit c2d3d56d628f266fdfc0ca98fc199afc01670c2c)
2008-04-10 01:28:59 +02:00
Michael Adam
70bb9a919b
libsmbconf: testsuite: add test_set_get_includes() and use it in registry test
...
Michael
(This used to be commit 1f64a1b2b4f11b44e9c9584480f01cac066a6a1d)
2008-04-10 01:28:59 +02:00
Michael Adam
097a056df9
libsmbconf: testsuite: refactor printing of string lists out.
...
Michael
(This used to be commit 828c7297247a557ed8e2b6935bbc819aae95a660)
2008-04-10 01:28:59 +02:00
Michael Adam
56c0f28a50
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
(This used to be commit 3fee0d79cc618adc7dd82cfeff62c72ef061017b)
2008-04-10 01:28:59 +02:00