s4-param Add hook between Samba3 and Samba4 loadparm systems.
[ddiss/samba.git] / source3 / param / loadparm_ctx.c
1 #include "includes.h"
2 #include "../source4/param/s3_param.h"
3
4 /* These are in the order that they appear in the s4 loadparm file.
5  * All of the s4 loadparm functions should be here eventually, once
6  * they are implemented in the s3 loadparm, have the same format (enum
7  * values in particular) and defaults. */
8 static const struct loadparm_s3_context s3_fns = 
9 {
10         .server_role = lp_server_role,
11
12         .winbind_separator = lp_winbind_separator,
13         .template_homedir = lp_template_homedir,
14         .template_shell = lp_template_shell,
15
16         .dos_charset = lp_dos_charset,
17         .unix_charset = lp_unix_charset,
18         .display_charset = lp_display_charset,
19
20         .realm = lp_realm,
21         .dnsdomain = lp_dnsdomain,
22         .socket_options = lp_socket_options,
23         .workgroup = lp_workgroup,
24
25         .netbios_name = global_myname,
26         .netbios_scope = global_scope,
27
28         .lanman_auth = lp_lanman_auth,
29         .ntlm_auth = lp_ntlm_auth,
30
31         .client_plaintext_auth = lp_client_plaintext_auth,
32         .client_lanman_auth = lp_client_lanman_auth,
33         .client_ntlmv2_auth = lp_client_ntlmv2_auth,
34
35         .private_dir = lp_private_dir,
36         .ncalrpc_dir = lp_ncalrpc_dir,
37         .lockdir = lp_lockdir
38 };
39
40 const struct loadparm_s3_context *loadparm_s3_context(void)
41 {
42         return &s3_fns;
43 }