s3-torture/denytest.c: replace cli_read_old() with cli_read()
[Samba/gebeck_regimport.git] / source3 / param / loadparm_ctx.c
blob7c59ca709a3b6d9a376953dee233a14c231a4a33
1 /*
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/>.
20 #include "includes.h"
21 #include "../source4/param/s3_param.h"
23 /* These are in the order that they appear in the s4 loadparm file.
24 * All of the s4 loadparm functions should be here eventually, once
25 * they are implemented in the s3 loadparm, have the same format (enum
26 * values in particular) and defaults. */
27 static const struct loadparm_s3_context s3_fns =
29 .get_parametric = lp_parm_const_string_service,
30 .get_parm_struct = lp_get_parameter,
31 .get_parm_ptr = lp_parm_ptr,
32 .get_service = lp_service,
33 .get_servicebynum = lp_servicebynum,
34 .get_default_loadparm_service = lp_default_loadparm_service,
35 .get_numservices = lp_numservices,
36 .set_cmdline = lp_set_cmdline,
38 .server_role = lp_server_role,
40 .winbind_separator = lp_winbind_separator,
41 .template_homedir = lp_template_homedir,
42 .template_shell = lp_template_shell,
44 .dos_charset = lp_dos_charset,
45 .unix_charset = lp_unix_charset,
47 .realm = lp_realm,
48 .dnsdomain = lp_dnsdomain,
49 .socket_options = lp_socket_options,
50 .workgroup = lp_workgroup,
52 .netbios_name = lp_netbios_name,
53 .netbios_scope = lp_netbios_scope,
54 .netbios_aliases = lp_netbios_aliases,
56 .lanman_auth = lp_lanman_auth,
57 .ntlm_auth = lp_ntlm_auth,
59 .client_plaintext_auth = lp_client_plaintext_auth,
60 .client_lanman_auth = lp_client_lanman_auth,
61 .client_ntlmv2_auth = lp_client_ntlmv2_auth,
63 .private_dir = lp_private_dir,
64 .ncalrpc_dir = lp_ncalrpc_dir,
65 .lockdir = lp_lockdir
68 const struct loadparm_s3_context *loadparm_s3_context(void)
70 return &s3_fns;