Age | Commit message (Collapse) | Author | Files | Lines |
|
Michael
(This used to be commit 8f2c3efa679d44acc900fb90f03319e830a7dcf4)
|
|
Michael
(This used to be commit 97f9cb857532328999589062ceb0b229bcaf93a3)
|
|
Michael
(This used to be commit 74e87b977514df79e49613a0b1c5157469b3cb93)
|
|
Michael
(This used to be commit 3e81db83707e30ad46a565c9a118e7293b6cdf50)
|
|
Michael
(This used to be commit b9e72b402de412c23702715ead96c20e9b3248cc)
|
|
Michael
(This used to be commit cd17cc745a35db8ee158f59a5fff1f0f26cf9c6e)
|
|
Michael
(This used to be commit 9ef9d4c4e77523d7f3cc5fdac199559896e585bd)
|
|
Michael
(This used to be commit 1c6b9a0ac34c4a7b4e000300db8dffdbb09fe7da)
|
|
There are also smbconf contexts arount...
Michael
(This used to be commit 5171df66eb54c9819b3b40045755f5e9b2cf36c2)
|
|
Michael
(This used to be commit ab4fd03705c61114742d8438dece69b9c37c3b38)
|
|
Originally, lp_load() was used to import files to registry.
This had several bugs. Most notably, options explicitly set to
default values were silently dropped, and all parametric options
were ignored.
This new implementation reads config from the text backend and
stuffs everything verbatim in to the registry backend.
Michael
(This used to be commit e41c6650f805eaf8bb009e34468dd2d311e52858)
|
|
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)
|
|
Hide generic init function taking smbconf_ops argument
from public api.
Michael
(This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
|
|
Michael
(This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
|
|
That's more appropriate.
Michael
(This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
|
|
..for consistency. Exception: the open/init function, where the smbconf_ctx
is created from the given talloc context.
Michael
(This used to be commit 304dba6cb2184437f3edad065a530d03fb704036)
|
|
Michael
(This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)
|
|
Michael
(This used to be commit b3afc8391d40745328172ba012f0ffc166d75aa9)
|
|
It has been removed from libnet_conf_set_parameter().
Michael
(This used to be commit b5c533b06cba9a8ffd28a1fb3bc56ab248340775)
|
|
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)
|
|
Michael
(This used to be commit a4ef828102417f04af1e9823c89404e77e4fd5c1)
|
|
Michael
(This used to be commit fc9c3f39b5af55026f1e5e964857c203cf6c9316)
|
|
Michael
(This used to be commit 8d9e3e08f3cc6a1f54661d1e54a3902ad50be191)
|
|
Michael
(This used to be commit e166b886375b450534c894676ab1f64571dd46b8)
|
|
This is to hide the registry from net_conf.
Right now, it does not harm if "net conf" does not close
the registry file explicitly just before exiting.
I am working out a proper way of handling open/close
operations transparently in the libnet_conf library.
Michael
(This used to be commit 790ef789444945fbae5637f0b469665859171dcd)
|
|
This moves functionality taken away from libnet_conf_set_parameter() to the
higher level user frontend function. (Somehow I thought I had done this
already ... :-)
Michael
(This used to be commit fc0fca980f08a0af65d82784ef5a50a7b1ac0927)
|
|
Guenther
(This used to be commit a43125d9e9052fab8eb561976f45d1db4622482e)
|
|
Open state is currently tracked by a global variable
to avoid double initialization.
Later, this can possibly be replaced by a conf-context
created by an initialization function and passed around
to the other api functions.
Michael
(This used to be commit 77713e776405800ac54c692a77cd4efd153042cb)
|
|
Michael
(This used to be commit 073eeca51e46da6a687175aadbfdbb9e029532d6)
|
|
Michael
(This used to be commit d08556dbc7071933feaeec538f01ac8f6a637b1d)
|
|
Michael
(This used to be commit e00cb415d30b3e72ccfb7e5c366c95ec0f9c6247)
|
|
Michael
(This used to be commit 2075baf551ca7fc6bcee6b93f63fd7fbf75f9a50)
|
|
Michael
(This used to be commit 1575612f1936312125e7778a9a4227e444ea36cf)
|
|
Michael
(This used to be commit 6bc4ee210855dbfbee9e86b59e90b08ecb3a9df9)
|
|
Michael
(This used to be commit 3258758e5c8dfc2c681e1285cb34aaacae697a55)
|
|
Michael
(This used to be commit 2e4beee66b3672c3259b312aca3d482598731119)
|
|
Michael
(This used to be commit e8f7c07699b5b93acd81b24bca908769f0b5e8d8)
|
|
Michael
(This used to be commit 42ae33a96228e916d7d530d844be6937a80d4fea)
|
|
Michael
(This used to be commit e568f42e2146fa6510a86746581409450887ff16)
|
|
And make libnet_smbconf_setparm() return error if the share
does not already exist. Adapt net_conf_addshare to this new
situation.
Michael
(This used to be commit de349bd26db3341815f6d8f6c18a5ca1fd664dca)
|
|
Michael
(This used to be commit a1bb47695a7fb21af239aa9d02537d3de2fea325)
|
|
More precisely, only import_process_service() is changed.
This removes all references to registry code from net_conf.c.
net_conf_import() is currently -- like net_conf_addshare() -- also
considered a high-level add-on, not an API function.
Michael
(This used to be commit b4dca117c09ddb9c8e7eea25c6cde3fbef8c692b)
|
|
Also exit on error if the share already exists.
net_conf_addshare() is considered a high level utility function.
It should not be an libnet_conf API function in itself since it is
kind of arbitrary.
Michael
(This used to be commit af5218f1505321236be52df10ebfe8f42b99573d)
|
|
and move it to the api section of libnet_conf.c
Michael
(This used to be commit 9b5d8f4d95ebfd47831906019e11227aecc83aa1)
|
|
Michael
(This used to be commit 332be113a775adce8108a8003682019ae7f5bc21)
|
|
Replacing them buy DEBUG statements and filling in
d_fprintfs in callers in net_conf.c.
Michael
(This used to be commit 1f0122d8d4ec0f67eaedd5df7383c1b45f37290f)
|
|
Also make libnet.c:libnet_smbconf_format_registry_value() static.
(There are nor more external callers.)
Michael
(This used to be commit ac7baa17e89d2363b5b3db85de9c842b596dea25)
|
|
This leaves only output logic in net_conf_list().
Michael
(This used to be commit 95d9981d59fe69ee1ed98f21475bd1ba72930c1b)
|
|
Michael
(This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
|
|
And don't return count-1 but count.
Michael
(This used to be commit b7cb9b78231512dc4a88c307048d7fb5334fa319)
|