1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

26877 Commits

Author SHA1 Message Date
Michael Adam
f4de1c6ac7 libsmbconf: testsuite: add test for "get_includes" and use it in the text backend test.
Michael
(This used to be commit 1ca5afe58cef8b750a65bd8c2a5c9ee794ed50ba)
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 5e253e10b7f80af1f5a855c8e0f00846853cced1)
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 7cfec55ed48644f922ca0ffaa171e3512c93a360)
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 94a19234620fc23db9c4aaf449e948342164d1d4)
2008-04-10 01:28:58 +02:00
Michael Adam
869e011e0f libsmbconf: testsuite: add talloc_stackframe to main().
Michael
(This used to be commit 8c631ac2f42e984137972b7388add4bcbc199665)
2008-04-10 01:28:58 +02:00
Michael Adam
e251327b5b libsmbconf: testsuite: add support for "--configfile" option.
Michael
(This used to be commit 9f6c909f465df5fc64e2bec88acf272be9cd574e)
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 bc8dc8626c5fb296edbd193a7cc293317c7a29ca)
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 ed535b6b30b5c9412803f6373eadc704de6de2f9)
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 e86eb375d9f83f73aeea0a16c8b43e2ef21a6e20)
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 c65575f831e9929ef7e66f2c7bfeed50f135b4b2)
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 c68cd2477c65d5521a713ae0f37cf2994d2c339e)
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 2ff0b693d7fc7e130a2fb14c06ae8bc28f4b5c57)
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 b9e72b402de412c23702715ead96c20e9b3248cc)
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 b79a33eb2f370b8d8b50ed5ed2a0acc83e711c1e)
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 4339caff09e1277ae33d3810043bcb3f4e7c4e45)
2008-04-10 01:28:56 +02:00
Michael Adam
3c40c2d7d3 libsmbconf: fix a comment
Michael
(This used to be commit bc1a5bdbd3b7da1f85c952579096b3c8dc407572)
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 2eb5a681e9e3ff302b5151f25d6856834eae7d54)
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 25e0fd84780f4acb80cac3b5f54f9597e0e2f53e)
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 7af79e60a3060083eae67bd053837c955b3f5c10)
2008-04-10 01:28:55 +02:00
Michael Adam
015e424bf1 libsmbconf: reorder prototypes in smbconf_private.h
Michael
(This used to be commit 0e932a0981ef52ff9d236b887eb8177304a99915)
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 9890f437264c6acc8c61c430a53c4645e0a12959)
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 e0f6a9d50c9b72ec33d4323d1a6c5bdf44d011e7)
2008-04-10 01:28:55 +02:00
Michael Adam
1fcbcbb486 charcnv: add talloc_strdup_lower() - talloc variant of strdup_lower().
Michael
(This used to be commit 5f6c730cbeddd1ac2f515bd985c08ceb4ca9bc47)
2008-04-10 01:27:56 +02:00
Michael Adam
2ca280d551 registry: add support for REG_MULTI_SZ to registry_push_value().
This enables us to fetch multi_sz values from registry...

Michael
(This used to be commit a8cedfef27a0400c6aa05ddb5e51308ce0b789bd)
2008-04-10 01:18:10 +02:00
Michael Adam
199eb31cc9 vlp: fix an implicit cast compile warning.
Michael
(This used to be commit bf46f614c497110dcc3fc79f610fcc7a8784dbb2)
2008-04-10 01:11:31 +02:00
Michael Adam
98f3462df2 net: don't process net_registry_util.c with make proto
it has its own herader net_registry_util.h

Michael
(This used to be commit 51026d64b3e19626b51bee73fb257a75a6455355)
2008-04-09 23:52:35 +02:00
Michael Adam
f04b67ca20 net rpc registry: add getvalue command.
This is the same as already implemented for "net registry".

usage: net rpc registry getvalue <key> <valuename>

Michael
(This used to be commit ba59383437aed9058a58bdeedcf61a0076a94924)
2008-04-09 23:52:35 +02:00
Michael Adam
2547baebc4 net registry: add a getvalue subcommand that prints a single given value.
usage: "net registry getvalue <keyname> <valuename>"

Michael
(This used to be commit 77f049943e133986dc47d25fff2415def1cec32f)
2008-04-09 23:52:34 +02:00
Michael Adam
d3dcaac176 net (registry util): refactor printing of value without name out.
This renames print_registry_value() to print_registry_value_with_name().
The new function is called print_registry_value().

Michael
(This used to be commit 88c4851ad7240bc4f72a5ef92e21629e6a4c99c6)
2008-04-09 23:52:34 +02:00
Karolin Seeger
a8124367b4 Fix typos.
Karolin
(This used to be commit 6cee34703503fbf3629057345fe221b866560648)
2008-04-09 16:14:04 +02:00
Günther Deschner
c12bf374fe Add NetUserEnum example.
Guenther
(This used to be commit 7d9f64fd8401f8abb938757b4f092e25fd6b154f)
2008-04-09 13:50:30 +02:00
Günther Deschner
4801d0c6f3 Add NetUserEnum to libnetapi.
Guenther
(This used to be commit 6c933d0b3838808aeee7f4b29ee89aab8d203538)
2008-04-09 13:47:51 +02:00
Günther Deschner
7dd3b4186b Re-run make idl.
Guenther
(This used to be commit 285072479bebf09c94fccf55578ef587627c888e)
2008-04-09 13:42:48 +02:00
Günther Deschner
f544ba49be Add NetUserEnum to libnetapi IDL.
Guenther
(This used to be commit dbbefb4e97df49dc28d47b5d9ba759f90efb9aab)
2008-04-09 13:41:54 +02:00
Günther Deschner
b3422d1d1c Add Add NetUserDel example.
Guenther
(This used to be commit 3123e68bda70ad1cff9bd8f9375fd7935bf755dd)
2008-04-09 13:39:27 +02:00
Günther Deschner
fb538ad641 Add NetUserDel to libnetapi.
Guenther
(This used to be commit 92ba18fcd0816fb85846c6e788ea4a04c71e02a8)
2008-04-09 13:35:49 +02:00
Günther Deschner
eac830c48e Re-run make idl.
Guenther
(This used to be commit 51d0cbe3d972b5917f89cea8624bc21910116132)
2008-04-09 13:32:19 +02:00
Günther Deschner
adeb5d4fbb Add NetUserDel to libnetapi IDL.
Guenther
(This used to be commit 8a0b6532af4ccd71f2dcc202db6e976161627372)
2008-04-09 13:31:53 +02:00
Günther Deschner
41c8597ae3 Add NetUserAdd example.
Guenther
(This used to be commit 0d795606655a67d79c8c3bb2f3676ca7ee28f347)
2008-04-09 13:28:30 +02:00
Günther Deschner
6b2ae8e9ff Add NetUserAdd to libnetapi.
Guenther
(This used to be commit cb98996ed2ac93a0e15838048405772d2043021a)
2008-04-09 13:23:09 +02:00
Günther Deschner
fcdf2c0202 Re-run make idl.
Guenther
(This used to be commit 0d84f0d48559d8bed91bcb478d8be0bb3b96acac)
2008-04-09 13:19:36 +02:00
Günther Deschner
c9b1eabf5b Add NetUserAdd to libnetapi IDL.
Guenther
(This used to be commit 08afca2188d28ff9727d0ae3f051681a1e1dc5c8)
2008-04-09 13:19:36 +02:00
Günther Deschner
8d0ad6413e Fix parameters string for rpc_trustdom_add_internals().
Guenther
(This used to be commit e161bb64a8348ecf7929dbc04d5923d8bd3542ad)
2008-04-09 13:18:46 +02:00
Volker Lendecke
9fa04934e0 Try anonymous session setup
... if there's no trust password

Attempt to fix bug 5350
(This used to be commit 99f6b63f3c637457fdda7ed930c6666171b25b61)
2008-04-09 10:01:53 +02:00
Volker Lendecke
3b19215c29 Remove reference to pointless socket options
(This used to be commit 3aefb0df1c4065223d50c32910ef26704791a6a3)
2008-04-09 08:42:07 +02:00
Jeremy Allison
b360cdfeb9 Check x_fflush returns.
Jeremy.
(This used to be commit 5525dc5f09a79d30f6c52fc3a88c8bce3060e642)
2008-04-08 15:08:47 -07:00
Günther Deschner
51d9e913bb Fix lsa_QueryTrustedDomainInfo caller.
Guenther
(This used to be commit 9f148daaf2e240002914183655c2b2cc9067759f)
2008-04-08 23:09:24 +02:00
Günther Deschner
ea0048712d Re-run make idl.
Guenther
(This used to be commit ad3073749089f7166d9070c232ef02e6ba203215)
2008-04-08 23:04:22 +02:00
Günther Deschner
b159002799 Fix IDL for lsa_LookupPrivName.
Guenther
(This used to be commit 7b56a4bcf23f124fc9530fe1401add094f25fb28)
2008-04-08 23:02:48 +02:00
Günther Deschner
aa95d6a167 Re-run make idl.
Guenther
(This used to be commit 6f474326030b916ca972b68ce36e4d7287192a33)
2008-04-08 22:58:16 +02:00