1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

3698 Commits

Author SHA1 Message Date
Günther Deschner
3d5aecd2b9 Add libnetapi_open_pipe, inspired by the cli_cm_ interface.
Guenther
(This used to be commit 87d8fc338f)
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 d9f19fc615)
2008-04-10 22:04:04 +02:00
Günther Deschner
deb6362f1f Fix one missing netapi_private header.
Guenther
(This used to be commit d34c3e8ad2)
2008-04-10 21:56:12 +02:00
Günther Deschner
8ab9696bfb Split out private headers in libnetapi.
Guenther
(This used to be commit dd6251d514)
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 e9e46cfcbe)
2008-04-10 21:41:03 +02:00
Günther Deschner
1a8a8b7769 Use SERVER_INFO_1005 in libnetapi.
Guenther
(This used to be commit 5f8793dd1d)
2008-04-10 21:31:12 +02:00
Günther Deschner
8ea6da9354 Fix typo.
Guenther
(This used to be commit 30337bce2c)
2008-04-10 21:23:59 +02:00
Michael Adam
3201155e00 libsmbconf: testsuite: add test for delete_includes
Michael
(This used to be commit 757601ec83)
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 182433be5b)
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 daef50e54d)
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 0dc1fd6859)
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 dd543cd30c)
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 5a880c6a2f)
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 2c8c65d690)
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 9bd06d5737)
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 01c4bd0730)
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 072a3228a4)
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 23fb33fd33)
2008-04-10 01:29:00 +02:00
Michael Adam
b91cdf7183 libsmbconf: make registry_smbconf_valname_forbidden() static
Michael
(This used to be commit 798808174d)
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 98151fd3e1)
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 382c623948)
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 c2d3d56d62)
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 1f64a1b2b4)
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 828c729724)
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 3fee0d79cc)
2008-04-10 01:28:59 +02:00
Michael Adam
8c091a60d4 libsmbconf: testsuite: test get_includes for registry backend
Michael
(This used to be commit 31e68cbe5b)
2008-04-10 01:28:59 +02:00
Michael Adam
07d038652c libsmbconf: testsuite: use the get_global_includes in get_includes test.
Michael
(This used to be commit 2a4b71b105)
2008-04-10 01:28:58 +02:00
Michael Adam
d399778acc libsmbconf: add "_global_" wrappers for get/set_includes.
These use the usual global_check like the other global wrappers.

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

Michael
(This used to be commit 7cfec55ed4)
2008-04-10 01:28:58 +02:00
Michael Adam
e724bfae7a 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
(This used to be commit 94a1923462)
2008-04-10 01:28:58 +02:00
Michael Adam
869e011e0f libsmbconf: testsuite: add talloc_stackframe to main().
Michael
(This used to be commit 8c631ac2f4)
2008-04-10 01:28:58 +02:00
Michael Adam
e251327b5b libsmbconf: testsuite: add support for "--configfile" option.
Michael
(This used to be commit 9f6c909f46)
2008-04-10 01:28:57 +02:00
Michael Adam
b7377c33a3 libsmbconf: add testsuite to the library.
Currently only the init function is tested, more tests to come...

Michael
(This used to be commit bc8dc8626c)
2008-04-10 01:28:57 +02:00
Michael Adam
f5aac0a8d0 libsmbconf: add talloc context to the get_includes methods.
Michael
(This used to be commit ed535b6b30)
2008-04-10 01:28:57 +02:00
Michael Adam
8e97662899 libsmbconf: add get_includes() and set_includes() to the API.
Includes have to get a special treatment, at least for registry.
Includes are not like other smbconf parameters: they are some kind
of metainformation. "include" has two effects when stated twice so
it can not be stored boldly into registry, since there can only be
one value named "include" in registry per key.

I will provide special handling for includes for the registry backend.

This patch provides the necessary methods in the smbconf API.

Michael
(This used to be commit e86eb375d9)
2008-04-10 01:28:57 +02:00
Michael Adam
df6b68b073 libsmbconf: activate the verbatim-flag in text backend: store parameters as they come.
with verbatim == true, parameters are stored as they come from the input file,
duplicates are listed multiple times, etc.

Michael
(This used to be commit c65575f831)
2008-04-10 01:28:57 +02:00
Michael Adam
101587eb6e libsmbconf: pass txt_private_data instead of only cache to do_parameter/section
in preparation of using the verbatim flag.

Michael
(This used to be commit c68cd2477c)
2008-04-10 01:28:57 +02:00
Michael Adam
a01e840814 libsmbconf: load file after special initialization
otherwise verbatim parameter can have no effect.

Michael
(This used to be commit 2ff0b693d7)
2008-04-10 01:28:56 +02:00
Michael Adam
3d38f143df libsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().
Michael
(This used to be commit b9e72b402d)
2008-04-10 01:28:56 +02:00
Michael Adam
0acf338503 libsmbconf: reformat smbconf_format_registry_value() - indentations/tabs
Michael
(This used to be commit b79a33eb2f)
2008-04-10 01:28:56 +02:00
Michael Adam
ec12f0a25a libsmbconf: untangle assignment and test in for-loop condition.
Michael
(This used to be commit 4339caff09)
2008-04-10 01:28:56 +02:00
Michael Adam
3c40c2d7d3 libsmbconf: fix a comment
Michael
(This used to be commit bc1a5bdbd3)
2008-04-10 01:28:56 +02:00
Michael Adam
8c85c10f8a libsmbconf: search from the back when getting parameter from text backend
so we make sure to always deliver the value last read.

Michael
(This used to be commit 2eb5a681e9)
2008-04-10 01:28:56 +02:00
Michael Adam
862608ca1f libsmbconf: add smbconf_reverse_find_in_array() to find last occurence of a string.
Michael
(This used to be commit 25e0fd8478)
2008-04-10 01:28:55 +02:00
Michael Adam
498e5f99d2 libsmbconf: move smbconf_find_in_array() to smbconf_util.c
Michael
(This used to be commit 7af79e60a3)
2008-04-10 01:28:55 +02:00
Michael Adam
015e424bf1 libsmbconf: reorder prototypes in smbconf_private.h
Michael
(This used to be commit 0e932a0981)
2008-04-10 01:28:55 +02:00
Michael Adam
77fce35417 libsmbconf: rename smbconf_txt_find_in_array() to smbconf_find_in_array()
Michael
(This used to be commit 9890f43726)
2008-04-10 01:28:55 +02:00
Michael Adam
36ede8ae54 libsmbconf: move utility functions from main module to new smbconf_util.c
Michael
(This used to be commit e0f6a9d50c)
2008-04-10 01:28:55 +02:00