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

24011 Commits

Author SHA1 Message Date
Michael Adam
be504b9d32 libsmbconf: don't complain with WERR_ALREADY_EXISTS for NULL share in smbconf_create_share().
These are values stored inside the base key for registry.
This is not getting deleted.

Michael
(This used to be commit aa167de825)
2008-04-15 17:40:28 +02:00
Michael Adam
ed85ea4248 net conf: adapt output of NULL share params in net conf list.
don't list NULL share name and don't indent these parameters

Michael
(This used to be commit 0212b38913)
2008-04-15 17:40:27 +02:00
Michael Adam
770b1923dc net conf: simplify logic in test output of net conf import.
Michael
(This used to be commit 367c8b133b)
2008-04-15 17:40:27 +02:00
Michael Adam
747d4a8f04 libsmbconf: make sure to always list the NULL section first in text backend.
Michael
(This used to be commit b50fdf321d)
2008-04-15 17:40:27 +02:00
Michael Adam
7624bab963 net conf: fix output of out-of-share parameters in test mode import
Michael
(This used to be commit 5424e07e7d)
2008-04-15 17:40:27 +02:00
Michael Adam
34e8ec54ce libsmbconf: default to the NULL section when a parameter is encountered w/o section
Michael
(This used to be commit e1b98f1cbc)
2008-04-15 17:40:27 +02:00
Michael Adam
e700800720 libsmbconf: allow NULL sharename in smbconf_share_exists().
Michael
(This used to be commit cb23052b20)
2008-04-15 17:40:27 +02:00
Michael Adam
0e7497936c libsmbconf: add handling of NULL strings to smbconf_find_in_array().
Michael
(This used to be commit a5923bafe9)
2008-04-15 17:40:27 +02:00
Michael Adam
b396ad07d1 libsmbconf: add handling of "NULL" strings to smbconf_add_string_to_array()
Michael
(This used to be commit aba261a914)
2008-04-15 17:40:27 +02:00
Jelmer Vernooij
c05c5dba8a Regenerate DCE/RPC client code after fixing memcpy() length bug in pidl.
(This used to be commit ac4c63d999)
2008-04-15 16:11:10 +02:00
Stefan Metzmacher
5a2e212c0f lib/sharesec.c: fix the upgrade code, db_traverse returns the number of records!
metze
(This used to be commit ccdebe97f8)
2008-04-15 00:25:27 +02:00
Stefan Metzmacher
625f2d6c23 pdb_tdb: fix the upgrade code, db_traverse returns the number of records!
metze
(This used to be commit baaf571d54)
2008-04-15 00:25:11 +02:00
Günther Deschner
ae1e1085a1 libnetjoin/net: Fix lp_config_backend_is_registry() handling.
Thanks obnox, now we can net ads join and net ads leave with zero
configuration changes if "config backend = registry".

Guenther
(This used to be commit 9003881773)
2008-04-14 23:07:55 +02:00
Günther Deschner
4122dabbf9 net: abort when lp_realm is not set in net_ads_leave().
Guenther
(This used to be commit 53735edcbb)
2008-04-14 22:58:38 +02:00
Günther Deschner
a31281a751 libnetjoin: delete the workgroup name when requested while unjoining.
Guenther
(This used to be commit 1782e89f33)
2008-04-14 22:57:37 +02:00
Günther Deschner
c8d96d57f8 libnetjoin: separate out libnet_join_lookup_dc_rpc.
Guenther
(This used to be commit 8d3d1c094a)
2008-04-14 22:56:12 +02:00
Günther Deschner
e27160183a libgpo: fix build warning.
Thanks metze&vl.

Guenther
(This used to be commit cb3f1df7d8)
2008-04-14 18:21:21 +02:00
Günther Deschner
113b94faf1 net: exit early in net_ads_join() if the domain is not set.
Guenther
(This used to be commit 8331fbe735)
2008-04-14 16:16:25 +02:00
Günther Deschner
cbd07aa047 libnetjoin: Fix unjoining when no KRB5CCNAME is around.
Guenther
(This used to be commit 7fd237c545)
2008-04-14 16:15:18 +02:00
Günther Deschner
bc65d96782 net: use WERROR for check_ads_config().
Guenther
(This used to be commit 9176057986)
2008-04-14 16:13:52 +02:00
Günther Deschner
202e8cc57e doserr: Add WERR_INVALID_DOMAIN_STATE and WERR_INVALID_DOMAIN_ROLE.
Guenther
(This used to be commit 91a55fc27d)
2008-04-14 15:48:23 +02:00
Günther Deschner
fffb304fec net: the success of secrets_init is checked by libnetjoin now.
Guenther
(This used to be commit 0a6a5d0824)
2008-04-14 15:47:30 +02:00
Günther Deschner
e23911b0c3 WKSSVC: In _wkssvc_NetrJoinDomain2, do modify the local configuration if enabled.
Guenther
(This used to be commit 260efafb8f)
2008-04-14 14:46:30 +02:00
Günther Deschner
a4e0f60c4e libnetjoin: Remove machine account if we failed to set password.
Guenther
(This used to be commit db5e0ed186)
2008-04-14 14:44:58 +02:00
Volker Lendecke
ae4159f0f7 Remove two pointless else branches
(This used to be commit ed343114cd)
2008-04-14 14:37:39 +02:00
Volker Lendecke
13a60a4005 Remove namedpipe_transact fn pointer from smb_np_struct
(This used to be commit d1f82b7e67)
2008-04-14 14:16:58 +02:00
Volker Lendecke
fe4930b7fa Enable multiple fd events on a single file descriptor
Now we can have multiple events listen on a single fd. The order in which they
are called is naturally not defined, meaning that it is only deterministic if
exactly one event is readable or writeable.
(This used to be commit 61503f822b)
2008-04-14 13:13:47 +02:00
Volker Lendecke
a4c0812af0 Fix some "ignoring asprintf result" warnings
(This used to be commit 155d62ddfd)
2008-04-14 13:13:46 +02:00
Volker Lendecke
394150d269 Make use of ZERO_STRUCT instead of memset in namequery.c
(This used to be commit 4f1d49615e)
2008-04-14 13:13:46 +02:00
Volker Lendecke
313abd3ac2 Fix the build of db_open_trans with CLUSTER_SUPPORT enabled
Metze, you might want to check this.
(This used to be commit 3b4a402bc5)
2008-04-14 13:13:46 +02:00
Günther Deschner
e33b13e826 libnetjoin: Fix joining when no KRB5CCNAME is around.
Guenther
(This used to be commit 512e6ca0a9)
2008-04-14 12:33:10 +02:00
Alexander Bokovoy
09c5d89220 Use more error-prone form of testing dm_destroy_session() return code after discussing with Tridge
(This used to be commit 4abdbad52e)
2008-04-14 13:56:36 +04:00
Michael Adam
9fd9060e53 loadparm: use the new smbconf_init() dispatcher for loading registry config.
Michael
(This used to be commit 78afb30f80)
2008-04-13 20:04:44 +02:00
Michael Adam
d2d82394a4 net conf: use the new smbconf_init() dispatcher instead of explicit backend init.
Michael
(This used to be commit 281c9287a3)
2008-04-13 20:04:44 +02:00
Michael Adam
4eab3d3cf0 libsmbconf: add a smbconf init dispatcher smbconf_init().
The dispatcher takes a config source argument in the form
of "backend:path" where backend can (currently) be one of
"txt" (aka "file") or "reg" (aka "registry").

When the path is omitted, it is up to the backend to provide
a default path.

When there is no separator ":" and the string is not a recognized
backend, then file backend is assumed and the string is passed
in as the path argument.

Michael
(This used to be commit cc613a60eb)
2008-04-13 20:04:44 +02:00
Michael Adam
09c6c38deb libsmbconf: move setting of verbatim variable into a more internal function.
Michael
(This used to be commit 9efd7b5151)
2008-04-13 20:04:44 +02:00
Michael Adam
935b99c84c libsmbconf: add a check for talloc failure to smbconf_txt_init().
Michael
(This used to be commit f76ec7d87e)
2008-04-13 20:04:44 +02:00
Michael Adam
35d6068f25 libsmbconf: remove the bool verbatim parameter from txt backend init function.
Always be verbatim for now. Backend config options may be added later
via some private data pointer.

Michael
(This used to be commit e8bafcfbf4)
2008-04-13 20:04:43 +02:00
Michael Adam
611b6bfa3b libsmbconf: rename smbconf_init() to smbconf_init_internal().
smbconf_init should be the name of the dispatcher (to be written)

Michael
(This used to be commit 3fb95ab757)
2008-04-13 20:04:43 +02:00
Günther Deschner
aea1a244ee libnetapi: add libnetapi_set_use_kerberos
Don't unconditionally set the kerberos flag for authentication.

Guenther
(This used to be commit 15bef5ae41)
2008-04-13 19:25:59 +02:00
Günther Deschner
6318088434 libnetapi: Add NetQueryDisplayInformation header.
Guenther
(This used to be commit 3c107934ac)
2008-04-13 19:25:59 +02:00
Günther Deschner
d0acdc9038 libnetapi: add NetQueryDisplayInformation example.
Guenther
(This used to be commit 5f9332cf1f)
2008-04-13 19:15:15 +02:00
Günther Deschner
b3367c9e35 libnetapi: fill in NetQueryDisplayInformation_r.
Guenther
(This used to be commit 7fb9991b4c)
2008-04-13 19:12:31 +02:00
Günther Deschner
dcb9264edf libnetapi: don't reset the error code in NetUserAdd_r if the operation failed.
Guenther
(This used to be commit 9edb067f62)
2008-04-13 19:11:01 +02:00
Günther Deschner
5647deccb1 libnetapi: add NetQueryDisplayInformation skeleton.
Guenther
(This used to be commit 6ec4a62b6d)
2008-04-13 19:04:18 +02:00
Günther Deschner
99e96fe5ca Re-run make idl.
Guenther
(This used to be commit afd0e925dc)
2008-04-13 19:00:53 +02:00
Günther Deschner
f34245238a libnetapi: Add IDL for NetQueryDisplayInformation.
Guenther
(This used to be commit 1200eb474c)
2008-04-13 18:59:42 +02:00
Günther Deschner
1c7e4e8a2a Fix the build of eventlogadm.
Guenther
(This used to be commit 57a5628abf)
2008-04-13 18:28:24 +02:00
Günther Deschner
de013be0b6 gpo: add scripts plugin.
Guenther
(This used to be commit cd6388f040)
2008-04-13 17:52:11 +02:00
Günther Deschner
e39f02217a libnetapi: don't to try to free NULL struct.
Guenther
(This used to be commit eb33d30d80)
2008-04-13 17:39:29 +02:00
Günther Deschner
3cd8c1befa gpo: make integer debug print more readable.
Guenther
(This used to be commit b2cf8010ae)
2008-04-13 17:39:28 +02:00
Michael Adam
282c9ff8ae registry: honour the WERROR that regsubkey_ctr_addkey gives us in reg_load_tree.
Michael
(This used to be commit c2d9baa29e)
2008-04-13 15:45:33 +02:00
Michael Adam
86d189dad1 registry: honour the WERROR that regsubkey_ctr_addkey gives in regdb_fetch_keys.
Michael
(This used to be commit 7dd7471da7)
2008-04-13 15:41:07 +02:00
Michael Adam
e5d83f07cd net registry: remove superfluous regdb_close().
Michael
(This used to be commit d4e74036d3)
2008-04-13 15:36:05 +02:00
Michael Adam
a9ff941f41 registry: rename init_registry() to registry_init_full() for consistency.
Michael
(This used to be commit 14d82708d4)
2008-04-13 15:33:48 +02:00
Michael Adam
281e610ff3 registry: change init_registry() to return WERROR instead of bool.
Michael
(This used to be commit 0b196095db)
2008-04-13 15:33:48 +02:00
Michael Adam
6c66d5d019 registry: change registry_init_smbconf() to return WERROR instead of bool
Michael
(This used to be commit 7c343c6057)
2008-04-13 15:33:48 +02:00
Michael Adam
4ae2e8c7ba registry: refactor common part of registry initialization out.
into a new function registry_init_common().

Michael
(This used to be commit 5da52b95ac)
2008-04-13 15:33:48 +02:00
Michael Adam
3f01e05a77 registry: change registry_init_basic() to return WERROR instead of bool
Michael
(This used to be commit 6a31e659cb)
2008-04-13 15:33:48 +02:00
Michael Adam
80b6d7b1d6 registry: change reghook_cache_add() to return WERROR instead of bool
Michael
(This used to be commit e65a999989)
2008-04-13 15:33:48 +02:00
Michael Adam
5166d562ea registry cachehook: change helper function keyname_to_path() to return WERROR.
Michael
(This used to be commit 78bb005ee4)
2008-04-13 15:33:47 +02:00
Michael Adam
01f4bd4f4d adt_tree: change pathtree_add to return WERR instead of bool.
Michael
(This used to be commit da45fb92f6)
2008-04-13 15:33:47 +02:00
Michael Adam
84c5da2ff4 registry cachehook: revert logic to make fast path more obvious and reduce indent.
Michael
(This used to be commit e97d558c56)
2008-04-13 15:33:47 +02:00
Michael Adam
4b4306eb4a registry: change reghook_cache_init() to return WERROR and use it in the callers.
Michael
(This used to be commit 2f4ca62dce)
2008-04-13 15:33:47 +02:00
Michael Adam
2ffe46e24d registry cachehook: compare cache_tree against NULL, not 0.
Michael
(This used to be commit 4bfc0be55f)
2008-04-13 15:33:47 +02:00
Michael Adam
26a5652f6d registry: change init_registry_key() and init_registry_data() to return WERR
Michael
(This used to be commit e0718f04a7)
2008-04-13 15:33:47 +02:00
Michael Adam
cb624c4057 registry: unify debug output in the registry init functions.
Michael
(This used to be commit 4fd9b45ffc)
2008-04-13 15:33:47 +02:00
Michael Adam
6b85938f27 registry: change regdb_init() to return WERROR instead of bool.
Michael
(This used to be commit c312852abc)
2008-04-13 15:33:47 +02:00
Michael Adam
bcb19766d6 registry: make registry_init_smbconf() hook the registry ops onto given key.
This still defaults to HKLM\Software\Samba\smbconf, but is interchangeable now.
This allows us to open the libsmbconf registry backend on different registry keys.

Michael
(This used to be commit 8fe1a2f567)
2008-04-13 15:33:47 +02:00
Michael Adam
b5a75ec402 registry cachehook: add talloc failed debug messages.
Michael
(This used to be commit 9841ee7fd4)
2008-04-13 01:47:16 +02:00
Michael Adam
a721f0a729 registry cachehook: eliminate a couple trailing spaces (empty lines).
Michael
(This used to be commit c9f01aee37)
2008-04-13 01:44:57 +02:00
Michael Adam
0fa8845fa0 registry cachehook: fix memleak (to talloc_tos()): free key at the end.
Michael
(This used to be commit 3f5955d361)
2008-04-13 01:43:43 +02:00
Michael Adam
227904434a registry cachehook: refactor normalization of keyname out.
Michael
(This used to be commit acb9c98dff)
2008-04-13 01:43:42 +02:00
Michael Adam
bbca983507 registry: adapt copied function header comments.
Michael
(This used to be commit 2e762be0db)
2008-04-13 01:43:42 +02:00
Michael Adam
413c2e9b0a registry: remove the REGISTRY_HOOKS layer from the reghook cache.
There is no need to save the keyname again, we only need to
get the REGISTRY_OPS out of the pathtree.

Furthermore, this makes life easier, since we can now pass
in keynames as temporarily allocated strings.

Michael
(This used to be commit 2f9ee2f782)
2008-04-13 01:43:42 +02:00
Günther Deschner
a75421b019 Fix ou handling in netdomjoin-gui.
The ou list was concatenated again and again...

Guenther
(This used to be commit 84608e165e)
2008-04-13 00:46:33 +02:00
Michael Adam
2595377988 libnetapi: fix a C++ warning by making implicit cast explicit
Michael
(This used to be commit b62dd61cc5)
2008-04-13 00:24:42 +02:00
Michael Adam
3aa565e790 dbwrap_tdb2: fix a C++ warning by making implicit cast explicit
Michael
(This used to be commit 18ced7e420)
2008-04-13 00:23:58 +02:00
Günther Deschner
98abf71ff5 Add WERR_USER_ALREADY_EXISTS and WERR_PASSWORD_RESTRICTION.
Guenther
(This used to be commit eefd03d39b)
2008-04-12 18:30:14 +02:00
Günther Deschner
2938315633 Move some WERRORs down to the NERR_BASE block.
Guenther
(This used to be commit 2453375ee0)
2008-04-12 18:29:13 +02:00
Stefan Metzmacher
aaf61d9ae4 groupdb: make mapping_tdb compatible to mapping_ldb
mapping_ldb replaces the record if it already exists.
I'm not sure if that a good thing, but for now
both backends should provide the same behavior.

metze
(This used to be commit b313acdd31)
2008-04-12 10:01:42 +02:00
Stefan Metzmacher
37fbe55eea groupdb: readd groupdb:backend parametric option
This reverts c5adb92c02.

The reason is that ldb doesn't work for cluster setups yet.

metze
(This used to be commit 5f5d90ef76)
2008-04-12 09:21:04 +02:00
Stefan Metzmacher
e21b283d67 dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbindd
metze
(This used to be commit 64450cc1e4)
2008-04-12 09:14:10 +02:00
Stefan Metzmacher
138b58bcec dbwrap: use db_open_tdb2() in for db_open_trans() if "dbwrap:use_tdb2=yes"
For clustered setups you need to disable the ctdb backend for each
tdb which should use the tdb2 backend (e.g. ctdb:registry.tdb=no).

To disable tdb2 per tdb use something like "tdb2:passdb.tdb=no"

metze
(This used to be commit 5cea2bf367)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
dfb181ab73 dbwrap: add dbwrap_tdb2 backend
This backend can be used untill ctdb knows about real
transactions.

It stores a master tdb in a shared location and a readonly copy
on the local harddisk. Reads are always on the local tdb
and writes always on both. Change notify messages are send
to all message context, which ask for them. With the notifies
it's possible to just update the changed records, instead of
copying all records (which is the fallback).

You need to configure:

dbwrap:use_tdb2=yes
dbwrap_tdb2:master directory=/some/shared/path
dbwrap_tdb2:local directory=/var/lib/samba

metze
(This used to be commit aa6230de0d)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
d3eebed911 rerun 'make idl'
metze
(This used to be commit f34dad2b4a)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
1b2b703b37 messaging.idl: add structure to marshall dbwrap_tdb2 changes
metze
(This used to be commit 46a0d8e872)
2008-04-12 09:14:08 +02:00
Stefan Metzmacher
3ae463ca69 messaging: add MSG_DBWRAP_TDB2_CHANGES flag
metze
(This used to be commit 7418c3ab1d)
2008-04-12 09:14:08 +02:00
Stefan Metzmacher
c316c7ab73 messaging: add FLAG_MSG_DBWRAP message class flag
metze
(This used to be commit ee6325495f)
2008-04-12 09:14:08 +02:00
Jeremy Allison
ccb79b383d Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 7258c780f0)
2008-04-11 17:46:17 -07:00
Jeremy Allison
f85c4b6905 Fix bug #5386, don't keep printing the same waiting
error message.
Jeremy.
(This used to be commit 12e6818df1)
2008-04-11 17:41:49 -07:00
Michael Adam
85dc216ecb build: smbconftort only needs LIBSMB_ERR_OBJ, not LIBSAMBA_OBJ
Michael
(This used to be commit 27fea343d2)
2008-04-12 02:41:21 +02:00
Michael Adam
3b32275d48 build: move SECRETS_OBJ into LIBSMB_ERR_OBJ.
LIBSMB_ERR_OBJ depends on SECRETS_OBJ

Michael
(This used to be commit 79b5a0c7a8)
2008-04-12 02:41:21 +02:00
Michael Adam
63e4a96253 build: move SECRETS_OBJ into LIBSMB_OBJ
LIBSMB_OBJ is not used without SECRETS_OBJ

Michael
(This used to be commit bea66f07b4)
2008-04-12 02:41:20 +02:00
Michael Adam
ae51385dfb build: regroup LIBSMB objects to for a smallest linkable uint (LIBSMB_ERR_OBJ)
Michael
(This used to be commit 310fd52ea4)
2008-04-12 02:41:20 +02:00
Michael Adam
c890aef164 registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c
This function is only used inside registry code.

Michael
(This used to be commit 48745e3fbd)
2008-04-12 02:41:20 +02:00
Michael Adam
41fa859f90 build: group RPC_PARSE_OBJ1 with LIBSAMBA_OBJ
it is only ever used together

Michael
(This used to be commit 27c7441145)
2008-04-12 02:41:20 +02:00
Michael Adam
27d76acb8f build: group NTERR/DOSERR/ERRORMAP and LIBSAMBA object differently
Michael
(This used to be commit ddc2292c15)
2008-04-12 02:41:20 +02:00
Jeremy Allison
05c15785d7 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 6a965e72a8)
2008-04-11 17:24:31 -07:00
Jeremy Allison
e76ec752be Quieten valgrind message on make valgrindtest. This doesn't
seem to be valid (vl - feel free to confirm).
Jeremy.
(This used to be commit 43b0254d93)
2008-04-11 17:23:48 -07:00
Michael Adam
7d7b420ad1 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 8a87e40270)
2008-04-12 02:17:46 +02:00
Michael Adam
ecd46b8ad4 libnetapi: fix interactive logging by preventing setup_logging from closing stderr.
Michael
(This used to be commit 563b837b76)
2008-04-12 02:05:25 +02:00
Michael Adam
8be49cdd3e 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 d9bd894c2e)
2008-04-12 01:36:10 +02:00
Volker Lendecke
fd502a74f7 Remove a redundant TALLOC_FREE
(This used to be commit 8e348ab865)
2008-04-11 23:14:53 +02:00
Volker Lendecke
c751386bb8 Remove some write-only fstrings
(This used to be commit aacb07b1b0)
2008-04-11 22:21:04 +02:00
Stefan Metzmacher
94df47318f net: 'net' doesn't need wb_common.o anymore.
metze
(This used to be commit 05f7f77135)
2008-04-11 15:59:34 +02:00
Stefan Metzmacher
4313d7b6c2 nsswitch: remove unused nsswitch/wb_client.c
metze
(This used to be commit 2b236c7ace)
2008-04-11 15:59:34 +02:00
Stefan Metzmacher
08591d0095 net_idmap: use wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
metze
(This used to be commit dc9a3f8db0)
2008-04-11 15:59:33 +02:00
Stefan Metzmacher
dc9569e45f libwbclient: add wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
metze
(This used to be commit 364e146805)
2008-04-11 15:59:33 +02:00
Michael Adam
a3f1b5f150 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 c4e1439ede)
2008-04-11 15:40:02 +02:00
Tim Prouty
bb869741dd 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 59124382d2)
2008-04-11 11:33:33 +02:00
Volker Lendecke
245ebca937 Fix bug 5366
(This used to be commit 448a8fe6c1)
2008-04-11 11:32:47 +02:00
Michael Adam
c575c85d58 test: not only pretend to call smbconftort - really do it :-}
Michael
(This used to be commit e0947537e6)
2008-04-11 10:57:50 +02:00
Björn Jacke
83a6605b3a some shells are pickier than others ...
(This used to be commit 9aabfa44d9)
2008-04-11 10:51:19 +02:00
Günther Deschner
ef6ed54765 Use libnetapi_open_pipe in netapi functions.
Guenther
(This used to be commit 5804d8b112)
2008-04-10 22:44:00 +02:00
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
d424a74f15 Re-run make idl.
Guenther
(This used to be commit 0d5130ddb6)
2008-04-10 21:29:05 +02:00
Günther Deschner
693a5679fd Add SERVER_INFO_1005 to libnetapi.idl.
Guenther
(This used to be commit 5387c6e8d1)
2008-04-10 21:28:17 +02:00
Günther Deschner
8ea6da9354 Fix typo.
Guenther
(This used to be commit 30337bce2c)
2008-04-10 21:23:59 +02:00
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
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
Michael Adam
1fcbcbb486 charcnv: add talloc_strdup_lower() - talloc variant of strdup_lower().
Michael
(This used to be commit 5f6c730cbe)
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 a8cedfef27)
2008-04-10 01:18:10 +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 51026d64b3)
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 ba59383437)
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 77f049943e)
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 88c4851ad7)
2008-04-09 23:52:34 +02:00
Karolin Seeger
a8124367b4 Fix typos.
Karolin
(This used to be commit 6cee347035)
2008-04-09 16:14:04 +02:00
Günther Deschner
c12bf374fe Add NetUserEnum example.
Guenther
(This used to be commit 7d9f64fd84)
2008-04-09 13:50:30 +02:00
Günther Deschner
4801d0c6f3 Add NetUserEnum to libnetapi.
Guenther
(This used to be commit 6c933d0b38)
2008-04-09 13:47:51 +02:00
Günther Deschner
7dd3b4186b Re-run make idl.
Guenther
(This used to be commit 285072479b)
2008-04-09 13:42:48 +02:00
Günther Deschner
f544ba49be Add NetUserEnum to libnetapi IDL.
Guenther
(This used to be commit dbbefb4e97)
2008-04-09 13:41:54 +02:00
Günther Deschner
b3422d1d1c Add Add NetUserDel example.
Guenther
(This used to be commit 3123e68bda)
2008-04-09 13:39:27 +02:00
Günther Deschner
fb538ad641 Add NetUserDel to libnetapi.
Guenther
(This used to be commit 92ba18fcd0)
2008-04-09 13:35:49 +02:00
Günther Deschner
eac830c48e Re-run make idl.
Guenther
(This used to be commit 51d0cbe3d9)
2008-04-09 13:32:19 +02:00
Günther Deschner
adeb5d4fbb Add NetUserDel to libnetapi IDL.
Guenther
(This used to be commit 8a0b6532af)
2008-04-09 13:31:53 +02:00