1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

844 Commits

Author SHA1 Message Date
Michael Adam
0ba819dd21 loadparm: add parameter allow_registry_shares to lp_load_ex().
This allows for registry shares to be activated, i.e. loaded into
the services array at lp_load() time.

Michael
(This used to be commit b3233ecefd5df745ba7e10511f9ab36064036b10)
2008-05-15 02:42:41 +02:00
Michael Adam
86766b5220 loadparm: add a function process_registry_shares()
This loads the shares defined in registry into the services array.

Michael
(This used to be commit b3a90b72517c2e25d972796908aec4d2b85a030e)
2008-05-15 02:42:40 +02:00
Michael Adam
8cb4461044 loadparm: refactor processing of service out of process_registry_globals()
into new function process_registry_service().

Michael
(This used to be commit 2986e5174e69527465ae7ef8e108110416752b56)
2008-05-15 02:42:40 +02:00
Michael Adam
18b385ccef loadparm: refactor initalization of registry config out into lp_smbconf_ctx().
Michael
(This used to be commit 83cd9f74d57c462ad5c8956b3ce3c81bea429b67)
2008-05-15 02:42:40 +02:00
Michael Adam
1e161b8c81 loadparm: Fix activation of registry globals in lp_load_*.
This completes bba04a8fba6fd5cf62578733cfdabea590e8ff51:
The reverted logic has to be put into the callers
lp_load() and lp_load_initial_only() of lp_load_ex(), too.
Silly bug.

Michael
(This used to be commit c1f300c76e882f2d108596aa3dbc211d545c665a)
2008-05-10 00:15:00 +02:00
Michael Adam
fb9232c0a9 libsmbconf: rewrite API to use smbconf_service struct
instead of lists of strings and counters directly...

Michael
(This used to be commit 17415e2dc457ce41793a7e28e71f72c538c19c61)
2008-04-23 01:43:31 +02:00
Michael Adam
00210d773b loadparm: reformat - fix whitespace/tab
Michael
(This used to be commit 3acc0d84dc8f29b67ddaa1124224a93cb43b07ad)
2008-04-21 00:21:23 +02:00
Michael Adam
4244655e5b loadparm: rename bNoIncludes to bAllowIncludeRegistry (inverting logic)
This is what that variable controls now...

Michael
(This used to be commit bba04a8fba6fd5cf62578733cfdabea590e8ff51)
2008-04-21 00:21:23 +02:00
Michael Adam
318c983d82 loadparm: make lo_load_initial() only skip registry include.
This is only to be able to set everything properly for registry
before reading registry includes.

This fixes "make test" as non-root user in a directory, where
root-daemons have already created a messaging.tdb in the compiled
in lockdir...

Michael
(This used to be commit 1bb28bc1d8e83d174cd171e9d96f22ac524187c3)
2008-04-21 00:21:23 +02:00
Stefan Metzmacher
49bf9d35cd loadparm: make it possible to just load the config without following "include =" statements
metze
(This used to be commit 6b5c76bf1e880ec60d6b044c58115940549049e5)
2008-04-18 14:43:07 +02:00
Michael Adam
2e1e83b4c0 loadparm: reactivate special semantics of "include = registry" for now.
This includes the configuration stored in HKLM/Software/Samba/smbconf .

Michael
(This used to be commit 42c7fb4ddfab9ff7592593533099ae872c1edca7)
2008-04-17 18:39:00 +02:00
Michael Adam
b7bb61eff0 loadparm: remove pfunc parameter from process_registry_globals().
Use do_parameter() directly.

Michael
(This used to be commit 59b81bfd0abecb190d0c49e62581b26f10b96829)
2008-04-15 22:45:38 +02:00
Michael Adam
9fd9060e53 loadparm: use the new smbconf_init() dispatcher for loading registry config.
Michael
(This used to be commit 78afb30f8073c3804dfa0cecadf973d5af5dd612)
2008-04-13 20:04:44 +02:00
Björn Jacke
67be6b3af7 fix some extrasemi compile warnings
(This used to be commit cbdb79b7a1044945e515a294f487e4c1a9c91be5)
2008-04-10 08:55:57 +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 fd43a4a1e05a2d259dc75bdcb4c0a3d9d8b41739)
2008-04-10 01:29:02 +02:00
Michael Adam
2b84aea424 loadparm: add userdata parameter to do_section() and do_parameter().
The userdata is currently unused. It can be used in the future for
passing a context like in samba4 code.

Michael
(This used to be commit 31b31171bd88c41443268d3300c492e2347b9e73)
2008-03-26 14:55:05 +01: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
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
153ed797e6 libsmbconf: change the API to always take the smbconf_ctx parameter first.
..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)
2008-03-21 02:25:55 +01:00
Michael Adam
7621b4c3d8 libsmbconf: change smbconf_get_seqnum() to smbconf_changed().
The former seqnum is hidden inside a struct smbconf_csn.
And the get_seqnum is united with a changed function that
stores the seqnum inside the given csn.

Michael
(This used to be commit 5b6b90900a1a3eab24cb5612d78f9678a363cf73)
2008-03-21 02:25:55 +01:00
Michael Adam
f18722f889 loadparm: reenable checking files for updates while in registry configuration.
This is necessary now that includes (to files) are enabled from registry.

Michael
(This used to be commit 7dc64d1021e0b8f3339f811c8c144f7013a649a8)
2008-03-20 15:01:52 +01:00
Michael Adam
78d37365d4 loadparm: remove unneeded include.
libnet.h unneeded after separation of libsmbconf from libnet.

Michael
(This used to be commit 5c3f14e02fa7baf11d9a6531f2de3e6b16d843b0)
2008-03-20 15:01:52 +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
Michael Adam
646f3b6fec loadparm: add a debug message.
Michael
(This used to be commit ce943aeb581027daf813528481b44177d391b61d)
2008-03-12 02:12:34 +01:00
Michael Adam
7af7afc594 loadparm: remove services read from smb.conf when starting over for config backend registry.
Michael
(This used to be commit b942ff6b7f0be4898e05525558b354533dea312b)
2008-03-12 02:12:34 +01:00
Michael Adam
90fd5082a2 loadparm: add convenience wrapper lp_kill_all_services()
Michael
(This used to be commit 32bfd131e33d06be9dfaef02b57f5401d2bc7639)
2008-03-12 02:12:34 +01:00
Michael Adam
a3eae3039d loadparm: add a comment
Michael
(This used to be commit 05eda1252572f310499b28123d0f9e4211b7d54c)
2008-03-12 02:12:34 +01:00
Michael Adam
e14e348d06 loadparm: fix a comment typo.
Michael
(This used to be commit 0a619d4dc476c945130fe47126d98cd47b39c34d)
2008-03-12 02:12:33 +01:00
Michael Adam
62c9c6be22 loadparm: add utility function to check for config backend file.
Michael
(This used to be commit 288495ec1a9b0c37bb3f98043f8f8dd946072bac)
2008-03-12 02:12:33 +01:00
Michael Adam
4f739abea5 loadparm: use a function to check for the registry config backend.
Michael
(This used to be commit 4ac52a5a1dfe8f4f22e960db2e4ca99f9e262427)
2008-03-12 02:12:33 +01:00
Michael Adam
9fa02847b7 loadparm: fix init_globals() to re-init all options event when called 2nd time.
Up to the globals had only been fully reset when init_globals() was called
for the first time. But a full restart is needed for use with
"config backend = registry". (And should be with "config file = ...", but
in this case the restart is outsourced to the daemons.) This left
some options (like e.g. "realm") set to values that were set in smb.conf
before the occurence of "config backend = registry".

Now this misbehaviour is fixed with this change.

Michael
(This used to be commit f12259d9c4c34b99f5b655cab4b210159cb0e188)
2008-03-10 17:22:41 +01:00
Michael Adam
080fedd25e loadparm: replace typedef struct {} global/service by struct global/struct service.
Michael
(This used to be commit ab70e781b2d4cc7f8a7f6cf95825f8412d9be2ca)
2008-03-10 17:22:40 +01:00
Michael Adam
ffb45fd8f8 loadparm: fix whitespaces in global and service parameter structs.
Michael
(This used to be commit 10ab0681e60e3b91958639a2b0ad359440076c4a)
2008-03-10 17:22:40 +01:00
Michael Adam
b99ca19040 loadparm: fix spacing in parm_table (training spaces and empty lines).
Michael
(This used to be commit 91aab823fc6ec4c38e3461aae57bec0c6a567150)
2008-03-10 17:22:40 +01:00
Michael Adam
d4c24fff32 loadparm: Reformat the parm table to use named initializers.
This makes each entry in the parm table much more comprehensible
at first glance (to me). On the other hand, roughly 9 lines are
used instead of one for each entry which makes the overall list
less clearly laid out, one might argue. But we have 400+ lines
of parameter descriptions anyways...

Michael
(This used to be commit 869a17f1a9ba45d30211c230673c6f4482876b29)
2008-03-10 17:22:40 +01:00
Derrell Lipman
914cd3e483 Eliminate global variable in_client and a plethora of extern declarations.
Derrell
(This used to be commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
2008-03-06 10:41:42 -05:00
Günther Deschner
ddd8bdedcb Fix lp_load with an empty registry and "config backend = registry". Michael, please check.
Guenther
(This used to be commit d9f4060c660da0ad671e061b123df71d109d51b9)
2008-03-06 09:52:06 +01:00
Andreas Schneider
1751b533f0 Rename the 'hidden' variable to 'administrative share'.
(This used to be commit eff3d3bad5a8860b99375cc0be9dc24f3679e416)
2008-02-29 13:08:04 +01:00
Jeremy Allison
22ac09c08c Remove my change
(This used to be commit 7bf4216644187549697caace4a2a48803b57fa5a)
2008-02-28 02:13:48 -08:00
Jeremy Allison
9d37794a6c Fix debug %lu message.
Jeremy.
(This used to be commit 644a3be37a6760c9e25ac1b286c7c225096e8b0d)
2008-02-28 02:07:06 -08:00
Andreas Schneider
d85c517b45 Add variable to define if a share should be hidden.
If you create a share on a Windows machine called foo$ then this share is
of the type STYPE_DISKTREE. So it is possible to administrate this kind of
share. Tested on Windows NT and 2003.

In samba we assume that if a share with a $ at the end must be of the type
STYPE_DISKTREE_HIDDEN. This is wrong, so we need a variable in the config
to define if the share should be hidden or not.
(This used to be commit a3da677bf0faed56e6731ee96708a7847a61d118)
2008-02-26 21:34:05 +01:00
Volker Lendecke
3176392878 Fix some warnings
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0aee265a3e4d8b7552610f4b9a105434d)
2008-02-25 16:09:26 +01:00
Michael Adam
6d963a807d Use linbet_conf code in loadparm's registry handling.
This replaces the original hand-written tdb code, now that the
linking dependencies have been significantly reduced.

Michael
(This used to be commit d08a3a195718725228bbafa61fd4f0be8aafb43f)
2008-02-19 09:09:05 +01:00
Michael Adam
9af84dd382 Rename registry_init_regdb() to registry_init_smbconf().
That's what it actually is.

Michael
(This used to be commit 9d3c27f55726dbdce41fcf71c8bc1a7829340268)
2008-02-15 16:23:10 +01:00
Michael Adam
7183e5811e Add support for LDAP debug output in Samba log file.
Logging of the ldap libraries appears with a [LDAP] prefix
inside the samba logs. This is controlled by two new parameters:

* "ldap debug level" sets the debug level of the ldap libraries.
  It is the bit-field as understood by the openldap server.

* "ldap debug threshold" is the samba debug level at which ldap
  logging appears inside the samba logs.

This probably needs some configure tests since it makes
use of the LBER_OPT_LOG_PRINT_FN option to redirect the
debug output of the ldap libraries.

Michael
(This used to be commit 15c25990bd0bfa3145ab3c26d2bdda72993d005c)
2008-02-06 18:16:22 +01:00
Volker Lendecke
b361956942 str_list_free is not needed anymore
(This used to be commit feddc1447d585fd108d22a36bccc576fa81197ef)
2008-02-04 21:05:41 +01:00
Volker Lendecke
2762b9a975 Always pass a TALLOC_CTX to str_list_make and str_list_copy
(This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
2008-02-04 20:57:49 +01:00
Volker Lendecke
587cf54c61 strtok -> strtok_r
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
2008-01-23 15:08:04 +01:00
Michael Adam
536bff4229 Do an explicit init_globals() when restarting for "config backend = registry".
Michael
(This used to be commit 487c43f9284598a3c60b06fc60e5c50844e11b87)
2008-01-20 03:54:57 +01:00