Karolin Seeger
b865b8a79a
objectclass -> objectClass
...
Karolin
2008-04-10 10:45:36 +02:00
Björn Jacke
cbdb79b7a1
fix some extrasemi compile warnings
2008-04-10 08:55:57 +02:00
Karolin Seeger
42fbbeb1ca
Fix typo.
...
Karolin
2008-04-10 08:38:54 +02:00
Michael Adam
977cc98989
net conf: use talloc and talloc_strdup_lower throughout all net conf functions.
...
Michael
2008-04-10 01:29:03 +02:00
Michael Adam
a1d09f34ec
net conf: implement "net conf delincludes".
...
usage: "net conf delincludes <servicename>"
This is equivalent to "net conf setincludes <servicename>"
(without further arguments).
Michael
2008-04-10 01:29:03 +02:00
Michael Adam
ab51e4d44c
net conf: implement a "net conf setincludes" command.
...
given zero or more filenames as command line parameters
Michael
2008-04-10 01:29:03 +02:00
Michael Adam
30bc48623c
net conf: implement "net conf getincludes".
...
Michael
2008-04-10 01:29:02 +02:00
Michael Adam
8f2c3efa67
net conf: add diagnostic message for failure to load text file.
...
Michael
2008-04-10 01:29:02 +02:00
Michael Adam
97f9cb8575
net conf: reduce indentation by grouping testmode code together.
...
Michael
2008-04-10 01:29:02 +02:00
Michael Adam
74e87b9775
net conf: don't drop config in testmode
...
Michael
2008-04-10 01:29:02 +02:00
Michael Adam
3e81db8370
net conf: fix import to correctly add includes (at the end)
...
Michael
2008-04-10 01:29:02 +02:00
Michael Adam
fd43a4a1e0
loadparm: drop debug level in map_parameter from 0 to 1
...
we don't want to see this all the times in tests.
Michael
2008-04-10 01:29:02 +02:00
Michael Adam
6641061f76
test: run smbconftort testsuite from the local_s3 tests
...
Michael
2008-04-10 01:29:01 +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
Michael Adam
94a1923462
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
2008-04-10 01:28:58 +02:00
Michael Adam
8c631ac2f4
libsmbconf: testsuite: add talloc_stackframe to main().
...
Michael
2008-04-10 01:28:58 +02:00
Michael Adam
9f6c909f46
libsmbconf: testsuite: add support for "--configfile" option.
...
Michael
2008-04-10 01:28:57 +02:00
Michael Adam
bc8dc8626c
libsmbconf: add testsuite to the library.
...
Currently only the init function is tested, more tests to come...
Michael
2008-04-10 01:28:57 +02:00
Michael Adam
ed535b6b30
libsmbconf: add talloc context to the get_includes methods.
...
Michael
2008-04-10 01:28:57 +02:00
Michael Adam
e86eb375d9
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
2008-04-10 01:28:57 +02:00
Michael Adam
c65575f831
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
2008-04-10 01:28:57 +02:00
Michael Adam
c68cd2477c
libsmbconf: pass txt_private_data instead of only cache to do_parameter/section
...
in preparation of using the verbatim flag.
Michael
2008-04-10 01:28:57 +02:00
Michael Adam
2ff0b693d7
libsmbconf: load file after special initialization
...
otherwise verbatim parameter can have no effect.
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
b9e72b402d
libsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().
...
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
b79a33eb2f
libsmbconf: reformat smbconf_format_registry_value() - indentations/tabs
...
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
4339caff09
libsmbconf: untangle assignment and test in for-loop condition.
...
Michael
2008-04-10 01:28:56 +02:00
Michael Adam
bc1a5bdbd3
libsmbconf: fix a comment
...
Michael
2008-04-10 01:28:56 +02:00