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 const char *get_parametric(const char *type
, const char *option
)
25 return lp_parm_const_string(-1, type
, option
, NULL
);
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
= get_parametric
,
36 .server_role
= lp_server_role
,
38 .winbind_separator
= lp_winbind_separator
,
39 .template_homedir
= lp_template_homedir
,
40 .template_shell
= lp_template_shell
,
42 .dos_charset
= lp_dos_charset
,
43 .unix_charset
= lp_unix_charset
,
44 .display_charset
= lp_display_charset
,
47 .dnsdomain
= lp_dnsdomain
,
48 .socket_options
= lp_socket_options
,
49 .workgroup
= lp_workgroup
,
51 .netbios_name
= global_myname
,
52 .netbios_scope
= global_scope
,
54 .lanman_auth
= lp_lanman_auth
,
55 .ntlm_auth
= lp_ntlm_auth
,
57 .client_plaintext_auth
= lp_client_plaintext_auth
,
58 .client_lanman_auth
= lp_client_lanman_auth
,
59 .client_ntlmv2_auth
= lp_client_ntlmv2_auth
,
61 .private_dir
= lp_private_dir
,
62 .ncalrpc_dir
= lp_ncalrpc_dir
,
66 const struct loadparm_s3_context
*loadparm_s3_context(void)