summaryrefslogtreecommitdiff
path: root/source3/param
Commit message (Collapse)AuthorAgeFilesLines
* loadparm3: Add lp_wi_scan_global_parametrics()Volker Lendecke2015-08-241-0/+73
| | | | | | | | | | | This routine takes a regex and goes through all parametric parameters in [global], matching the regex. It can easily be extended to also look at shares, but right now it will only be used to list all idmap config domain names. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* param: rename szIdmapBackend -> idmap_backendMichael Adam2015-07-311-2/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename szInclude -> includeMichael Adam2015-07-311-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename szCopy -> copyMichael Adam2015-07-311-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename bAvailable -> availableMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: turn 'cups encrypt' into a generated functionMichael Adam2015-07-311-23/+0
| | | | | | | | Move the special stuff of the hand-written lp_cups_encrypt() function into a handler that is called once at load time. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename CupsEncrypt -> cups_encryptMichael Adam2015-07-311-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: make 'winbind max domain connections' a generated function.Michael Adam2015-07-311-5/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename winbindMaxDomainConnections -> _winbind_max_domain_connectionsMichael Adam2015-07-311-2/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: turn 'wide links' into a generated funcionMichael Adam2015-07-311-8/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename bWidelinks -> wide_linksMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: turn 'smb2 max credits' into generated optionMichael Adam2015-07-311-8/+1
| | | | | | | | | This is achieved by moving the special treatment from the lp_smb2_max_credits() function in the the special handler that is called only once upon lp_load(). Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: treat negative values of 'smb2 max credits' as default.Michael Adam2015-07-311-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: turn 'printcap name' into a generated functionMichael Adam2015-07-311-3/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename szPrintcapName -> printcap_nameMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: turn 'min receivefile size' into a generated functionMichael Adam2015-07-311-2/+4
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename iminreceivefile -> min_receivefile_sizeMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: turn 'preferred master' into a generated functionMichael Adam2015-07-311-2/+4
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename iPreferredMaster -> _preferred_masterMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: use lp[cfg]_max_print_jobs() in lp[cfg]_maxprintjobs()Michael Adam2015-07-311-1/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename variable of 'max print jobs' to default.Michael Adam2015-07-311-2/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename szLdapMachineSuffix -> _ldap_machine_suffixMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename szLdapIdmapSuffix -> _ldap_sz_idmap_suffixMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename szLdapUserSuffix -> _ldap_user_suffixMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: rename szLdapGroupSuffix -> _ldap_group_suffixMichael Adam2015-07-311-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib/tls: Change default supported TLS versions.Andrew Bartlett2015-07-201-1/+1
| | | | | | | | | The new default is to disable SSLv3, as this is no longer considered secure after CVE-2014-3566. Newer GnuTLS versions already disable SSLv3. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz>
* lib/tls: Add new 'tls priority' optionAndrew Bartlett2015-07-201-0/+1
| | | | | | | | | | This adds a new option to the smb.conf to allow administrators to disable TLS protocols in GnuTLS without changing the code. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11076 Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* param: Make "kernel change notify" globalVolker Lendecke2015-07-071-1/+1
| | | | | | | | With a central notifyd, we can't do this per share anymore. Notifyd will only look at absolute paths, not shares. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: Make "change notify" globalVolker Lendecke2015-07-071-1/+2
| | | | | | | | With a central notifyd, we can't do this per share anymore. Notifyd will only look at absolute paths, not shares. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3-mdssvc: add new option 'spotlight'Ralph Boehme2015-07-071-0/+1
| | | | | | | | | Per share option: it reflects whether a share is indexed by Tracker or not. The global switch that controls whether Spotlight is enabled or not, are the mdsvc RPC switches. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:param/loadparm fix testparm --show-all-parametersChristian Ambach2015-06-091-1/+1
| | | | | | | | | | | | it didn't know about the new types of config parameters BUG: https://bugzilla.samba.org/show_bug.cgi?id=11170 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jun 9 11:49:18 CEST 2015 on sn-devel-104
* smbd: Offer SMB 3.1.1 by default.Stefan Metzmacher2015-05-081-1/+1
| | | | | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri May 8 15:49:32 CEST 2015 on sn-devel-104
* smbd: offer SMB 3.0.2 by default.Michael Adam2015-05-081-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* param: rename FLAG_HIDE to FLAG_SYNONYMMichael Adam2015-05-021-5/+5
| | | | | | | This is what it is used for - detect synonyms. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* param: remove swat specific flags.Michael Adam2015-05-021-6/+2
| | | | | | | | | | | | The flags FLAG_BASIC, FLAG_SHARE, FLAG_PRINT, FLAG_GLOBAL FLAG_WIZARD, FLAG_ADVANCED, FLAG_DEVELOPER, FLAG_META were only used in swat. Remove these, since swat does no longer exist. Flags FLAG_DEPRECATED, FLAG_DEFAULT, FLAG_HIDE are used and hence kept. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* param: Remove unused P_SEP and P_SEPARATORMichael Adam2015-05-021-3/+1
| | | | | | | This was only used in swat. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: remove unused function lp_parameter_is_canonical()Michael Adam2015-05-021-16/+0
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* Change all uses of uint32/16/8 in proto.h to uint32_t/16_t/8_t.Richard Sharpe2015-04-292-5/+5
| | | | | Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:param: remove arg save_defaults from lp_load_with_registry_shares()Michael Adam2015-04-222-6/+3
| | | | | | | | | This is only used in command line contexts, especially for testparm which relies on safe defaults. The only changed use is in sharesec, but it does not harm to also safe the defaults there. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: remove arg initialize_globals from lp_load_with_registry_shares()Michael Adam2015-04-222-5/+3
| | | | | | | | | This is only ever called in client context, and only called once. So there is no point at all in requesting reinit_globals. Set it to false. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: rename arg initialize_globals->reinit_globals in lp_load()Michael Adam2015-04-221-5/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: rename arg initialize_globals->reinit_globals in lp_load_ex()Michael Adam2015-04-221-5/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: fix a commentMichael Adam2015-04-221-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: use GLOBAL_SECTION_SNUM in lp_enforce_ad_dc_settings()Michael Adam2015-04-221-11/+12
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: factor lp_enforce_ad_dc_settings() out of lp_load_ex()Michael Adam2015-04-221-13/+16
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: in lp_load_initial_only(), make sure to save defaults.Michael Adam2015-04-221-1/+1
| | | | | | | | | | This is the initial loading of the config in the daemons (and some tools). So we should save the defaults here. This should especially take into account some dynamic defaults like log file and maybe some changed values handed in via the command line. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: make lp_load() staticMichael Adam2015-04-221-5/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: use lp_load_no_reinit() in lp_load_for_s4_ctx()Michael Adam2015-04-221-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: add lp_load_no_reinit()Michael Adam2015-04-221-0/+15
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* s3:param: remove "add_ipc" parameter from lp_load_with_registry_shares().Michael Adam2015-04-222-3/+1
| | | | | | | | This is not called from the server (which loads registry shares lazily), so add_ipc is always false... Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>