summaryrefslogtreecommitdiffstats
path: root/source/param/loadparm.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #5729. Explicitly allow "-valid".Jeremy Allison2008-09-031-1/+1
| | | | Jeremy
* Increase the default positive idmap cache time to a weekVolker Lendecke2008-08-261-1/+1
|
* loadparm: idmap backend is not depracated any longer.Karolin Seeger2008-08-221-1/+1
| | | | Karolin
* Here is a re-working of the winbinddJeremy Allison2008-08-201-0/+12
| | | | | | | | | | | | | | | | | | | | reconnect code to cope with rebooting a DC. This replaces the code I asked Volker to revert. The logic is pretty simple. It adds a new parameter, "winbind reconnect delay", set to 30 seconds by default, which determines how long to wait between connection attempts. To avoid overwhelming the box with DC-probe forked children, the code now keeps track of the DC probe child per winbindd_domain struct and only starts a new one if the existing one has died. I also added a little logic to make sure the dc probe child always sends a message whatever the reason for exit so we will always reschedule another connect attempt. Also added documentation. Jeremy.
* Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison2008-08-121-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.
* idmap rewriteVolker Lendecke2008-08-121-14/+4
|
* loadparm: add two parameters "init logon delay hosts" and "init logon delay"Michael Adam2008-08-091-0/+24
| | | | | | | | | | | | | | | | "init logon delays hosts" takes a list of hosts names or addresses or networks for which the initial SAMLOGON reply should be delayed (so other DCs get preferred by XP workstations if there are any). This option takes the same type of list as "hosts allow" does. "init logon delay" allows one to configure the delay for the hosts configured for delayed initial samlogon with "init logon delayed hosts". The value is interpreted as milliseconds. The default value is 100. This commit only introduces the parameters. They will be activated in a subsequent commit. Michael
* testparm: Display warning if invalid values are used.Michael Adam2008-07-301-1/+3
| | | | | This one came up while using "csc policy = disabled" instead of "disable"... ;-)
* Sequel to c10aad9f13: Ignore whitespaces in parametric optionsVolker Lendecke2008-07-161-24/+7
| | | | | | | | | | | | It's a bit difficult to explain why idmap config backend:FOO = rid should work while idmap config backend : FOO = rid should not. And I doubt we will ever see domain names with whitespaces...
* Tiny logic simplification: Remove an indentation by using an early return;Volker Lendecke2008-07-161-46/+56
|
* Remove a silly "typedef struct _param_opt_struct param_opt_struct"Volker Lendecke2008-07-161-26/+28
|
* Fix swat. Bug #5613.Jeremy Allison2008-07-151-9/+0
| | | | Jeremy
* Revert "Slightly increase the default idmap cache time"Volker Lendecke2008-07-111-1/+1
| | | | This reverts commit 448836d44d0468a74b962ba3c0b7d51de236374f.
* Slightly increase the default idmap cache timeVolker Lendecke2008-07-031-1/+1
|
* Patch from SATOH Fumiyasu <fumiyas@osstech.co.jp> for bug #5202. Re-activate ↵Jeremy Allison2008-07-031-1/+1
| | | | | | | "acl group control" parameter and make it only apply to owning group. Also added man page fix. Jeremy.
* Fix the buildVolker Lendecke2008-06-251-1/+1
|
* make parametic options case insensitiveAndrew Tridgell2008-06-251-1/+1
| | | | | This is needed as some options are uppercased internally in Samba, such as the idmap config option Without this change it is not possible to set these options via net conf which lowercases options
* loadparm: use the return value of the special handlers in lp_load().Michael Adam2008-06-191-2/+2
| | | | | | Up to now, the bool return value was silently ignored. Michael
* loadparm: don't treat a missing include file as an error in handle_include().Michael Adam2008-06-191-1/+1
| | | | Michael
* Always set "registry shares = yes" for "include = registry"Volker Lendecke2008-06-031-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
* Add ldap connection timeout for OpenLDAP and Netscape LDAP libs. This can be ↵Björn Jacke2008-06-031-1/+13
| | | | controlled via the ldap connection timeout parameter. This fixes fallbacks to secondary LDAP servers in multi LDAP server setups like in #4544
* loadparm: fix process_registry_shares() when there is only [global] in registry.Michael Adam2008-05-271-0/+2
| | | | | | | This fixes testparm printing "Error loading services." when there is only the global section in registry and no other service definition. Michael
* loadarm: fix testparm with "config backend = registry".Michael Adam2008-05-261-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
* loadparm: add funcion lp_load_with_registry_shares().Michael Adam2008-05-151-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
* loadparm: add call to do_section() to process_registry_service().Michael Adam2008-05-151-0/+4
| | | | Michael
* loadparm: add parameter allow_registry_shares to lp_load_ex().Michael Adam2008-05-151-3/+10
| | | | | | | This allows for registry shares to be activated, i.e. loaded into the services array at lp_load() time. Michael
* loadparm: add a function process_registry_shares()Michael Adam2008-05-151-0/+37
| | | | | | This loads the shares defined in registry into the services array. Michael
* loadparm: refactor processing of service out of process_registry_globals()Michael Adam2008-05-151-8/+23
| | | | | | into new function process_registry_service(). Michael
* loadparm: refactor initalization of registry config out into lp_smbconf_ctx().Michael Adam2008-05-151-13/+22
| | | | Michael
* loadparm: Fix activation of registry globals in lp_load_*.Michael Adam2008-05-101-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
* libsmbconf: rewrite API to use smbconf_service structMichael Adam2008-04-231-7/+5
| | | | | | instead of lists of strings and counters directly... Michael
* loadparm: reformat - fix whitespace/tabMichael Adam2008-04-211-1/+1
| | | | Michael
* loadparm: rename bNoIncludes to bAllowIncludeRegistry (inverting logic)Michael Adam2008-04-211-6/+7
| | | | | | This is what that variable controls now... Michael
* 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
* loadparm: make it possible to just load the config without following ↵Stefan Metzmacher2008-04-181-10/+43
| | | | | | "include =" statements metze
* loadparm: reactivate special semantics of "include = registry" for now.Michael Adam2008-04-171-0/+18
| | | | | | This includes the configuration stored in HKLM/Software/Samba/smbconf . Michael
* loadparm: remove pfunc parameter from process_registry_globals().Michael Adam2008-04-151-4/+5
| | | | | | Use do_parameter() directly. Michael
* loadparm: use the new smbconf_init() dispatcher for loading registry config.Michael Adam2008-04-131-2/+2
| | | | Michael
* fix some extrasemi compile warningsBjörn Jacke2008-04-101-2/+2
|
* loadparm: drop debug level in map_parameter from 0 to 1Michael Adam2008-04-101-1/+1
| | | | | | we don't want to see this all the times in tests. Michael
* loadparm: add userdata parameter to do_section() and do_parameter().Michael Adam2008-03-261-10/+12
| | | | | | | The userdata is currently unused. It can be used in the future for passing a context like in samba4 code. Michael
* libsmbconf: add a "path" variable to the conf context.Michael Adam2008-03-211-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
* libsmbconf: add backend specific init function.Michael Adam2008-03-211-2/+2
| | | | | | | Hide generic init function taking smbconf_ops argument from public api. Michael
* libsmbconf: rename smbconf_open() to smbconf_init().Michael Adam2008-03-211-2/+2
| | | | | | That's more appropriate. Michael
* libsmbconf: change the API to always take the smbconf_ctx parameter first.Michael Adam2008-03-211-1/+1
| | | | | | | ..for consistency. Exception: the open/init function, where the smbconf_ctx is created from the given talloc context. Michael
* libsmbconf: change smbconf_get_seqnum() to smbconf_changed().Michael Adam2008-03-211-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
* loadparm: reenable checking files for updates while in registry configuration.Michael Adam2008-03-201-9/+0
| | | | | | This is necessary now that includes (to files) are enabled from registry. Michael
* loadparm: remove unneeded include.Michael Adam2008-03-201-1/+0
| | | | | | libnet.h unneeded after separation of libsmbconf from libnet. Michael
* libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .Michael Adam2008-03-171-8/+8
| | | | Michael
* loadparm: add a debug message.Michael Adam2008-03-121-0/+2
| | | | Michael