1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00

22 Commits

Author SHA1 Message Date
Michael Adam
b62dd61cc5 libnetapi: fix a C++ warning by making implicit cast explicit
Michael
2008-04-13 00:24:42 +02:00
Günther Deschner
5804d8b112 Use libnetapi_open_pipe in netapi functions.
Guenther
2008-04-10 22:44:00 +02:00
Günther Deschner
d9f19fc615 Use libnetapi_open_ipc_connection in libnetapi.
Guenther
2008-04-10 22:04:04 +02:00
Günther Deschner
dd6251d514 Split out private headers in libnetapi.
Guenther
2008-04-10 21:52:03 +02:00
Günther Deschner
5f8793dd1d Use SERVER_INFO_1005 in libnetapi.
Guenther
2008-04-10 21:31:12 +02:00
Günther Deschner
9cfce22295 Try to use kerberos in libnetapi.
Guenther
2008-04-08 19:42:26 +02:00
Günther Deschner
a4e3bc2bad Restructure inner workings of libnetapi a bit.
Guenther
2008-04-08 03:08:49 +02:00
Michael Adam
96434d9dc7 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
2008-03-21 18:19:24 +01:00
Michael Adam
b3f6920ccb libsmbconf: add backend specific init function.
Hide generic init function taking smbconf_ops argument
from public api.

Michael
2008-03-21 02:25:56 +01:00
Michael Adam
797b26ad3f libsmbconf: rename smbconf_close() to smbconf_shutdown().
Michael
2008-03-21 02:25:56 +01:00
Michael Adam
d7bd9bb8aa libsmbconf: rename smbconf_open() to smbconf_init().
That's more appropriate.

Michael
2008-03-21 02:25:56 +01:00
Michael Adam
097af0309d libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael
2008-03-17 18:03:02 +01:00
Günther Deschner
1bbbebb776 Give a better error message why NetServerSetInfo() may fail in the gui.
Guenther
2008-03-05 15:23:00 +01:00
Günther Deschner
5911529205 Fix rpccli_srvsvc_NetSrvSetInfo call in libnetapi.
Guenther
2008-03-05 09:54:12 +01:00
Günther Deschner
4ca3392851 Cosmetics and error string reporting for libnetapi.
Guenther
2008-01-18 02:55:10 +01:00
Michael Adam
c5a7d421c5 Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael
2008-01-16 17:10:02 +01:00
Michael Adam
c2a9346faa 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
2008-01-13 02:14:34 +01:00
Michael Adam
a559533c0c Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
Now all functions are converted to the consistent naming scheme.

Michael
2008-01-03 14:17:49 +01:00
Volker Lendecke
72dc717108 Fix the build 2007-12-25 11:38:26 +01:00
Günther Deschner
c255654c68 Keep libnetapi_NetX calls static for now.
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
15c2bc15f2 Implement NetServerSetInfo level 1005 in local mode with smbconf registry.
Guenther
2007-12-21 15:29:11 +01:00
Günther Deschner
1cad549f54 Add NetServerGetInfo and NetServerSetInfo (for level 1005).
Guenther
2007-12-21 15:29:11 +01:00