summaryrefslogtreecommitdiffstats
path: root/source/param/loadparm.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Now it's working, back port the aync fix for parsing large cups ↵Karolin Seeger2008-11-171-1/+1
| | | | | | printer lists." This reverts commit f5f7ed4041ef986a5ce208d59bbf39d34373ce71.
* Now it's working, back port the aync fix for parsing large cups printer lists.Jeremy Allison2008-10-151-1/+1
| | | | | Jeremy. (cherry picked from commit 48ee5a66d18b805d03f93c85e98a41374d82cfb9)
* Fix bug #5729. Explicitly allow "-valid".Jeremy Allison2008-09-081-1/+1
| | | | | Jeremy (cherry picked from commit 96b5e691149c449253e4875a743c8603b3298c2b)
* Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison2008-08-131-0/+1
| | | | | | | | | | Here is a patch to allow many subsystems to be re-initialized. The only functional change I made was to remove the null context tracking, as the memory allocated here is designed to be left for the complete lifetime of the program. Freeing this early (when all smb contexts are destroyed) could crash other users of talloc. Jeremy. (cherry picked from commit 4779f1efccc8364fd8b3ba446aa96ba0bddec689)
* Fix swat. Bug #5613.Jeremy Allison2008-07-161-9/+0
| | | | | Jeremy (cherry picked from commit 1036bd6f8adcff316d2d86201b1a7097b4b9fe0c)
* Always set "registry shares = yes" for "include = registry"Volker Lendecke2008-07-161-1/+5
| | | | | | | | | | | | | This fixes the case where "include = registry" is set in the smb.conf text file and *only* shares (no [global] settings) are present in the registry. Michael, please check! Thanks, Volker (cherry picked from commit 6c80362e291d8c5e748b987a583e8e32acc36354) (cherry picked from commit dacd0f90f3706db6ffab0cd7662d22eb40811e05)
* loadparm: fix process_registry_shares() when there is only [global] in registry.Michael Adam2008-07-161-0/+2
| | | | | | | | | This fixes testparm printing "Error loading services." when there is only the global section in registry and no other service definition. Michael (cherry picked from commit 28d197220038b9a47af177b88a8587f865e45de5) (cherry picked from commit efb9a844e74b91d63fda98fa9cc12136bf1f172a)
* loadarm: fix testparm with "config backend = registry".Michael Adam2008-07-161-2/+3
| | | | | | | | | | | | Set the iServiceIndex to "-1" for starup with either config backend (originally only for text backend). Otherwise, process_registry_shares() will fail. Currently, the only user of lp_load_with_registry_shares() is testparm. Michael (cherry picked from commit 5e2b925367241c41793b2eb7a628e9fc9f3ac8ff) (cherry picked from commit 6fd007905d4ba09309735a14635502008e082cb6)
* loadparm: add funcion lp_load_with_registry_shares().Michael Adam2008-07-161-0/+15
| | | | | | | | | | This is like lp_load(), except that it will load the registry shares into the services aarray when registry shares are activated. Michael (cherry picked from commit b387c614ba8d1d3960f6917f03f0fd433cf2b2ee) (cherry picked from commit dc04efa42104100e677bccc307726106d8ca4b31)
* loadparm: add call to do_section() to process_registry_service().Michael Adam2008-07-161-0/+4
| | | | | | Michael (cherry picked from commit e1b76cd5d646bb9083cfca0d15a84183cad72882) (cherry picked from commit 661960e2bd73a6f773531608a635e17be28afeba)
* loadparm: add parameter allow_registry_shares to lp_load_ex().Michael Adam2008-07-161-3/+10
| | | | | | | | | This allows for registry shares to be activated, i.e. loaded into the services array at lp_load() time. Michael (cherry picked from commit b3233ecefd5df745ba7e10511f9ab36064036b10) (cherry picked from commit 02fa674dd62ad400502046fbe9e05a1578b4deab)
* loadparm: add a function process_registry_shares()Michael Adam2008-07-161-0/+37
| | | | | | | | This loads the shares defined in registry into the services array. Michael (cherry picked from commit b3a90b72517c2e25d972796908aec4d2b85a030e) (cherry picked from commit fc60bc9389e5a0ca278b3622e96aed1626c4882e)
* loadparm: refactor processing of service out of process_registry_globals()Michael Adam2008-07-161-8/+23
| | | | | | | | into new function process_registry_service(). Michael (cherry picked from commit 2986e5174e69527465ae7ef8e108110416752b56) (cherry picked from commit e7362a769c4ad7b6715c87dc8ba77ffdd38a4824)
* loadparm: refactor initalization of registry config out into lp_smbconf_ctx().Michael Adam2008-07-161-13/+22
| | | | | | Michael (cherry picked from commit 83cd9f74d57c462ad5c8956b3ce3c81bea429b67) (cherry picked from commit 7f38c280c821cc7950036a709e01383ab94ab55e)
* Patch from SATOH Fumiyasu <fumiyas@osstech.co.jp> for bug #5202. Re-activate ↵Jeremy Allison2008-07-061-1/+1
| | | | | | | | "acl group control" parameter and make it only apply to owning group. Also added man page fix. Jeremy. (cherry picked from commit 93e91e5364a7f131d988648cf5fe822a9bd68734)
* Add ldap connection timeout for OpenLDAP and Netscape LDAP libs. This can be ↵Björn Jacke2008-06-041-1/+13
| | | | | | controlled via the ldap connection timeout parameter. This fixes fallbacks to secondary LDAP servers in multi LDAP server setups like in #4544 (cherry picked from commit 8e59a2fedc940b081222b0e8f90fe0c5a0981c06)
* loadparm: Fix activation of registry globals in lp_load_*.Michael Adam2008-05-111-2/+2
| | | | | | | | | | 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 (cherry picked from commit 8bab6d651f1cd0efe5aa1e7808b3f043602a3dfa)
* fix some extrasemi compile warningsBjörn Jacke2008-05-051-2/+2
| | | | (cherry picked from parts of cbdb79b7a1044945e515a294f487e4c1a9c91be5)
* loadparm: reformat - fix whitespace/tabMichael Adam2008-05-051-1/+1
| | | | | Michael (cherry picked from commit 3acc0d84dc8f29b67ddaa1124224a93cb43b07ad)
* libsmbconf: rewrite API to use smbconf_service structMichael Adam2008-04-231-7/+5
| | | | | | | instead of lists of strings and counters directly... Michael (cherry picked from commit 17415e2dc457ce41793a7e28e71f72c538c19c61)
* loadparm: rename bNoIncludes to bAllowIncludeRegistry (inverting logic)Michael Adam2008-04-211-6/+7
| | | | | | | This is what that variable controls now... Michael (cherry picked from commit bba04a8fba6fd5cf62578733cfdabea590e8ff51)
* loadparm: make lo_load_initial() only skip registry include.Michael Adam2008-04-211-4/+3
| | | | | | | | | | | | 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 (cherry picked from commit 1bb28bc1d8e83d174cd171e9d96f22ac524187c3)
* loadparm: use the new smbconf_init() dispatcher for loading registry config.Michael Adam2008-04-211-2/+2
| | | | | Michael (cherry picked from commit 78afb30f8073c3804dfa0cecadf973d5af5dd612)
* loadparm: make it possible to just load the config without following ↵Stefan Metzmacher2008-04-211-10/+43
| | | | | | | "include =" statements metze (cherry picked from commit 6b5c76bf1e880ec60d6b044c58115940549049e5)
* loadparm: reactivate special semantics of "include = registry" for now.Michael Adam2008-04-211-0/+18
| | | | | | | This includes the configuration stored in HKLM/Software/Samba/smbconf . Michael (cherry picked from commit 42c7fb4ddfab9ff7592593533099ae872c1edca7)
* loadparm: remove pfunc parameter from process_registry_globals().Michael Adam2008-04-211-4/+5
| | | | | | | Use do_parameter() directly. Michael (cherry picked from commit 59b81bfd0abecb190d0c49e62581b26f10b96829)
* loadparm: drop debug level in map_parameter from 0 to 1Michael Adam2008-04-111-1/+1
| | | | | | | we don't want to see this all the times in tests. Michael (cherry picked from commit fd43a4a1e05a2d259dc75bdcb4c0a3d9d8b41739)
* loadparm: add userdata parameter to do_section() and do_parameter().Michael Adam2008-03-271-10/+12
| | | | | | | | The userdata is currently unused. It can be used in the future for passing a context like in samba4 code. Michael (cherry picked from commit 31b31171bd88c41443268d3300c492e2347b9e73)
* libsmbconf: add a "path" variable to the conf context.Michael Adam2008-03-271-2/+2
| | | | | | | | | | | | | | 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 (cherry picked from commit 96434d9dc7a66773e313cc128af57493dee245a1)
* libsmbconf: add backend specific init function.Michael Adam2008-03-271-2/+2
| | | | | | | | Hide generic init function taking smbconf_ops argument from public api. Michael (cherry picked from commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
* libsmbconf: rename smbconf_open() to smbconf_init().Michael Adam2008-03-271-2/+2
| | | | | | | That's more appropriate. Michael (cherry picked from commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
* libsmbconf: change the API to always take the smbconf_ctx parameter first.Michael Adam2008-03-271-1/+1
| | | | | | | | ..for consistency. Exception: the open/init function, where the smbconf_ctx is created from the given talloc context. Michael (cherry picked from commit 304dba6cb2184437f3edad065a530d03fb704036)
* libsmbconf: change smbconf_get_seqnum() to smbconf_changed().Michael Adam2008-03-271-9/+5
| | | | | | | | | 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 (cherry picked from commit 5b6b90900a1a3eab24cb5612d78f9678a363cf73)
* Eliminate global variable in_client and a plethora of extern declarations.Derrell Lipman2008-03-271-2/+23
| | | | | Derrell (cherry picked from commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
* loadparm: reenable checking files for updates while in registry configuration.Michael Adam2008-03-271-9/+0
| | | | | | | This is necessary now that includes (to files) are enabled from registry. Michael (cherry picked from commit 7dc64d1021e0b8f3339f811c8c144f7013a649a8)
* loadparm: remove unneeded include.Michael Adam2008-03-271-1/+0
| | | | | | | libnet.h unneeded after separation of libsmbconf from libnet. Michael (cherry picked from commit 5c3f14e02fa7baf11d9a6531f2de3e6b16d843b0)
* libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .Michael Adam2008-03-271-8/+8
| | | | | Michael (cherry picked from commit 097af0309d7c3e9342058ba5266667293b23c80d)
* loadparm: add a debug message.Michael Adam2008-03-171-0/+2
| | | | | Michael (cherry picked from commit ce943aeb581027daf813528481b44177d391b61d)
* loadparm: remove services read from smb.conf when starting over for config ↵Michael Adam2008-03-171-0/+1
| | | | | | | backend registry. Michael (cherry picked from commit b942ff6b7f0be4898e05525558b354533dea312b)
* loadparm: add convenience wrapper lp_kill_all_services()Michael Adam2008-03-171-0/+8
| | | | | Michael (cherry picked from commit 32bfd131e33d06be9dfaef02b57f5401d2bc7639)
* loadparm: add a commentMichael Adam2008-03-171-0/+1
| | | | | Michael (cherry picked from commit 05eda1252572f310499b28123d0f9e4211b7d54c)
* loadparm: fix a comment typo.Michael Adam2008-03-171-1/+1
| | | | | Michael (cherry picked from commit 0a619d4dc476c945130fe47126d98cd47b39c34d)
* loadparm: add utility function to check for config backend file.Michael Adam2008-03-171-1/+9
| | | | | Michael (cherry picked from commit 288495ec1a9b0c37bb3f98043f8f8dd946072bac)
* loadparm: use a function to check for the registry config backend.Michael Adam2008-03-171-3/+3
| | | | | Michael (cherry picked from commit 4ac52a5a1dfe8f4f22e960db2e4ca99f9e262427)
* loadparm: fix init_globals() to re-init all options event when called 2nd time.Michael Adam2008-03-171-12/+22
| | | | | | | | | | | | | | 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 (cherry picked from commit f12259d9c4c34b99f5b655cab4b210159cb0e188)
* loadparm: replace typedef struct {} global/service by struct global/struct ↵Michael Adam2008-03-171-29/+29
| | | | | | | service. Michael (cherry picked from commit ab70e781b2d4cc7f8a7f6cf95825f8412d9be2ca)
* loadparm: fix whitespaces in global and service parameter structs.Michael Adam2008-03-171-7/+6
| | | | | Michael (cherry picked from commit 10ab0681e60e3b91958639a2b0ad359440076c4a)
* loadparm: fix spacing in parm_table (training spaces and empty lines).Michael Adam2008-03-171-40/+19
| | | | | Michael (cherry picked from commit 91aab823fc6ec4c38e3461aae57bec0c6a567150)
* loadparm: Reformat the parm table to use named initializers.Michael Adam2008-03-171-412/+3524
| | | | | | | | | | | 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 (cherry picked from commit 869a17f1a9ba45d30211c230673c6f4482876b29)
* Fix lp_load with an empty registry and "config backend = registry". Michael, ↵Günther Deschner2008-03-061-0/+7
| | | | | | | please check. Guenther (cherry picked from commit d9f4060c660da0ad671e061b123df71d109d51b9)