1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

27016 Commits

Author SHA1 Message Date
Volker Lendecke
4f1d49615e Make use of ZERO_STRUCT instead of memset in namequery.c 2008-04-14 13:13:46 +02:00
Volker Lendecke
3b4a402bc5 Fix the build of db_open_trans with CLUSTER_SUPPORT enabled
Metze, you might want to check this.
2008-04-14 13:13:46 +02:00
Günther Deschner
512e6ca0a9 libnetjoin: Fix joining when no KRB5CCNAME is around.
Guenther
2008-04-14 12:33:10 +02:00
Alexander Bokovoy
4abdbad52e Use more error-prone form of testing dm_destroy_session() return code after discussing with Tridge 2008-04-14 13:56:36 +04:00
Michael Adam
78afb30f80 loadparm: use the new smbconf_init() dispatcher for loading registry config.
Michael
2008-04-13 20:04:44 +02:00
Michael Adam
281c9287a3 net conf: use the new smbconf_init() dispatcher instead of explicit backend init.
Michael
2008-04-13 20:04:44 +02:00
Michael Adam
cc613a60eb 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
2008-04-13 20:04:44 +02:00
Michael Adam
9efd7b5151 libsmbconf: move setting of verbatim variable into a more internal function.
Michael
2008-04-13 20:04:44 +02:00
Michael Adam
f76ec7d87e libsmbconf: add a check for talloc failure to smbconf_txt_init().
Michael
2008-04-13 20:04:44 +02:00
Michael Adam
e8bafcfbf4 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
2008-04-13 20:04:43 +02:00
Michael Adam
3fb95ab757 libsmbconf: rename smbconf_init() to smbconf_init_internal().
smbconf_init should be the name of the dispatcher (to be written)

Michael
2008-04-13 20:04:43 +02:00
Günther Deschner
15bef5ae41 libnetapi: add libnetapi_set_use_kerberos
Don't unconditionally set the kerberos flag for authentication.

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

Michael
2008-04-13 15:33:48 +02:00
Michael Adam
6a31e659cb registry: change registry_init_basic() to return WERROR instead of bool
Michael
2008-04-13 15:33:48 +02:00
Michael Adam
e65a999989 registry: change reghook_cache_add() to return WERROR instead of bool
Michael
2008-04-13 15:33:48 +02:00
Michael Adam
78bb005ee4 registry cachehook: change helper function keyname_to_path() to return WERROR.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
da45fb92f6 adt_tree: change pathtree_add to return WERR instead of bool.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
e97d558c56 registry cachehook: revert logic to make fast path more obvious and reduce indent.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
2f4ca62dce registry: change reghook_cache_init() to return WERROR and use it in the callers.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
4bfc0be55f registry cachehook: compare cache_tree against NULL, not 0.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
e0718f04a7 registry: change init_registry_key() and init_registry_data() to return WERR
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
4fd9b45ffc registry: unify debug output in the registry init functions.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
c312852abc registry: change regdb_init() to return WERROR instead of bool.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
8fe1a2f567 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
2008-04-13 15:33:47 +02:00
Volker Lendecke
81f34489f7 Update WHATSNEW entry for pre3 2008-04-13 12:20:58 +02:00
Michael Adam
9841ee7fd4 registry cachehook: add talloc failed debug messages.
Michael
2008-04-13 01:47:16 +02:00
Michael Adam
c9f01aee37 registry cachehook: eliminate a couple trailing spaces (empty lines).
Michael
2008-04-13 01:44:57 +02:00
Michael Adam
3f5955d361 registry cachehook: fix memleak (to talloc_tos()): free key at the end.
Michael
2008-04-13 01:43:43 +02:00
Michael Adam
acb9c98dff registry cachehook: refactor normalization of keyname out.
Michael
2008-04-13 01:43:42 +02:00
Michael Adam
2e762be0db registry: adapt copied function header comments.
Michael
2008-04-13 01:43:42 +02:00
Michael Adam
2f9ee2f782 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
2008-04-13 01:43:42 +02:00
Günther Deschner
84608e165e Fix ou handling in netdomjoin-gui.
The ou list was concatenated again and again...

Guenther
2008-04-13 00:46:33 +02:00
Michael Adam
b62dd61cc5 libnetapi: fix a C++ warning by making implicit cast explicit
Michael
2008-04-13 00:24:42 +02:00