1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

28 Commits

Author SHA1 Message Date
Günther Deschner
fcd10d26a4 netapi: make libnetapi_open_ipc_connection static.
Guenther
(cherry picked from commit 0259914f8ff04514a8395d8e1af61aadd50c5efb)
(This used to be commit 7edc671cc1007ae216e7efdbcdb9cfa1e547dca5)
2008-08-14 12:22:11 +02:00
Günther Deschner
87b9c9ade2 netapi: make non-implemented local calls default to remote "localhost" calls.
Guenther
(cherry picked from commit aa70e588803e3767796dc958b139f4ee464d8626)
(This used to be commit 9927ac6eec9fe1fecfedb97b61c4f93379fc8722)
2008-08-14 12:22:02 +02:00
Günther Deschner
44465215ff netapi: use "buffer" in libnetapi.
Guenther
(This used to be commit 80957bc1bc1462a2478b3eea64f5cb7a84d08677)
2008-07-30 16:43:47 +02:00
Volker Lendecke
798b56edae Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idx
(This used to be commit 726e56c72fdb685ab5eddefd2fd8b043dc38d6ad)
2008-07-21 14:36:27 +02:00
Günther Deschner
a2290e5e00 netapi: implement NetRemoteTOD().
Guenther
(This used to be commit 76877680a8a6400bc2d3b5e3b788b7d5fc683850)
2008-06-17 19:58:01 +02:00
Günther Deschner
ebbeddfdcd netapi: add NetRemoteTOD() skeleton.
Guenther
(This used to be commit 78bc98cb55e36ef175f9c0f6fcd943781a514005)
2008-06-17 19:56:44 +02:00
Michael Adam
2595377988 libnetapi: fix a C++ warning by making implicit cast explicit
Michael
(This used to be commit b62dd61cc56ec33601289fd4e23058c7f9ad3f0d)
2008-04-13 00:24:42 +02:00
Günther Deschner
ef6ed54765 Use libnetapi_open_pipe in netapi functions.
Guenther
(This used to be commit 5804d8b112e1da022988c635284eb4799974d4c7)
2008-04-10 22:44:00 +02:00
Günther Deschner
aeb7f7db40 Use libnetapi_open_ipc_connection in libnetapi.
Guenther
(This used to be commit d9f19fc61586d606393368799dee9757c169d602)
2008-04-10 22:04:04 +02:00
Günther Deschner
8ab9696bfb Split out private headers in libnetapi.
Guenther
(This used to be commit dd6251d51472a96bfc5ba3d62ea788c8924d4c6b)
2008-04-10 21:52:03 +02:00
Günther Deschner
1a8a8b7769 Use SERVER_INFO_1005 in libnetapi.
Guenther
(This used to be commit 5f8793dd1d8a3694afb7f2d882cfb9990eb40b75)
2008-04-10 21:31:12 +02:00
Günther Deschner
af19343df8 Try to use kerberos in libnetapi.
Guenther
(This used to be commit 9cfce2229508c2145c3527074ac76520544e5d25)
2008-04-08 19:42:26 +02:00
Günther Deschner
ba35a8c8dd Restructure inner workings of libnetapi a bit.
Guenther
(This used to be commit a4e3bc2bade8bf74696e1c6ced74da563ff2df7b)
2008-04-08 03:08:49 +02:00
Michael Adam
6f7cfeddd6 libsmbconf: add a "path" variable to the conf context.
This is passed to the module init routines.
In case of the registry, this is the path of the
basekey in registry, that is to be used, defaulting
to KEY_SMBCONF (HKLM\software\samba\smbconf), when
NULL is given. This is the only case currently used.

In order to support other keys, registry initialization
for smbconf has to be changed to support different keys.

Michael
(This used to be commit 96434d9dc7a66773e313cc128af57493dee245a1)
2008-03-21 18:19:24 +01:00
Michael Adam
fececde181 libsmbconf: add backend specific init function.
Hide generic init function taking smbconf_ops argument
from public api.

Michael
(This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21 02:25:56 +01:00
Michael Adam
23b1d721b8 libsmbconf: rename smbconf_close() to smbconf_shutdown().
Michael
(This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
2008-03-21 02:25:56 +01:00
Michael Adam
adf5bf554c libsmbconf: rename smbconf_open() to smbconf_init().
That's more appropriate.

Michael
(This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
2008-03-21 02:25:56 +01:00
Michael Adam
6274929b1e libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael
(This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)
2008-03-17 18:03:02 +01:00
Günther Deschner
65b0235ee3 Give a better error message why NetServerSetInfo() may fail in the gui.
Guenther
(This used to be commit 1bbbebb7767b8a25532e8be3dbd274c211e34bbd)
2008-03-05 15:23:00 +01:00
Günther Deschner
d1ef6699c0 Fix rpccli_srvsvc_NetSrvSetInfo call in libnetapi.
Guenther
(This used to be commit 5911529205ca69c438e0782c07ee4fe5aa95de62)
2008-03-05 09:54:12 +01:00
Günther Deschner
b1424846c6 Cosmetics and error string reporting for libnetapi.
Guenther
(This used to be commit 4ca33928512bd71268bafd41d2b608e814a7295f)
2008-01-18 02:55:10 +01:00
Michael Adam
7bfceba4bc Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael
(This used to be commit c5a7d421c512a6221b0300549d7b5de0368d252e)
2008-01-16 17:10:02 +01:00
Michael Adam
1ee6d3e1ee Introduce a libnet_conf context created by libnet_conf_open().
The libnet_conf_ctx stores the information necessary to interoperate
with the configuration. It is created by calling libnet_conf_open()
and destroyed by calling libnet_conf_close(). The context is passed
to all the libnet_conf functions. It currently stores the token to
access the registry. Later, it could store more data, e.g. the server
to connect to, credentials, and so on. For support of other backends
than registry or support of remote configuration, only the open
function will have to be changed.

In net_conf, the calls to the actual net_conf functions is wrapped
into a function that calls libnet_conf_open()/_close(). Thus an
individual variant of net_conf_runfunction2() and functable2 is
used to cope with functions being called by the wrapper with the
additional libnet_conf_ctx argument.

Michael
(This used to be commit c2a9346faa26e79af5948197a1b322e545f0ed09)
2008-01-13 02:14:34 +01:00
Michael Adam
5655ae7a24 Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
Now all functions are converted to the consistent naming scheme.

Michael
(This used to be commit a559533c0c8a80f3f4078bbc2675de395359485f)
2008-01-03 14:17:49 +01:00
Volker Lendecke
921d8782cc Fix the build
(This used to be commit 72dc71710813ea9f1d8864c4401fef25a25577bd)
2007-12-25 11:38:26 +01:00
Günther Deschner
f2fe172454 Keep libnetapi_NetX calls static for now.
Guenther
(This used to be commit c255654c68923aca3e258906e49be82d719d5ccd)
2007-12-21 15:29:11 +01:00
Günther Deschner
991112eda7 Implement NetServerSetInfo level 1005 in local mode with smbconf registry.
Guenther
(This used to be commit 15c2bc15f20a677c3c94895150e396275de6ac9b)
2007-12-21 15:29:11 +01:00
Günther Deschner
721d36df83 Add NetServerGetInfo and NetServerSetInfo (for level 1005).
Guenther
(This used to be commit 1cad549f54563c3a9787624ba7a56b54107ebd57)
2007-12-21 15:29:11 +01:00