2 Unix SMB/CIFS implementation.
3 Parameter loading functions
4 Copyright (C) Andrew Bartlett 2011
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "../source4/param/s3_param.h"
23 static bool lp_load_for_s4_ctx(const char *filename)
25 return lp_load(filename, false, false, false, false);
28 /* These are in the order that they appear in the s4 loadparm file.
29 * All of the s4 loadparm functions should be here eventually, once
30 * they are implemented in the s3 loadparm, have the same format (enum
31 * values in particular) and defaults. */
32 static const struct loadparm_s3_context s3_fns =
34 .get_parametric = lp_parm_const_string_service,
35 .get_parm_struct = lp_get_parameter,
36 .get_parm_ptr = lp_parm_ptr,
37 .get_service = lp_service,
38 .get_servicebynum = lp_servicebynum,
39 .get_default_loadparm_service = lp_default_loadparm_service,
40 .get_numservices = lp_numservices,
41 .load = lp_load_for_s4_ctx,
42 .set_cmdline = lp_set_cmdline,
44 .server_role = lp_server_role,
46 .winbind_separator = lp_winbind_separator,
47 .template_homedir = lp_template_homedir,
48 .template_shell = lp_template_shell,
50 .dos_charset = lp_dos_charset,
51 .unix_charset = lp_unix_charset,
54 .dnsdomain = lp_dnsdomain,
55 .socket_options = lp_socket_options,
56 .workgroup = lp_workgroup,
58 .netbios_name = lp_netbios_name,
59 .netbios_scope = lp_netbios_scope,
60 .netbios_aliases = lp_netbios_aliases,
62 .lanman_auth = lp_lanman_auth,
63 .ntlm_auth = lp_ntlm_auth,
65 .client_plaintext_auth = lp_client_plaintext_auth,
66 .client_lanman_auth = lp_client_lanman_auth,
67 .client_ntlmv2_auth = lp_client_ntlmv2_auth,
69 .private_dir = lp_private_dir,
70 .ncalrpc_dir = lp_ncalrpc_dir,
74 const struct loadparm_s3_context *loadparm_s3_context(void)