kai/samba.git
16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Sat, 12 Apr 2008 00:24:31 +0000 (17:24 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 6a965e72a8650b275222548445d10b65aa61e765)

16 years agoQuieten valgrind message on make valgrindtest. This doesn't
Jeremy Allison [Sat, 12 Apr 2008 00:23:48 +0000 (17:23 -0700)]
Quieten valgrind message on make valgrindtest. This doesn't
seem to be valid (vl - feel free to confirm).
Jeremy.
(This used to be commit 43b0254d93540eeaddaa32d76dd9271f4dc2ebff)

16 years agolibnetapi: fix dependency problem by linking libnetapi statically (internally)
Michael Adam [Fri, 11 Apr 2008 22:12:25 +0000 (00:12 +0200)]
libnetapi: fix dependency problem by linking libnetapi statically (internally)

This is a workaround until we have isolated enough internal libraries
as shared libraries.

Michael
(This used to be commit 8a87e402701494ba1c9d56a9febe3e5c25dc2bf7)

16 years agolibnetapi: fix interactive logging by preventing setup_logging from closing stderr.
Michael Adam [Sat, 12 Apr 2008 00:05:25 +0000 (02:05 +0200)]
libnetapi: fix interactive logging by preventing setup_logging from closing stderr.

Michael
(This used to be commit 563b837b76e3a6086051fc56e0522b841939d37f)

16 years agoutil_tdb: fix a segfault caused by a fatal typo.
Michael Adam [Fri, 11 Apr 2008 23:36:10 +0000 (01:36 +0200)]
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)

16 years agoupdate WHATSNEW
Michael Adam [Fri, 11 Apr 2008 13:39:39 +0000 (15:39 +0200)]
update WHATSNEW

Michael
(This used to be commit 07a9da0243f6f963108ea17d39c2daa3f7787b6a)

16 years agoRemove a redundant TALLOC_FREE
Volker Lendecke [Fri, 11 Apr 2008 21:14:53 +0000 (23:14 +0200)]
Remove a redundant TALLOC_FREE
(This used to be commit 8e348ab8652e1893be78384404f57df1dbbcea48)

16 years agoRemove some write-only fstrings
Volker Lendecke [Fri, 11 Apr 2008 20:20:32 +0000 (22:20 +0200)]
Remove some write-only fstrings
(This used to be commit aacb07b1b0f674b8cb92347ef4b4dd1e7808dde8)

16 years agonet: 'net' doesn't need wb_common.o anymore.
Stefan Metzmacher [Fri, 11 Apr 2008 13:16:51 +0000 (15:16 +0200)]
net: 'net' doesn't need wb_common.o anymore.

metze
(This used to be commit 05f7f77135ab997b92b2454871f21543ecbde0ed)

16 years agonsswitch: remove unused nsswitch/wb_client.c
Stefan Metzmacher [Fri, 11 Apr 2008 10:01:02 +0000 (12:01 +0200)]
nsswitch: remove unused nsswitch/wb_client.c

metze
(This used to be commit 2b236c7ace15b4408c31ed918b449d5a22e1769f)

16 years agonet_idmap: use wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
Stefan Metzmacher [Fri, 11 Apr 2008 10:00:29 +0000 (12:00 +0200)]
net_idmap: use wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions

metze
(This used to be commit dc9a3f8db0af03b4e8223068857092fcaff404f2)

16 years agolibwbclient: add wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
Stefan Metzmacher [Fri, 11 Apr 2008 07:28:20 +0000 (09:28 +0200)]
libwbclient: add wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions

metze
(This used to be commit 364e146805bb74b46da4d3c187e9a684d4b99a01)

16 years agolibsmbconf: don't mark the API as "subject to change" any longer.
Michael Adam [Fri, 11 Apr 2008 13:36:44 +0000 (15:36 +0200)]
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)

16 years agoCleanup size_t return values in convert_string_allocate
Tim Prouty [Mon, 3 Mar 2008 21:32:54 +0000 (13:32 -0800)]
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)

16 years agoFix bug 5366
Volker Lendecke [Fri, 11 Apr 2008 09:34:33 +0000 (11:34 +0200)]
Fix bug 5366
(This used to be commit 448a8fe6c15bc4e85149d1ae821f0ebc2e3edde5)

16 years agotest: not only pretend to call smbconftort - really do it :-}
Michael Adam [Fri, 11 Apr 2008 08:57:50 +0000 (10:57 +0200)]
test: not only pretend to call smbconftort - really do it :-}

Michael
(This used to be commit e0947537e61cdc7aaaf1256a7f9a590f006cb3d9)

16 years agosome shells are pickier than others ...
Björn Jacke [Fri, 11 Apr 2008 08:33:46 +0000 (10:33 +0200)]
some shells are pickier than others ...
(This used to be commit 9aabfa44d95128ded567d0949a6dd42786cbf6fb)

16 years agoUse libnetapi_open_pipe in netapi functions.
Günther Deschner [Thu, 10 Apr 2008 20:44:00 +0000 (22:44 +0200)]
Use libnetapi_open_pipe in netapi functions.

Guenther
(This used to be commit 5804d8b112e1da022988c635284eb4799974d4c7)

16 years agoAdd libnetapi_open_pipe, inspired by the cli_cm_ interface.
Günther Deschner [Thu, 10 Apr 2008 20:42:07 +0000 (22:42 +0200)]
Add libnetapi_open_pipe, inspired by the cli_cm_ interface.

Guenther
(This used to be commit 87d8fc338f6e6b48691bff3eeebfc00c5d408ff7)

16 years agoUse libnetapi_open_ipc_connection in libnetapi.
Günther Deschner [Thu, 10 Apr 2008 20:04:04 +0000 (22:04 +0200)]
Use libnetapi_open_ipc_connection in libnetapi.

Guenther
(This used to be commit d9f19fc61586d606393368799dee9757c169d602)

16 years agoFix one missing netapi_private header.
Günther Deschner [Thu, 10 Apr 2008 19:56:12 +0000 (21:56 +0200)]
Fix one missing netapi_private header.

Guenther
(This used to be commit d34c3e8ad2b21051162e2a9d65f773c486c43d8b)

16 years agoSplit out private headers in libnetapi.
Günther Deschner [Thu, 10 Apr 2008 19:52:03 +0000 (21:52 +0200)]
Split out private headers in libnetapi.

Guenther
(This used to be commit dd6251d51472a96bfc5ba3d62ea788c8924d4c6b)

16 years agoAdd very basic cli_cm_* based connection handler to libnetapi.
Günther Deschner [Thu, 10 Apr 2008 19:41:03 +0000 (21:41 +0200)]
Add very basic cli_cm_* based connection handler to libnetapi.

Guenther
(This used to be commit e9e46cfcbe25366121f680a6d81fe08c128bf00a)

16 years agoUse SERVER_INFO_1005 in libnetapi.
Günther Deschner [Thu, 10 Apr 2008 19:31:12 +0000 (21:31 +0200)]
Use SERVER_INFO_1005 in libnetapi.

Guenther
(This used to be commit 5f8793dd1d8a3694afb7f2d882cfb9990eb40b75)

16 years agoRe-run make idl.
Günther Deschner [Thu, 10 Apr 2008 19:29:05 +0000 (21:29 +0200)]
Re-run make idl.

Guenther
(This used to be commit 0d5130ddb61aa2db603339e693f54fff302eb947)

16 years agoAdd SERVER_INFO_1005 to libnetapi.idl.
Günther Deschner [Thu, 10 Apr 2008 19:28:17 +0000 (21:28 +0200)]
Add SERVER_INFO_1005 to libnetapi.idl.

Guenther
(This used to be commit 5387c6e8d19f7f26561c5fbacb1c75a5ba8fea60)

16 years agoFix typo.
Günther Deschner [Thu, 10 Apr 2008 19:23:59 +0000 (21:23 +0200)]
Fix typo.

Guenther
(This used to be commit 30337bce2c748e5338f9cc923e096883322f50d3)

16 years agoAdd some more cli_cm_set_X functions.
Günther Deschner [Thu, 10 Apr 2008 19:21:27 +0000 (21:21 +0200)]
Add some more cli_cm_set_X functions.

Guenther
(This used to be commit 882475f5566592b3a675d3609c3af8cf7d4e256d)

16 years agoAdd MAX_NERR define.
Günther Deschner [Thu, 10 Apr 2008 19:19:30 +0000 (21:19 +0200)]
Add MAX_NERR define.

Guenther
(This used to be commit 729eda95401e63feabb3ed329c6d2888dabe1d68)

16 years agoFix the last reported debian problem with nmbd not waiting
Jeremy Allison [Thu, 10 Apr 2008 15:56:34 +0000 (08:56 -0700)]
Fix the last reported debian problem with nmbd not waiting
until interfaces come up.
Jeremy.
(This used to be commit 59a2f0873c789822d46f862042921a8ba8f2bd28)

16 years agowinbindd: only call winbindd_validate_cache when not in offline logon mode.
Michael Adam [Thu, 10 Apr 2008 09:53:53 +0000 (11:53 +0200)]
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 641b5e3fecfce9581536de8daf6d7e6ecbefaf34)

16 years agoAlso accept 0x15 getdc replies
Volker Lendecke [Thu, 10 Apr 2008 09:52:44 +0000 (11:52 +0200)]
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 79bc6796b81395d591fc6ef389f153dd981fe68b)

16 years agoobjectclass -> objectClass
Karolin Seeger [Thu, 10 Apr 2008 08:42:17 +0000 (10:42 +0200)]
objectclass -> objectClass

Karolin
(This used to be commit b865b8a79afd8f3b43bb3adcdcbcbca623dc76a2)

16 years agofix some extrasemi compile warnings
Björn Jacke [Wed, 9 Apr 2008 16:20:07 +0000 (18:20 +0200)]
fix some extrasemi compile warnings
(This used to be commit cbdb79b7a1044945e515a294f487e4c1a9c91be5)

16 years agoFix typo.
Karolin Seeger [Thu, 10 Apr 2008 06:38:26 +0000 (08:38 +0200)]
Fix typo.

Karolin
(This used to be commit 42fbbeb1caf93e4e17bb62f31ff90a853bd169fb)

16 years agonet conf: use talloc and talloc_strdup_lower throughout all net conf functions.
Michael Adam [Wed, 9 Apr 2008 21:48:45 +0000 (23:48 +0200)]
net conf: use talloc and talloc_strdup_lower throughout all net conf functions.

Michael
(This used to be commit 977cc9898970a0c07c30264e91754740c640e235)

16 years agonet conf: implement "net conf delincludes".
Michael Adam [Wed, 9 Apr 2008 21:24:52 +0000 (23:24 +0200)]
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 a1d09f34ec39b614d738c6f795fe8eafaf634105)

16 years agonet conf: implement a "net conf setincludes" command.
Michael Adam [Wed, 9 Apr 2008 16:46:38 +0000 (18:46 +0200)]
net conf: implement a "net conf setincludes" command.

given zero or more filenames as command line parameters

Michael
(This used to be commit ab51e4d44c3dcd00697c8ffb2ce628c4072c7a53)

16 years agonet conf: implement "net conf getincludes".
Michael Adam [Wed, 9 Apr 2008 13:37:33 +0000 (15:37 +0200)]
net conf: implement "net conf getincludes".

Michael
(This used to be commit 30bc48623cf4f9ee17ff9c3e7a9fd98840a01d92)

16 years agonet conf: add diagnostic message for failure to load text file.
Michael Adam [Wed, 9 Apr 2008 13:17:28 +0000 (15:17 +0200)]
net conf: add diagnostic message for failure to load text file.

Michael
(This used to be commit 8f2c3efa679d44acc900fb90f03319e830a7dcf4)

16 years agonet conf: reduce indentation by grouping testmode code together.
Michael Adam [Wed, 9 Apr 2008 12:59:05 +0000 (14:59 +0200)]
net conf: reduce indentation by grouping testmode code together.

Michael
(This used to be commit 97f9cb857532328999589062ceb0b229bcaf93a3)

16 years agonet conf: don't drop config in testmode
Michael Adam [Tue, 8 Apr 2008 23:27:30 +0000 (01:27 +0200)]
net conf: don't drop config in testmode

Michael
(This used to be commit 74e87b977514df79e49613a0b1c5157469b3cb93)

16 years agonet conf: fix import to correctly add includes (at the end)
Michael Adam [Tue, 8 Apr 2008 23:20:36 +0000 (01:20 +0200)]
net conf: fix import to correctly add includes (at the end)

Michael
(This used to be commit 3e81db83707e30ad46a565c9a118e7293b6cdf50)

16 years agoloadparm: drop debug level in map_parameter from 0 to 1
Michael Adam [Tue, 8 Apr 2008 23:28:43 +0000 (01:28 +0200)]
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 fd43a4a1e05a2d259dc75bdcb4c0a3d9d8b41739)

16 years agotest: run smbconftort testsuite from the local_s3 tests
Michael Adam [Tue, 8 Apr 2008 10:08:18 +0000 (12:08 +0200)]
test: run smbconftort testsuite from the local_s3 tests

Michael
(This used to be commit 6641061f76d2175b9476a96d24b99a52163936ca)

16 years agolibsmbconf: testsuite: add test for delete_includes
Michael Adam [Wed, 9 Apr 2008 20:23:12 +0000 (22:23 +0200)]
libsmbconf: testsuite: add test for delete_includes

Michael
(This used to be commit 757601ec830f4a08c5fdcbe2d9bfac86fdc6602c)

16 years agolibsmbconf: return success and count 0 from get_includes when no includes present.
Michael Adam [Wed, 9 Apr 2008 20:22:20 +0000 (22:22 +0200)]
libsmbconf: return success and count 0 from get_includes when no includes present.

Michael
(This used to be commit 182433be5bae753d264491a3ec97433e2e316d10)

16 years agolibsmbconf: add delete_includes mehtod to the api (and backend implementations)
Michael Adam [Wed, 9 Apr 2008 20:21:15 +0000 (22:21 +0200)]
libsmbconf: add delete_includes mehtod to the api (and backend implementations)

Michael
(This used to be commit daef50e54d58a6684b6a890ebf523ca6245f0290)

16 years agolibsmbconf: let set_includes delete the includes paramter when given an empty list
Michael Adam [Wed, 9 Apr 2008 16:46:02 +0000 (18:46 +0200)]
libsmbconf: let set_includes delete the includes paramter when given an empty list

instead of complaining

Michael
(This used to be commit 0dc1fd68598529891429fb29ab1f561fb434bf38)

16 years agolibsmbconf: fix crashbug - correctly check for existence of file.
Michael Adam [Wed, 9 Apr 2008 13:16:45 +0000 (15:16 +0200)]
libsmbconf: fix crashbug - correctly check for existence of file.

Michael
(This used to be commit dd543cd30c3eca9621681ba4b6e9a6683ef2bd07)

16 years agolibsmbconf: prevent getting/deleting value "includes".
Michael Adam [Wed, 9 Apr 2008 07:54:17 +0000 (09:54 +0200)]
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)

16 years agolibsmbconf: consider "include" a forbidden parameter in regisry config again.
Michael Adam [Tue, 8 Apr 2008 23:19:50 +0000 (01:19 +0200)]
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)

16 years agolibsmbconf: add includes at the end of parameter list in reg_get_share().
Michael Adam [Tue, 8 Apr 2008 22:47:27 +0000 (00:47 +0200)]
libsmbconf: add includes at the end of parameter list in reg_get_share().

Michael
(This used to be commit 9bd06d5737aff2bb27c07575285e079fd561a566)

16 years agolibsmbconf: add function smbconf_reg_valname_valid() and use it in get_values()
Michael Adam [Tue, 8 Apr 2008 22:05:45 +0000 (00:05 +0200)]
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)

16 years agolibsmbconf: refactor get_includes on opened key into smbconf_reg_get_includes_internal()
Michael Adam [Tue, 8 Apr 2008 21:58:56 +0000 (23:58 +0200)]
libsmbconf: refactor get_includes on opened key into smbconf_reg_get_includes_internal()

Michael
(This used to be commit 072a3228a4e08894c67ad2983bcea3417e202773)

16 years agolibsmbconf: rename registry_smbconf_valname_forbidden() to smbconf_reg_valname_forbid...
Michael Adam [Tue, 8 Apr 2008 20:57:48 +0000 (22:57 +0200)]
libsmbconf: rename registry_smbconf_valname_forbidden() to smbconf_reg_valname_forbidden()

Michael
(This used to be commit 23fb33fd33a8287d8691a1a5e95bf160be3ed25c)

16 years agolibsmbconf: make registry_smbconf_valname_forbidden() static
Michael Adam [Tue, 8 Apr 2008 20:56:06 +0000 (22:56 +0200)]
libsmbconf: make registry_smbconf_valname_forbidden() static

Michael
(This used to be commit 798808174d0d4cae3a746e26a253cad1a3177684)

16 years agolibsmbconf: move registry_smbconf_valname_forbidden() to the registry backend
Michael Adam [Tue, 8 Apr 2008 20:51:02 +0000 (22:51 +0200)]
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)

16 years agolibsmbconf: more sanely print multi_sz values in registry backend
Michael Adam [Tue, 8 Apr 2008 20:23:57 +0000 (22:23 +0200)]
libsmbconf: more sanely print multi_sz values in registry backend

Michael
(This used to be commit 382c623948abd1c6a5cf8ab7ee2be784fcef76ee)

16 years agolibsmbconf: testsuite: fix handling of error message/overall status
Michael Adam [Tue, 8 Apr 2008 16:00:27 +0000 (18:00 +0200)]
libsmbconf: testsuite: fix handling of error message/overall status

Michael
(This used to be commit c2d3d56d628f266fdfc0ca98fc199afc01670c2c)

16 years agolibsmbconf: testsuite: add test_set_get_includes() and use it in registry test
Michael Adam [Tue, 8 Apr 2008 15:54:29 +0000 (17:54 +0200)]
libsmbconf: testsuite: add test_set_get_includes() and use it in registry test

Michael
(This used to be commit 1f64a1b2b4f11b44e9c9584480f01cac066a6a1d)

16 years agolibsmbconf: testsuite: refactor printing of string lists out.
Michael Adam [Tue, 8 Apr 2008 15:49:10 +0000 (17:49 +0200)]
libsmbconf: testsuite: refactor printing of string lists out.

Michael
(This used to be commit 828c7297247a557ed8e2b6935bbc819aae95a660)

16 years agolibsmbconf: implement get_includes() and set_includes() for registry backend.
Michael Adam [Tue, 8 Apr 2008 15:46:36 +0000 (17:46 +0200)]
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)

16 years agolibsmbconf: testsuite: test get_includes for registry backend
Michael Adam [Tue, 8 Apr 2008 12:31:16 +0000 (14:31 +0200)]
libsmbconf: testsuite: test get_includes for registry backend

Michael
(This used to be commit 31e68cbe5bdc8d69b2b711ec8ea62dbe612ec68f)

16 years agolibsmbconf: testsuite: use the get_global_includes in get_includes test.
Michael Adam [Tue, 8 Apr 2008 12:30:46 +0000 (14:30 +0200)]
libsmbconf: testsuite: use the get_global_includes in get_includes test.

Michael
(This used to be commit 2a4b71b105616b42e1bbfbf01126cc445a991cc0)

16 years agolibsmbconf: add "_global_" wrappers for get/set_includes.
Michael Adam [Tue, 8 Apr 2008 12:24:42 +0000 (14:24 +0200)]
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 ce1b2f550860cb3a566db09f7c7eac39c195a5b7)

16 years agolibsmbconf: testsuite: add test for "get_includes" and use it in the text backend...
Michael Adam [Tue, 8 Apr 2008 10:30:21 +0000 (12:30 +0200)]
libsmbconf: testsuite: add test for "get_includes" and use it in the text backend test.

Michael
(This used to be commit 1ca5afe58cef8b750a65bd8c2a5c9ee794ed50ba)

16 years agolibsmbconf: fill get_includes() in text backed to retrieve includes from cache.
Michael Adam [Tue, 8 Apr 2008 10:09:24 +0000 (12:09 +0200)]
libsmbconf: fill get_includes() in text backed to retrieve includes from cache.

Michael
(This used to be commit 5e253e10b7f80af1f5a855c8e0f00846853cced1)

16 years agolibsmbconf: testsuite: set the debufg fd to stderr.
Michael Adam [Tue, 8 Apr 2008 15:53:45 +0000 (17:53 +0200)]
libsmbconf: testsuite: set the debufg fd to stderr.

...so that we see some debug output

Michael
(This used to be commit 7cfec55ed48644f922ca0ffaa171e3512c93a360)

16 years agolibsmbconf: testsuite: use POPT_COMMON_SAMBA instead of POPT_COMMON_CONFIGFILE
Michael Adam [Tue, 8 Apr 2008 15:52:46 +0000 (17:52 +0200)]
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)

16 years agolibsmbconf: testsuite: add talloc_stackframe to main().
Michael Adam [Tue, 8 Apr 2008 15:51:57 +0000 (17:51 +0200)]
libsmbconf: testsuite: add talloc_stackframe to main().

Michael
(This used to be commit 8c631ac2f42e984137972b7388add4bcbc199665)

16 years agolibsmbconf: testsuite: add support for "--configfile" option.
Michael Adam [Tue, 8 Apr 2008 10:07:35 +0000 (12:07 +0200)]
libsmbconf: testsuite: add support for "--configfile" option.

Michael
(This used to be commit 9f6c909f465df5fc64e2bec88acf272be9cd574e)

16 years agolibsmbconf: add testsuite to the library.
Michael Adam [Tue, 8 Apr 2008 09:02:17 +0000 (11:02 +0200)]
libsmbconf: add testsuite to the library.

Currently only the init function is tested, more tests to come...

Michael
(This used to be commit bc8dc8626c5fb296edbd193a7cc293317c7a29ca)

16 years agolibsmbconf: add talloc context to the get_includes methods.
Michael Adam [Tue, 8 Apr 2008 08:16:03 +0000 (10:16 +0200)]
libsmbconf: add talloc context to the get_includes methods.

Michael
(This used to be commit ed535b6b30b5c9412803f6373eadc704de6de2f9)

16 years agolibsmbconf: add get_includes() and set_includes() to the API.
Michael Adam [Mon, 7 Apr 2008 23:56:32 +0000 (01:56 +0200)]
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)

16 years agolibsmbconf: activate the verbatim-flag in text backend: store parameters as they...
Michael Adam [Mon, 7 Apr 2008 20:49:11 +0000 (22:49 +0200)]
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)

16 years agolibsmbconf: pass txt_private_data instead of only cache to do_parameter/section
Michael Adam [Mon, 7 Apr 2008 20:43:33 +0000 (22:43 +0200)]
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)

16 years agolibsmbconf: load file after special initialization
Michael Adam [Mon, 7 Apr 2008 21:28:48 +0000 (23:28 +0200)]
libsmbconf: load file after special initialization

otherwise verbatim parameter can have no effect.

Michael
(This used to be commit 2ff0b693d7fc7e130a2fb14c06ae8bc28f4b5c57)

16 years agolibsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().
Michael Adam [Mon, 7 Apr 2008 20:33:01 +0000 (22:33 +0200)]
libsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().

Michael
(This used to be commit b9e72b402de412c23702715ead96c20e9b3248cc)

16 years agolibsmbconf: reformat smbconf_format_registry_value() - indentations/tabs
Michael Adam [Mon, 7 Apr 2008 13:29:11 +0000 (15:29 +0200)]
libsmbconf: reformat smbconf_format_registry_value() - indentations/tabs

Michael
(This used to be commit b79a33eb2f370b8d8b50ed5ed2a0acc83e711c1e)

16 years agolibsmbconf: untangle assignment and test in for-loop condition.
Michael Adam [Mon, 7 Apr 2008 13:15:57 +0000 (15:15 +0200)]
libsmbconf: untangle assignment and test in for-loop condition.

Michael
(This used to be commit 4339caff09e1277ae33d3810043bcb3f4e7c4e45)

16 years agolibsmbconf: fix a comment
Michael Adam [Mon, 7 Apr 2008 13:12:44 +0000 (15:12 +0200)]
libsmbconf: fix a comment

Michael
(This used to be commit bc1a5bdbd3b7da1f85c952579096b3c8dc407572)

16 years agolibsmbconf: search from the back when getting parameter from text backend
Michael Adam [Mon, 7 Apr 2008 22:08:41 +0000 (00:08 +0200)]
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)

16 years agolibsmbconf: add smbconf_reverse_find_in_array() to find last occurence of a string.
Michael Adam [Mon, 7 Apr 2008 22:03:39 +0000 (00:03 +0200)]
libsmbconf: add smbconf_reverse_find_in_array() to find last occurence of a string.

Michael
(This used to be commit 25e0fd84780f4acb80cac3b5f54f9597e0e2f53e)

16 years agolibsmbconf: move smbconf_find_in_array() to smbconf_util.c
Michael Adam [Mon, 7 Apr 2008 13:09:28 +0000 (15:09 +0200)]
libsmbconf: move smbconf_find_in_array() to smbconf_util.c

Michael
(This used to be commit 7af79e60a3060083eae67bd053837c955b3f5c10)

16 years agolibsmbconf: reorder prototypes in smbconf_private.h
Michael Adam [Mon, 7 Apr 2008 13:06:41 +0000 (15:06 +0200)]
libsmbconf: reorder prototypes in smbconf_private.h

Michael
(This used to be commit 0e932a0981ef52ff9d236b887eb8177304a99915)

16 years agolibsmbconf: rename smbconf_txt_find_in_array() to smbconf_find_in_array()
Michael Adam [Mon, 7 Apr 2008 13:05:33 +0000 (15:05 +0200)]
libsmbconf: rename smbconf_txt_find_in_array() to smbconf_find_in_array()

Michael
(This used to be commit 9890f437264c6acc8c61c430a53c4645e0a12959)

16 years agolibsmbconf: move utility functions from main module to new smbconf_util.c
Michael Adam [Mon, 7 Apr 2008 13:01:44 +0000 (15:01 +0200)]
libsmbconf: move utility functions from main module to new smbconf_util.c

Michael
(This used to be commit e0f6a9d50c9b72ec33d4323d1a6c5bdf44d011e7)

16 years agocharcnv: add talloc_strdup_lower() - talloc variant of strdup_lower().
Michael Adam [Wed, 9 Apr 2008 13:36:55 +0000 (15:36 +0200)]
charcnv: add talloc_strdup_lower() - talloc variant of strdup_lower().

Michael
(This used to be commit 5f6c730cbeddd1ac2f515bd985c08ceb4ca9bc47)

16 years agoregistry: add support for REG_MULTI_SZ to registry_push_value().
Michael Adam [Tue, 8 Apr 2008 15:44:40 +0000 (17:44 +0200)]
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)

16 years agovlp: fix an implicit cast compile warning.
Michael Adam [Wed, 9 Apr 2008 22:44:25 +0000 (00:44 +0200)]
vlp: fix an implicit cast compile warning.

Michael
(This used to be commit bf46f614c497110dcc3fc79f610fcc7a8784dbb2)

16 years agonet: don't process net_registry_util.c with make proto
Michael Adam [Wed, 9 Apr 2008 16:54:20 +0000 (18:54 +0200)]
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)

16 years agonet rpc registry: add getvalue command.
Michael Adam [Wed, 9 Apr 2008 12:30:18 +0000 (14:30 +0200)]
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)

16 years agonet registry: add a getvalue subcommand that prints a single given value.
Michael Adam [Wed, 9 Apr 2008 10:31:05 +0000 (12:31 +0200)]
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)

16 years agonet (registry util): refactor printing of value without name out.
Michael Adam [Wed, 9 Apr 2008 10:29:34 +0000 (12:29 +0200)]
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)

16 years agoFix typos.
Karolin Seeger [Wed, 9 Apr 2008 14:14:04 +0000 (16:14 +0200)]
Fix typos.

Karolin
(This used to be commit 6cee34703503fbf3629057345fe221b866560648)

16 years agoAdd NetUserEnum example.
Günther Deschner [Wed, 9 Apr 2008 11:50:30 +0000 (13:50 +0200)]
Add NetUserEnum example.

Guenther
(This used to be commit 7d9f64fd8401f8abb938757b4f092e25fd6b154f)

16 years agoAdd NetUserEnum to libnetapi.
Günther Deschner [Wed, 9 Apr 2008 11:47:51 +0000 (13:47 +0200)]
Add NetUserEnum to libnetapi.

Guenther
(This used to be commit 6c933d0b3838808aeee7f4b29ee89aab8d203538)

16 years agoRe-run make idl.
Günther Deschner [Wed, 9 Apr 2008 11:42:48 +0000 (13:42 +0200)]
Re-run make idl.

Guenther
(This used to be commit 285072479bebf09c94fccf55578ef587627c888e)

16 years agoAdd NetUserEnum to libnetapi IDL.
Günther Deschner [Wed, 9 Apr 2008 11:41:54 +0000 (13:41 +0200)]
Add NetUserEnum to libnetapi IDL.

Guenther
(This used to be commit dbbefb4e97df49dc28d47b5d9ba759f90efb9aab)