2 Unix SMB/CIFS implementation.
3 Parameter loading functions
4 Copyright (C) Karl Auer 1993-1998
6 Largely re-written by Andrew Tridgell, September 1994
8 Copyright (C) Simo Sorce 2001
9 Copyright (C) Alexander Bokovoy 2002
10 Copyright (C) Stefan (metze) Metzmacher 2002
11 Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2003
12 Copyright (C) Michael Adam 2008
13 Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
14 Copyright (C) Andrew Bartlett 2011
16 This program is free software; you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation; either version 3 of the License, or
19 (at your option) any later version.
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
26 You should have received a copy of the GNU General Public License
27 along with this program. If not, see <http://www.gnu.org/licenses/>.
30 static const struct enum_list enum_protocol[] = {
31 {PROTOCOL_SMB2_02, "SMB2"}, /* for now keep PROTOCOL_SMB2_02 */
32 {PROTOCOL_SMB2_10, "SMB2_10"},
33 {PROTOCOL_SMB2_02, "SMB2_02"},
34 {PROTOCOL_NT1, "NT1"},
35 {PROTOCOL_LANMAN2, "LANMAN2"},
36 {PROTOCOL_LANMAN1, "LANMAN1"},
37 {PROTOCOL_CORE, "CORE"},
38 {PROTOCOL_COREPLUS, "COREPLUS"},
39 {PROTOCOL_COREPLUS, "CORE+"},
43 static const struct enum_list enum_security[] = {
47 {SEC_SERVER, "SERVER"},
48 {SEC_DOMAIN, "DOMAIN"},
49 #if (defined(HAVE_ADS) || _SAMBA_BUILD_ >= 4)
55 static const struct enum_list enum_bool_auto[] = {
66 static const struct enum_list enum_csc_policy[] = {
67 {CSC_POLICY_MANUAL, "manual"},
68 {CSC_POLICY_DOCUMENTS, "documents"},
69 {CSC_POLICY_PROGRAMS, "programs"},
70 {CSC_POLICY_DISABLE, "disable"},
74 /* Server role options */
75 static const struct enum_list enum_server_role[] = {
77 {ROLE_STANDALONE, "standalone"},
78 {ROLE_DOMAIN_MEMBER, "member server"},
79 {ROLE_DOMAIN_MEMBER, "member"},
80 /* note that currently
81 ROLE_DOMAIN_CONTROLLER == ROLE_DOMAIN_BDC */
82 {ROLE_DOMAIN_CONTROLLER, "domain controller"},
83 {ROLE_DOMAIN_BDC, "backup domain controller"},
84 {ROLE_DOMAIN_BDC, "bdc"},
85 {ROLE_DOMAIN_BDC, "dc"},
86 {ROLE_DOMAIN_PDC, "primary domain controller"},
87 {ROLE_DOMAIN_PDC, "pdc"},
91 /* SMB signing types. */
92 static const struct enum_list enum_smb_signing_vals[] = {
93 {SMB_SIGNING_DEFAULT, "default"},
94 {SMB_SIGNING_OFF, "No"},
95 {SMB_SIGNING_OFF, "False"},
96 {SMB_SIGNING_OFF, "0"},
97 {SMB_SIGNING_OFF, "Off"},
98 {SMB_SIGNING_OFF, "disabled"},
99 {SMB_SIGNING_IF_REQUIRED, "if_required"},
100 {SMB_SIGNING_IF_REQUIRED, "Yes"},
101 {SMB_SIGNING_IF_REQUIRED, "True"},
102 {SMB_SIGNING_IF_REQUIRED, "1"},
103 {SMB_SIGNING_IF_REQUIRED, "On"},
104 {SMB_SIGNING_IF_REQUIRED, "enabled"},
105 {SMB_SIGNING_IF_REQUIRED, "auto"},
106 {SMB_SIGNING_REQUIRED, "required"},
107 {SMB_SIGNING_REQUIRED, "mandatory"},
108 {SMB_SIGNING_REQUIRED, "force"},
109 {SMB_SIGNING_REQUIRED, "forced"},
110 {SMB_SIGNING_REQUIRED, "enforced"},