1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
Commit Graph

26916 Commits

Author SHA1 Message Date
Günther Deschner
1db69e9180 Add some more cli_cm_set_X functions.
Guenther
(This used to be commit 882475f556)
2008-04-10 21:21:27 +02:00
Günther Deschner
0f50f207b7 Add MAX_NERR define.
Guenther
(This used to be commit 729eda9540)
2008-04-10 21:19:30 +02:00
Jeremy Allison
948ebaf033 Fix the last reported debian problem with nmbd not waiting
until interfaces come up.
Jeremy.
(This used to be commit 59a2f0873c)
2008-04-10 08:56:34 -07:00
Michael Adam
b884db5c47 winbindd: only call winbindd_validate_cache when not in offline logon mode.
originally, the cache was cleared before calling validate, but
this way, we skipt the validation of the database when not in
offline logon mode.

This is put into a new wrapper function winbindd_cache_validate_and_initialize()
which is now called in winbindd.c instead calling validate and
initialize functions separately.

Michael
(This used to be commit 641b5e3fec)
2008-04-10 13:23:30 +02:00
Volker Lendecke
0f37cd0c8e Also accept 0x15 getdc replies
My NT4SP6 which my DC here trusts sends 0x15 instead of 0x13, from looking at
the sniff at least the DC name is at the same place.
(This used to be commit 79bc6796b8)
2008-04-10 11:53:43 +02:00
Karolin Seeger
5f68ea53ff objectclass -> objectClass
Karolin
(This used to be commit b865b8a79a)
2008-04-10 10:45:36 +02:00
Björn Jacke
67be6b3af7 fix some extrasemi compile warnings
(This used to be commit cbdb79b7a1)
2008-04-10 08:55:57 +02:00
Karolin Seeger
8d7c7c674a Fix typo.
Karolin
(This used to be commit 42fbbeb1ca)
2008-04-10 08:38:54 +02:00
Michael Adam
bfc4aba398 net conf: use talloc and talloc_strdup_lower throughout all net conf functions.
Michael
(This used to be commit 977cc98989)
2008-04-10 01:29:03 +02:00
Michael Adam
6f7fcdcda5 net conf: implement "net conf delincludes".
usage: "net conf delincludes <servicename>"

This is equivalent to "net conf setincludes <servicename>"
(without further arguments).

Michael
(This used to be commit a1d09f34ec)
2008-04-10 01:29:03 +02:00
Michael Adam
f3cfc1446e net conf: implement a "net conf setincludes" command.
given zero or more filenames as command line parameters

Michael
(This used to be commit ab51e4d44c)
2008-04-10 01:29:03 +02:00
Michael Adam
68fb75857b net conf: implement "net conf getincludes".
Michael
(This used to be commit 30bc48623c)
2008-04-10 01:29:02 +02:00
Michael Adam
9765828d97 net conf: add diagnostic message for failure to load text file.
Michael
(This used to be commit 8f2c3efa67)
2008-04-10 01:29:02 +02:00
Michael Adam
52a16b4945 net conf: reduce indentation by grouping testmode code together.
Michael
(This used to be commit 97f9cb8575)
2008-04-10 01:29:02 +02:00
Michael Adam
2a94369946 net conf: don't drop config in testmode
Michael
(This used to be commit 74e87b9775)
2008-04-10 01:29:02 +02:00
Michael Adam
a98c08c151 net conf: fix import to correctly add includes (at the end)
Michael
(This used to be commit 3e81db8370)
2008-04-10 01:29:02 +02:00
Michael Adam
92f52469a9 loadparm: drop debug level in map_parameter from 0 to 1
we don't want to see this all the times in tests.

Michael
(This used to be commit fd43a4a1e0)
2008-04-10 01:29:02 +02:00
Michael Adam
6dd73c2866 test: run smbconftort testsuite from the local_s3 tests
Michael
(This used to be commit 6641061f76)
2008-04-10 01:29:01 +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