summaryrefslogtreecommitdiff
path: root/lib/param/param.h
AgeCommit message (Collapse)AuthorFilesLines
2025-08-22param: Fix whitespaceVolker Lendecke1-8/+8
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-04-18docs-xml/smbdotconf: change 'smb ports' into a synonym for 'server smb ↵Stefan Metzmacher1-1/+0
transport' Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2025-04-18docs-xml/smbdotconf: add 'client smb transports' optionStefan Metzmacher1-0/+1
This will replace the use of 'smb ports' for source4 clients. In future it will be used for all smb client connections and it will allow to add other transports as 'quic' or 'smbdirect. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2025-01-13docs-xml/smbdotconf: add "client use krb5 netlogon" optionStefan Metzmacher1-0/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
2023-12-15VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.hStefan Metzmacher1-0/+1
We also prodive a samba_copyright_string() helper similar to samba_version_string(). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15377 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bjacke@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Dec 15 10:44:42 UTC 2023 on atb-devel-224
2021-07-15lib/param: add lpcfg_parm_is_unspecified() helperStefan Metzmacher1-0/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-03-10lib/param: Remove lpcfg_volume_label() and only caller in NTVFS file serverAndrew Bartlett1-4/+0
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2021-03-10lib/param: Remove unused functions in lib/param/loadparm.cAndrew Bartlett1-25/+0
The lib/param code does not service smbd, no home directories nor printers are handled in this codebase and these functions are uncalled. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14658 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2021-01-12lib: lib/param/param.h references TALLOC_CTXVolker Lendecke1-0/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-11-27param: add FN_{GLOBAL,LOCAL}_SUBSTITUTED_STRING supportStefan Metzmacher1-0/+1
Pair-Programmed-With: Ralph Boehme <slow@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org>
2017-11-20gpo: Apply kerberos settingsDavid Mulder1-1/+2
Add kdc kerberos settings to gpo.tdb, then retrieve those settings in lpcfg_default_kdc_policy. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-09-05param: Add 'binddns dir' parameterAndreas Schneider1-0/+1
This allows to us to have restricted access to the directory by the group 'named' which bind is a member of. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12957 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
2017-04-18lib: param: Remove lpcfg_register_defaults_hook().Jeremy Allison1-16/+0
Completely unused functionality. Gets rid of another talloc_autofree_context(). Updated WHATSNEW to make this clear. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2017-04-18lib: Remove smb_iconv_handle_reinit_lp()Jeremy Allison1-4/+0
It's merely a wrapper for smb_iconv_handle_reinit(), only used in one place and smb_iconv_handle_reinit() is already called from lib/param/loadparm.c. Removing this will make it easier to make global_iconv_handle private state to lib/util/charset/codepoints.c later. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-01-27rpc_server: Allow to configure the port range for RPC servicesAndreas Schneider1-0/+3
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12521 Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2016-06-30lib/param: add lpcfg_sam_dnsname() helper functionStefan Metzmacher1-0/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2016-01-26loadparm: introduce lp_parm_ulonglong() and lpcfg_parm_ulonglong()Uri Simchoni1-0/+4
Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2016-01-13Avoid including libds/common/roles.h in public loadparm.h header.Jelmer Vernooij1-2/+0
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Andrew Bartlett <abartlet@samba.org> Reviewed-By: Stefan Metzmacher <metze@samba.org>
2015-07-30lib/param: move function typedef to after forward declaration of struct ↵Brad Hards1-2/+2
loadparm_context Avoids a warning about the structure being declared inside the parameter list. Signed-off-by: Brad Hards <bradh@frogmouth.net> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 30 19:25:12 CEST 2015 on sn-devel-104
2015-03-17param: Remove "use ntdb" referenceVolker Lendecke1-3/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2015-03-16lib/param: Add hook that allows modification of default settings.Jelmer Vernooij1-0/+15
This is useful for reducing the amount of configuration necessary for OpenChange. The hook is ideally registered from a plugin initialization function, so that it automatically gets used whenever the plugin is installed. This makes it possible for plugins to e.g. extend the default value for the list of enabled dcerpc endpoint services. Like all our interfaces, callers are expected to use this API responsibly. For example, OpenChange should only enable its DCE/RPC interface if it has been provisioned. Change-Id: Ic8bacdd8b4c92a2a4b97cfa1a50dc41365b78071 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-02-26param: Remove lib/param/generic.cVolker Lendecke1-21/+0
This seems completely unused. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-05-07param: use a single add_to_file_list methodGarming Sam1-0/+1
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-05-07param: use a single copy_service function in lib/paramGarming Sam1-0/+1
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-02-12lib/param: generate the param_functions.h containing the prototypesGarming Sam1-1/+4
Pair-programmed-with: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-01-30lib/param: Remove unused lpcfg_next_parameter (once used by SWAT)Andrew Bartlett1-7/+0
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2013-04-12lib/param: lpcfg_private_db_path()Rusty Russell1-0/+15
This wrapper avoids testing lpcfg_use_ntdb() everywhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Jeremy Allison <jra@samba.org>
2012-06-27s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett1-1/+1
This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
2012-06-18lib/param: add missing prototype of lpcfg_parm_long()Stefan Metzmacher1-0/+3
metze
2012-06-15s3-build: Do not write loadparm generated files into the build treeAndrew Bartlett1-1/+1
We need to keep these files away from where waf might see them. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jun 15 11:10:14 CEST 2012 on sn-devel-104
2012-04-19loadparm: Add helper function to fetch default lifetime policiesSimo Sorce1-0/+5
This use long to fetch time_t quantities, because there are architectures were time_t is a signed long but long != int, So long is the proper way to deal with it.
2011-12-17s4 dns: Allow updates based on smb.conf settingKai Blin1-0/+1
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sat Dec 17 04:19:40 CET 2011 on sn-devel-104
2011-10-18credentials: Prioritise command-line specified options above defaults from ↵Andrew Bartlett1-0/+1
smb.conf If a user specified -W or --realm on the command line, then this is of level SPECIFIED, not UNINITIALISED, despite it going via the loadparm system. This helps us to ensure that -W server -Ulocaluser is parsed the same as -Userver\localuser. This matters as otherwise we might instead attempt to use kerberos to the realm from the smb.conf. Andrew Bartlett
2011-10-11s4/param: Expose lpcfg_smb_ports and lpcfg_socket_options, which are both ↵Jelmer Vernooij1-0/+1
required by winexe.
2011-10-11param: Expose lpcfg_smb_ports, required by winexe.Jelmer Vernooij1-0/+1
2011-10-11lib/param move source4 param code to the top levelAndrew Bartlett1-0/+301
This is done so that the lpcfg_ functions are available across the whole build, either with the struct loadparm_context loaded from an smb.conf directly or as a wrapper around the source3 param code. This is not the final, merged loadparm, but simply one step to make it easier to solve other problems while we make our slow progress on this difficult problem. Andrew Bartlett