param: don't list '-valid' and 'copy' as synonyms - they aren't
[garming/samba-autobuild/.git] / lib / param / param_table.c
1 /*
2    Unix SMB/CIFS implementation.
3    Parameter loading functions
4    Copyright (C) Karl Auer 1993-1998
5
6    Largely re-written by Andrew Tridgell, September 1994
7
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
15
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.
20
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.
25
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/>.
28 */
29
30 #include "includes.h"
31 #include "lib/param/param.h"
32 #include "lib/param/loadparm.h"
33 #include "lib/param/param_global.h"
34 #include "libcli/smb/smb_constants.h"
35
36 #ifndef N_
37 #define N_(x) x
38 #endif
39
40 static const struct enum_list enum_protocol[] = {
41         {PROTOCOL_DEFAULT, "default"}, /* the caller decides what this means */
42         {PROTOCOL_SMB2_10, "SMB2"}, /* for now keep PROTOCOL_SMB2_10 */
43         {PROTOCOL_SMB3_11, "SMB3"}, /* for now keep PROTOCOL_SMB3_11 */
44         {PROTOCOL_SMB3_11, "SMB3_11"},
45         {PROTOCOL_SMB3_10, "SMB3_10"},
46         {PROTOCOL_SMB3_02, "SMB3_02"},
47         {PROTOCOL_SMB3_00, "SMB3_00"},
48         {PROTOCOL_SMB2_24, "SMB2_24"},
49         {PROTOCOL_SMB2_22, "SMB2_22"},
50         {PROTOCOL_SMB2_10, "SMB2_10"},
51         {PROTOCOL_SMB2_02, "SMB2_02"},
52         {PROTOCOL_NT1, "NT1"},
53         {PROTOCOL_LANMAN2, "LANMAN2"},
54         {PROTOCOL_LANMAN1, "LANMAN1"},
55         {PROTOCOL_CORE, "CORE"},
56         {PROTOCOL_COREPLUS, "COREPLUS"},
57         {PROTOCOL_COREPLUS, "CORE+"},
58         {-1, NULL}
59 };
60
61 static const struct enum_list enum_security[] = {
62         {SEC_AUTO, "AUTO"},
63         {SEC_USER, "USER"},
64         {SEC_DOMAIN, "DOMAIN"},
65         {SEC_ADS, "ADS"},
66         {-1, NULL}
67 };
68
69 static const struct enum_list enum_bool_auto[] = {
70         {false, "No"},
71         {false, "False"},
72         {false, "0"},
73         {true, "Yes"},
74         {true, "True"},
75         {true, "1"},
76         {Auto, "Auto"},
77         {-1, NULL}
78 };
79
80 static const struct enum_list enum_csc_policy[] = {
81         {CSC_POLICY_MANUAL, "manual"},
82         {CSC_POLICY_DOCUMENTS, "documents"},
83         {CSC_POLICY_PROGRAMS, "programs"},
84         {CSC_POLICY_DISABLE, "disable"},
85         {-1, NULL}
86 };
87
88 /* Server role options */
89 static const struct enum_list enum_server_role[] = {
90         {ROLE_AUTO, "auto"},
91         {ROLE_STANDALONE, "standalone server"},
92         {ROLE_STANDALONE, "standalone"},
93         {ROLE_DOMAIN_MEMBER, "member server"},
94         {ROLE_DOMAIN_MEMBER, "member"},
95         {ROLE_DOMAIN_PDC, "classic primary domain controller"},
96         {ROLE_DOMAIN_BDC, "classic backup domain controller"},
97         {ROLE_ACTIVE_DIRECTORY_DC, "active directory domain controller"},
98         {ROLE_ACTIVE_DIRECTORY_DC, "domain controller"},
99         {ROLE_ACTIVE_DIRECTORY_DC, "dc"},
100         {-1, NULL}
101 };
102
103 /* SMB signing types. */
104 static const struct enum_list enum_smb_signing_vals[] = {
105         {SMB_SIGNING_DEFAULT, "default"},
106         {SMB_SIGNING_OFF, "No"},
107         {SMB_SIGNING_OFF, "False"},
108         {SMB_SIGNING_OFF, "0"},
109         {SMB_SIGNING_OFF, "Off"},
110         {SMB_SIGNING_OFF, "disabled"},
111         {SMB_SIGNING_IF_REQUIRED, "if_required"},
112         {SMB_SIGNING_IF_REQUIRED, "Yes"},
113         {SMB_SIGNING_IF_REQUIRED, "True"},
114         {SMB_SIGNING_IF_REQUIRED, "1"},
115         {SMB_SIGNING_IF_REQUIRED, "On"},
116         {SMB_SIGNING_IF_REQUIRED, "enabled"},
117         {SMB_SIGNING_IF_REQUIRED, "auto"},
118         {SMB_SIGNING_DESIRED, "desired"},
119         {SMB_SIGNING_REQUIRED, "required"},
120         {SMB_SIGNING_REQUIRED, "mandatory"},
121         {SMB_SIGNING_REQUIRED, "force"},
122         {SMB_SIGNING_REQUIRED, "forced"},
123         {SMB_SIGNING_REQUIRED, "enforced"},
124         {-1, NULL}
125 };
126
127 /* DNS update options. */
128 static const struct enum_list enum_dns_update_settings[] = {
129         {DNS_UPDATE_OFF, "disabled"},
130         {DNS_UPDATE_OFF, "No"},
131         {DNS_UPDATE_OFF, "False"},
132         {DNS_UPDATE_OFF, "0"},
133         {DNS_UPDATE_OFF, "Off"},
134         {DNS_UPDATE_ON, "nonsecure and secure"},
135         {DNS_UPDATE_ON, "nonsecure"},
136         {DNS_UPDATE_SIGNED, "secure only"},
137         {DNS_UPDATE_SIGNED, "secure"},
138         {DNS_UPDATE_SIGNED, "signed"},
139         {-1, NULL}
140 };
141
142 /*
143    Do you want session setups at user level security with a invalid
144    password to be rejected or allowed in as guest? WinNT rejects them
145    but it can be a pain as it means "net view" needs to use a password
146
147    You have 3 choices in the setting of map_to_guest:
148
149    "Never" means session setups with an invalid password
150    are rejected. This is the default.
151
152    "Bad User" means session setups with an invalid password
153    are rejected, unless the username does not exist, in which case it
154    is treated as a guest login
155
156    "Bad Password" means session setups with an invalid password
157    are treated as a guest login
158
159    Note that map_to_guest only has an effect in user or server
160    level security.
161 */
162
163 static const struct enum_list enum_map_to_guest[] = {
164         {NEVER_MAP_TO_GUEST, "Never"},
165         {MAP_TO_GUEST_ON_BAD_USER, "Bad User"},
166         {MAP_TO_GUEST_ON_BAD_PASSWORD, "Bad Password"},
167         {MAP_TO_GUEST_ON_BAD_UID, "Bad Uid"},
168         {-1, NULL}
169 };
170
171 /* Config backend options */
172
173 static const struct enum_list enum_config_backend[] = {
174         {CONFIG_BACKEND_FILE, "file"},
175         {CONFIG_BACKEND_REGISTRY, "registry"},
176         {-1, NULL}
177 };
178
179 static const struct enum_list enum_smbd_profiling_level[] = {
180         {0, "off"}, {1, "count"}, {2, "on"}, {-1, NULL}
181 };
182
183
184 /* ADS kerberos ticket verification options */
185
186 static const struct enum_list enum_kerberos_method[] = {
187         {KERBEROS_VERIFY_SECRETS, "default"},
188         {KERBEROS_VERIFY_SECRETS, "secrets only"},
189         {KERBEROS_VERIFY_SYSTEM_KEYTAB, "system keytab"},
190         {KERBEROS_VERIFY_DEDICATED_KEYTAB, "dedicated keytab"},
191         {KERBEROS_VERIFY_SECRETS_AND_KEYTAB, "secrets and keytab"},
192         {-1, NULL}
193 };
194
195 static const struct enum_list enum_printing[] = {
196         {PRINT_SYSV, "sysv"},
197         {PRINT_AIX, "aix"},
198         {PRINT_HPUX, "hpux"},
199         {PRINT_BSD, "bsd"},
200         {PRINT_QNX, "qnx"},
201         {PRINT_PLP, "plp"},
202         {PRINT_LPRNG, "lprng"},
203 #ifdef HAVE_CUPS
204         {PRINT_CUPS, "cups"},
205 #endif
206 #ifdef HAVE_IPRINT
207         {PRINT_IPRINT, "iprint"},
208 #endif
209         {PRINT_LPRNT, "nt"},
210         {PRINT_LPROS2, "os2"},
211 #if defined(DEVELOPER) || defined(ENABLE_SELFTEST)
212         {PRINT_TEST, "test"},
213         {PRINT_VLP, "vlp"},
214 #endif /* DEVELOPER */
215         {-1, NULL}
216 };
217
218 static const struct enum_list enum_ldap_sasl_wrapping[] = {
219         {0, "plain"},
220         {ADS_AUTH_SASL_SIGN, "sign"},
221         {ADS_AUTH_SASL_SEAL, "seal"},
222         {-1, NULL}
223 };
224
225 static const struct enum_list enum_ldap_ssl[] = {
226         {LDAP_SSL_OFF, "no"},
227         {LDAP_SSL_OFF, "off"},
228         {LDAP_SSL_START_TLS, "start tls"},
229         {LDAP_SSL_START_TLS, "start_tls"},
230         {-1, NULL}
231 };
232
233 /* LDAP Dereferencing Alias types */
234 #define SAMBA_LDAP_DEREF_NEVER          0
235 #define SAMBA_LDAP_DEREF_SEARCHING      1
236 #define SAMBA_LDAP_DEREF_FINDING        2
237 #define SAMBA_LDAP_DEREF_ALWAYS         3
238
239 static const struct enum_list enum_ldap_deref[] = {
240         {SAMBA_LDAP_DEREF_NEVER, "never"},
241         {SAMBA_LDAP_DEREF_SEARCHING, "searching"},
242         {SAMBA_LDAP_DEREF_FINDING, "finding"},
243         {SAMBA_LDAP_DEREF_ALWAYS, "always"},
244         {-1, "auto"}
245 };
246
247 static const struct enum_list enum_ldap_passwd_sync[] = {
248         {LDAP_PASSWD_SYNC_OFF, "no"},
249         {LDAP_PASSWD_SYNC_OFF, "off"},
250         {LDAP_PASSWD_SYNC_ON, "yes"},
251         {LDAP_PASSWD_SYNC_ON, "on"},
252         {LDAP_PASSWD_SYNC_ONLY, "only"},
253         {-1, NULL}
254 };
255
256 static const struct enum_list enum_map_readonly[] = {
257         {MAP_READONLY_NO, "no"},
258         {MAP_READONLY_NO, "false"},
259         {MAP_READONLY_NO, "0"},
260         {MAP_READONLY_YES, "yes"},
261         {MAP_READONLY_YES, "true"},
262         {MAP_READONLY_YES, "1"},
263         {MAP_READONLY_PERMISSIONS, "permissions"},
264         {MAP_READONLY_PERMISSIONS, "perms"},
265         {-1, NULL}
266 };
267
268 static const struct enum_list enum_case[] = {
269         {CASE_LOWER, "lower"},
270         {CASE_UPPER, "upper"},
271         {-1, NULL}
272 };
273
274
275 /* Note: We do not initialise the defaults union - it is not allowed in ANSI C
276  *
277  * NOTE: Handling of duplicated (synonym) parameters:
278  *   Parameters that are synonymous are stored in the same variable.
279  *   All but the default spelling carry the flag FLAG_SYNONYM.
280  */
281
282 #define GLOBAL_VAR(name) offsetof(struct loadparm_global, name)
283 #define LOCAL_VAR(name) offsetof(struct loadparm_service, name)
284
285
286 struct parm_struct parm_table[] = {
287         {
288                 .label          = "dos charset",
289                 .type           = P_STRING,
290                 .p_class        = P_GLOBAL,
291                 .offset         = GLOBAL_VAR(dos_charset),
292                 .special        = handle_dos_charset,
293                 .enum_list      = NULL,
294         },
295         {
296                 .label          = "unix charset",
297                 .type           = P_STRING,
298                 .p_class        = P_GLOBAL,
299                 .offset         = GLOBAL_VAR(unix_charset),
300                 .special        = handle_charset,
301                 .enum_list      = NULL,
302         },
303         {
304                 .label          = "comment",
305                 .type           = P_STRING,
306                 .p_class        = P_LOCAL,
307                 .offset         = LOCAL_VAR(comment),
308                 .special        = NULL,
309                 .enum_list      = NULL,
310         },
311         {
312                 .label          = "path",
313                 .type           = P_STRING,
314                 .p_class        = P_LOCAL,
315                 .offset         = LOCAL_VAR(path),
316                 .special        = NULL,
317                 .enum_list      = NULL,
318         },
319         {
320                 .label          = "directory",
321                 .type           = P_STRING,
322                 .p_class        = P_LOCAL,
323                 .offset         = LOCAL_VAR(path),
324                 .special        = NULL,
325                 .enum_list      = NULL,
326                 .flags          = FLAG_SYNONYM,
327         },
328         {
329                 .label          = "workgroup",
330                 .type           = P_USTRING,
331                 .p_class        = P_GLOBAL,
332                 .offset         = GLOBAL_VAR(workgroup),
333                 .special        = NULL,
334                 .enum_list      = NULL,
335         },
336         {
337                 .label          = "realm",
338                 .type           = P_STRING,
339                 .p_class        = P_GLOBAL,
340                 .offset         = GLOBAL_VAR(realm),
341                 .special        = handle_realm,
342                 .enum_list      = NULL,
343         },
344         {
345                 .label          = "netbios name",
346                 .type           = P_USTRING,
347                 .p_class        = P_GLOBAL,
348                 .offset         = GLOBAL_VAR(netbios_name),
349                 .special        = NULL,
350                 .enum_list      = NULL,
351         },
352         {
353                 .label          = "netbios aliases",
354                 .type           = P_CMDLIST,
355                 .p_class        = P_GLOBAL,
356                 .offset         = GLOBAL_VAR(netbios_aliases),
357                 .special        = handle_netbios_aliases,
358                 .enum_list      = NULL,
359         },
360         {
361                 .label          = "netbios scope",
362                 .type           = P_USTRING,
363                 .p_class        = P_GLOBAL,
364                 .offset         = GLOBAL_VAR(netbios_scope),
365                 .special        = NULL,
366                 .enum_list      = NULL,
367         },
368         {
369                 .label          = "server string",
370                 .type           = P_STRING,
371                 .p_class        = P_GLOBAL,
372                 .offset         = GLOBAL_VAR(server_string),
373                 .special        = NULL,
374                 .enum_list      = NULL,
375         },
376         {
377                 .label          = "interfaces",
378                 .type           = P_CMDLIST,
379                 .p_class        = P_GLOBAL,
380                 .offset         = GLOBAL_VAR(interfaces),
381                 .special        = NULL,
382                 .enum_list      = NULL,
383         },
384         {
385                 .label          = "bind interfaces only",
386                 .type           = P_BOOL,
387                 .p_class        = P_GLOBAL,
388                 .offset         = GLOBAL_VAR(bind_interfaces_only),
389                 .special        = NULL,
390                 .enum_list      = NULL,
391         },
392         {
393                 .label          = "config backend",
394                 .type           = P_ENUM,
395                 .p_class        = P_GLOBAL,
396                 .offset         = GLOBAL_VAR(config_backend),
397                 .special        = NULL,
398                 .enum_list      = enum_config_backend,
399         },
400         {
401                 .label          = "server role",
402                 .type           = P_ENUM,
403                 .p_class        = P_GLOBAL,
404                 .offset         = GLOBAL_VAR(_server_role),
405                 .special        = NULL,
406                 .enum_list      = enum_server_role,
407         },
408         {
409                 .label          = "security",
410                 .type           = P_ENUM,
411                 .p_class        = P_GLOBAL,
412                 .offset         = GLOBAL_VAR(_security),
413                 .special        = NULL,
414                 .enum_list      = enum_security,
415         },
416         {
417                 .label          = "auth methods",
418                 .type           = P_CMDLIST,
419                 .p_class        = P_GLOBAL,
420                 .offset         = GLOBAL_VAR(auth_methods),
421                 .special        = NULL,
422                 .enum_list      = NULL,
423         },
424         {
425                 .label          = "encrypt passwords",
426                 .type           = P_BOOL,
427                 .p_class        = P_GLOBAL,
428                 .offset         = GLOBAL_VAR(encrypt_passwords),
429                 .special        = NULL,
430                 .enum_list      = NULL,
431         },
432         {
433                 .label          = "client schannel",
434                 .type           = P_ENUM,
435                 .p_class        = P_GLOBAL,
436                 .offset         = GLOBAL_VAR(client_schannel),
437                 .special        = NULL,
438                 .enum_list      = enum_bool_auto,
439         },
440         {
441                 .label          = "server schannel",
442                 .type           = P_ENUM,
443                 .p_class        = P_GLOBAL,
444                 .offset         = GLOBAL_VAR(server_schannel),
445                 .special        = NULL,
446                 .enum_list      = enum_bool_auto,
447         },
448         {
449                 .label          = "allow trusted domains",
450                 .type           = P_BOOL,
451                 .p_class        = P_GLOBAL,
452                 .offset         = GLOBAL_VAR(allow_trusted_domains),
453                 .special        = NULL,
454                 .enum_list      = NULL,
455         },
456         {
457                 .label          = "map to guest",
458                 .type           = P_ENUM,
459                 .p_class        = P_GLOBAL,
460                 .offset         = GLOBAL_VAR(map_to_guest),
461                 .special        = NULL,
462                 .enum_list      = enum_map_to_guest,
463         },
464         {
465                 .label          = "null passwords",
466                 .type           = P_BOOL,
467                 .p_class        = P_GLOBAL,
468                 .offset         = GLOBAL_VAR(null_passwords),
469                 .special        = NULL,
470                 .enum_list      = NULL,
471                 .flags          = FLAG_DEPRECATED,
472         },
473         {
474                 .label          = "old password allowed period",
475                 .type           = P_INTEGER,
476                 .p_class        = P_GLOBAL,
477                 .offset         = GLOBAL_VAR(old_password_allowed_period),
478                 .special        = NULL,
479                 .enum_list      = NULL,
480         },
481         {
482                 .label          = "obey pam restrictions",
483                 .type           = P_BOOL,
484                 .p_class        = P_GLOBAL,
485                 .offset         = GLOBAL_VAR(obey_pam_restrictions),
486                 .special        = NULL,
487                 .enum_list      = NULL,
488         },
489         {
490                 .label          = "password server",
491                 .type           = P_STRING,
492                 .p_class        = P_GLOBAL,
493                 .offset         = GLOBAL_VAR(password_server),
494                 .special        = NULL,
495                 .enum_list      = NULL,
496         },
497         {
498                 .label          = "smb passwd file",
499                 .type           = P_STRING,
500                 .p_class        = P_GLOBAL,
501                 .offset         = GLOBAL_VAR(smb_passwd_file),
502                 .special        = NULL,
503                 .enum_list      = NULL,
504         },
505         {
506                 .label          = "private dir",
507                 .type           = P_STRING,
508                 .p_class        = P_GLOBAL,
509                 .offset         = GLOBAL_VAR(private_dir),
510                 .special        = NULL,
511                 .enum_list      = NULL,
512         },
513         {
514                 .label          = "private directory",
515                 .type           = P_STRING,
516                 .p_class        = P_GLOBAL,
517                 .offset         = GLOBAL_VAR(private_dir),
518                 .special        = NULL,
519                 .enum_list      = NULL,
520                 .flags          = FLAG_SYNONYM,
521         },
522         {
523                 .label          = "passdb backend",
524                 .type           = P_STRING,
525                 .p_class        = P_GLOBAL,
526                 .offset         = GLOBAL_VAR(passdb_backend),
527                 .special        = NULL,
528                 .enum_list      = NULL,
529         },
530         {
531                 .label          = "algorithmic rid base",
532                 .type           = P_INTEGER,
533                 .p_class        = P_GLOBAL,
534                 .offset         = GLOBAL_VAR(algorithmic_rid_base),
535                 .special        = NULL,
536                 .enum_list      = NULL,
537         },
538         {
539                 .label          = "root directory",
540                 .type           = P_STRING,
541                 .p_class        = P_GLOBAL,
542                 .offset         = GLOBAL_VAR(root_directory),
543                 .special        = NULL,
544                 .enum_list      = NULL,
545         },
546         {
547                 .label          = "root dir",
548                 .type           = P_STRING,
549                 .p_class        = P_GLOBAL,
550                 .offset         = GLOBAL_VAR(root_directory),
551                 .special        = NULL,
552                 .enum_list      = NULL,
553                 .flags          = FLAG_SYNONYM,
554         },
555         {
556                 .label          = "root",
557                 .type           = P_STRING,
558                 .p_class        = P_GLOBAL,
559                 .offset         = GLOBAL_VAR(root_directory),
560                 .special        = NULL,
561                 .enum_list      = NULL,
562                 .flags          = FLAG_SYNONYM,
563         },
564         {
565                 .label          = "guest account",
566                 .type           = P_STRING,
567                 .p_class        = P_GLOBAL,
568                 .offset         = GLOBAL_VAR(guest_account),
569                 .special        = NULL,
570                 .enum_list      = NULL,
571         },
572         {
573                 .label          = "enable privileges",
574                 .type           = P_BOOL,
575                 .p_class        = P_GLOBAL,
576                 .offset         = GLOBAL_VAR(enable_privileges),
577                 .special        = NULL,
578                 .enum_list      = NULL,
579                 .flags          = FLAG_DEPRECATED,
580         },
581
582         {
583                 .label          = "pam password change",
584                 .type           = P_BOOL,
585                 .p_class        = P_GLOBAL,
586                 .offset         = GLOBAL_VAR(pam_password_change),
587                 .special        = NULL,
588                 .enum_list      = NULL,
589         },
590         {
591                 .label          = "passwd program",
592                 .type           = P_STRING,
593                 .p_class        = P_GLOBAL,
594                 .offset         = GLOBAL_VAR(passwd_program),
595                 .special        = NULL,
596                 .enum_list      = NULL,
597         },
598         {
599                 .label          = "passwd chat",
600                 .type           = P_STRING,
601                 .p_class        = P_GLOBAL,
602                 .offset         = GLOBAL_VAR(passwd_chat),
603                 .special        = NULL,
604                 .enum_list      = NULL,
605         },
606         {
607                 .label          = "passwd chat debug",
608                 .type           = P_BOOL,
609                 .p_class        = P_GLOBAL,
610                 .offset         = GLOBAL_VAR(passwd_chat_debug),
611                 .special        = NULL,
612                 .enum_list      = NULL,
613         },
614         {
615                 .label          = "passwd chat timeout",
616                 .type           = P_INTEGER,
617                 .p_class        = P_GLOBAL,
618                 .offset         = GLOBAL_VAR(passwd_chat_timeout),
619                 .special        = NULL,
620                 .enum_list      = NULL,
621         },
622         {
623                 .label          = "check password script",
624                 .type           = P_STRING,
625                 .p_class        = P_GLOBAL,
626                 .offset         = GLOBAL_VAR(check_password_script),
627                 .special        = NULL,
628                 .enum_list      = NULL,
629         },
630         {
631                 .label          = "username map",
632                 .type           = P_STRING,
633                 .p_class        = P_GLOBAL,
634                 .offset         = GLOBAL_VAR(username_map),
635                 .special        = NULL,
636                 .enum_list      = NULL,
637         },
638         {
639                 .label          = "username level",
640                 .type           = P_INTEGER,
641                 .p_class        = P_GLOBAL,
642                 .offset         = GLOBAL_VAR(username_level),
643                 .special        = NULL,
644                 .enum_list      = NULL,
645         },
646         {
647                 .label          = "unix password sync",
648                 .type           = P_BOOL,
649                 .p_class        = P_GLOBAL,
650                 .offset         = GLOBAL_VAR(unix_password_sync),
651                 .special        = NULL,
652                 .enum_list      = NULL,
653         },
654         {
655                 .label          = "restrict anonymous",
656                 .type           = P_INTEGER,
657                 .p_class        = P_GLOBAL,
658                 .offset         = GLOBAL_VAR(restrict_anonymous),
659                 .special        = NULL,
660                 .enum_list      = NULL,
661         },
662         {
663                 .label          = "lanman auth",
664                 .type           = P_BOOL,
665                 .p_class        = P_GLOBAL,
666                 .offset         = GLOBAL_VAR(lanman_auth),
667                 .special        = NULL,
668                 .enum_list      = NULL,
669         },
670         {
671                 .label          = "ntlm auth",
672                 .type           = P_BOOL,
673                 .p_class        = P_GLOBAL,
674                 .offset         = GLOBAL_VAR(ntlm_auth),
675                 .special        = NULL,
676                 .enum_list      = NULL,
677         },
678         {
679                 .label          = "client NTLMv2 auth",
680                 .type           = P_BOOL,
681                 .p_class        = P_GLOBAL,
682                 .offset         = GLOBAL_VAR(client_ntlmv2_auth),
683                 .special        = NULL,
684                 .enum_list      = NULL,
685         },
686         {
687                 .label          = "client lanman auth",
688                 .type           = P_BOOL,
689                 .p_class        = P_GLOBAL,
690                 .offset         = GLOBAL_VAR(client_lanman_auth),
691                 .special        = NULL,
692                 .enum_list      = NULL,
693         },
694         {
695                 .label          = "client plaintext auth",
696                 .type           = P_BOOL,
697                 .p_class        = P_GLOBAL,
698                 .offset         = GLOBAL_VAR(client_plaintext_auth),
699                 .special        = NULL,
700                 .enum_list      = NULL,
701         },
702         {
703                 .label          = "client use spnego principal",
704                 .type           = P_BOOL,
705                 .p_class        = P_GLOBAL,
706                 .offset         = GLOBAL_VAR(client_use_spnego_principal),
707                 .special        = NULL,
708                 .enum_list      = NULL,
709                 .flags          = FLAG_DEPRECATED,
710         },
711         {
712                 .label          = "username",
713                 .type           = P_STRING,
714                 .p_class        = P_LOCAL,
715                 .offset         = LOCAL_VAR(username),
716                 .special        = NULL,
717                 .enum_list      = NULL,
718                 .flags          = FLAG_DEPRECATED,
719         },
720         {
721                 .label          = "user",
722                 .type           = P_STRING,
723                 .p_class        = P_LOCAL,
724                 .offset         = LOCAL_VAR(username),
725                 .special        = NULL,
726                 .enum_list      = NULL,
727                 .flags          = FLAG_SYNONYM,
728         },
729         {
730                 .label          = "users",
731                 .type           = P_STRING,
732                 .p_class        = P_LOCAL,
733                 .offset         = LOCAL_VAR(username),
734                 .special        = NULL,
735                 .enum_list      = NULL,
736                 .flags          = FLAG_SYNONYM,
737         },
738         {
739                 .label          = "invalid users",
740                 .type           = P_CMDLIST,
741                 .p_class        = P_LOCAL,
742                 .offset         = LOCAL_VAR(invalid_users),
743                 .special        = NULL,
744                 .enum_list      = NULL,
745         },
746         {
747                 .label          = "valid users",
748                 .type           = P_CMDLIST,
749                 .p_class        = P_LOCAL,
750                 .offset         = LOCAL_VAR(valid_users),
751                 .special        = NULL,
752                 .enum_list      = NULL,
753         },
754         {
755                 .label          = "admin users",
756                 .type           = P_CMDLIST,
757                 .p_class        = P_LOCAL,
758                 .offset         = LOCAL_VAR(admin_users),
759                 .special        = NULL,
760                 .enum_list      = NULL,
761         },
762         {
763                 .label          = "read list",
764                 .type           = P_CMDLIST,
765                 .p_class        = P_LOCAL,
766                 .offset         = LOCAL_VAR(read_list),
767                 .special        = NULL,
768                 .enum_list      = NULL,
769         },
770         {
771                 .label          = "write list",
772                 .type           = P_CMDLIST,
773                 .p_class        = P_LOCAL,
774                 .offset         = LOCAL_VAR(write_list),
775                 .special        = NULL,
776                 .enum_list      = NULL,
777         },
778         {
779                 .label          = "force user",
780                 .type           = P_STRING,
781                 .p_class        = P_LOCAL,
782                 .offset         = LOCAL_VAR(force_user),
783                 .special        = NULL,
784                 .enum_list      = NULL,
785         },
786         {
787                 .label          = "force group",
788                 .type           = P_STRING,
789                 .p_class        = P_LOCAL,
790                 .offset         = LOCAL_VAR(force_group),
791                 .special        = NULL,
792                 .enum_list      = NULL,
793         },
794         {
795                 .label          = "group",
796                 .type           = P_STRING,
797                 .p_class        = P_LOCAL,
798                 .offset         = LOCAL_VAR(force_group),
799                 .special        = NULL,
800                 .enum_list      = NULL,
801                 .flags          = FLAG_SYNONYM,
802         },
803         {
804                 .label          = "read only",
805                 .type           = P_BOOL,
806                 .p_class        = P_LOCAL,
807                 .offset         = LOCAL_VAR(read_only),
808                 .special        = NULL,
809                 .enum_list      = NULL,
810         },
811         {
812                 .label          = "spotlight",
813                 .type           = P_BOOL,
814                 .p_class        = P_LOCAL,
815                 .offset         = LOCAL_VAR(spotlight),
816                 .special        = NULL,
817                 .enum_list      = NULL,
818         },
819         {
820                 .label          = "write ok",
821                 .type           = P_BOOLREV,
822                 .p_class        = P_LOCAL,
823                 .offset         = LOCAL_VAR(read_only),
824                 .special        = NULL,
825                 .enum_list      = NULL,
826                 .flags          = FLAG_SYNONYM,
827         },
828         {
829                 .label          = "writeable",
830                 .type           = P_BOOLREV,
831                 .p_class        = P_LOCAL,
832                 .offset         = LOCAL_VAR(read_only),
833                 .special        = NULL,
834                 .enum_list      = NULL,
835                 .flags          = FLAG_SYNONYM,
836         },
837         {
838                 .label          = "writable",
839                 .type           = P_BOOLREV,
840                 .p_class        = P_LOCAL,
841                 .offset         = LOCAL_VAR(read_only),
842                 .special        = NULL,
843                 .enum_list      = NULL,
844                 .flags          = FLAG_SYNONYM,
845         },
846         {
847                 .label          = "acl check permissions",
848                 .type           = P_BOOL,
849                 .p_class        = P_LOCAL,
850                 .offset         = LOCAL_VAR(acl_check_permissions),
851                 .special        = NULL,
852                 .enum_list      = NULL,
853                 .flags          = FLAG_DEPRECATED,
854         },
855         {
856                 .label          = "acl group control",
857                 .type           = P_BOOL,
858                 .p_class        = P_LOCAL,
859                 .offset         = LOCAL_VAR(acl_group_control),
860                 .special        = NULL,
861                 .enum_list      = NULL,
862         },
863         {
864                 .label          = "acl map full control",
865                 .type           = P_BOOL,
866                 .p_class        = P_LOCAL,
867                 .offset         = LOCAL_VAR(acl_map_full_control),
868                 .special        = NULL,
869                 .enum_list      = NULL,
870         },
871         {
872                 .label          = "acl allow execute always",
873                 .type           = P_BOOL,
874                 .p_class        = P_LOCAL,
875                 .offset         = LOCAL_VAR(acl_allow_execute_always),
876                 .special        = NULL,
877                 .enum_list      = NULL,
878         },
879
880         {
881                 .label          = "create mask",
882                 .type           = P_OCTAL,
883                 .p_class        = P_LOCAL,
884                 .offset         = LOCAL_VAR(create_mask),
885                 .special        = NULL,
886                 .enum_list      = NULL,
887         },
888         {
889                 .label          = "create mode",
890                 .type           = P_OCTAL,
891                 .p_class        = P_LOCAL,
892                 .offset         = LOCAL_VAR(create_mask),
893                 .special        = NULL,
894                 .enum_list      = NULL,
895                 .flags          = FLAG_SYNONYM,
896         },
897         {
898                 .label          = "force create mode",
899                 .type           = P_OCTAL,
900                 .p_class        = P_LOCAL,
901                 .offset         = LOCAL_VAR(force_create_mode),
902                 .special        = NULL,
903                 .enum_list      = NULL,
904         },
905         {
906                 .label          = "directory mask",
907                 .type           = P_OCTAL,
908                 .p_class        = P_LOCAL,
909                 .offset         = LOCAL_VAR(directory_mask),
910                 .special        = NULL,
911                 .enum_list      = NULL,
912         },
913         {
914                 .label          = "directory mode",
915                 .type           = P_OCTAL,
916                 .p_class        = P_LOCAL,
917                 .offset         = LOCAL_VAR(directory_mask),
918                 .special        = NULL,
919                 .enum_list      = NULL,
920                 .flags          = FLAG_SYNONYM,
921         },
922         {
923                 .label          = "force directory mode",
924                 .type           = P_OCTAL,
925                 .p_class        = P_LOCAL,
926                 .offset         = LOCAL_VAR(force_directory_mode),
927                 .special        = NULL,
928                 .enum_list      = NULL,
929         },
930         {
931                 .label          = "force unknown acl user",
932                 .type           = P_BOOL,
933                 .p_class        = P_LOCAL,
934                 .offset         = LOCAL_VAR(force_unknown_acl_user),
935                 .special        = NULL,
936                 .enum_list      = NULL,
937         },
938         {
939                 .label          = "inherit permissions",
940                 .type           = P_BOOL,
941                 .p_class        = P_LOCAL,
942                 .offset         = LOCAL_VAR(inherit_permissions),
943                 .special        = NULL,
944                 .enum_list      = NULL,
945         },
946         {
947                 .label          = "inherit acls",
948                 .type           = P_BOOL,
949                 .p_class        = P_LOCAL,
950                 .offset         = LOCAL_VAR(inherit_acls),
951                 .special        = NULL,
952                 .enum_list      = NULL,
953         },
954         {
955                 .label          = "inherit owner",
956                 .type           = P_BOOL,
957                 .p_class        = P_LOCAL,
958                 .offset         = LOCAL_VAR(inherit_owner),
959                 .special        = NULL,
960                 .enum_list      = NULL,
961         },
962         {
963                 .label          = "guest only",
964                 .type           = P_BOOL,
965                 .p_class        = P_LOCAL,
966                 .offset         = LOCAL_VAR(guest_only),
967                 .special        = NULL,
968                 .enum_list      = NULL,
969         },
970         {
971                 .label          = "only guest",
972                 .type           = P_BOOL,
973                 .p_class        = P_LOCAL,
974                 .offset         = LOCAL_VAR(guest_only),
975                 .special        = NULL,
976                 .enum_list      = NULL,
977                 .flags          = FLAG_SYNONYM,
978         },
979         {
980                 .label          = "administrative share",
981                 .type           = P_BOOL,
982                 .p_class        = P_LOCAL,
983                 .offset         = LOCAL_VAR(administrative_share),
984                 .special        = NULL,
985                 .enum_list      = NULL,
986         },
987
988         {
989                 .label          = "guest ok",
990                 .type           = P_BOOL,
991                 .p_class        = P_LOCAL,
992                 .offset         = LOCAL_VAR(guest_ok),
993                 .special        = NULL,
994                 .enum_list      = NULL,
995         },
996         {
997                 .label          = "public",
998                 .type           = P_BOOL,
999                 .p_class        = P_LOCAL,
1000                 .offset         = LOCAL_VAR(guest_ok),
1001                 .special        = NULL,
1002                 .enum_list      = NULL,
1003                 .flags          = FLAG_SYNONYM,
1004         },
1005         {
1006                 .label          = "only user",
1007                 .type           = P_BOOL,
1008                 .p_class        = P_LOCAL,
1009                 .offset         = LOCAL_VAR(only_user),
1010                 .special        = NULL,
1011                 .enum_list      = NULL,
1012                 .flags          = FLAG_DEPRECATED,
1013         },
1014         {
1015                 .label          = "hosts allow",
1016                 .type           = P_CMDLIST,
1017                 .p_class        = P_LOCAL,
1018                 .offset         = LOCAL_VAR(hosts_allow),
1019                 .special        = NULL,
1020                 .enum_list      = NULL,
1021         },
1022         {
1023                 .label          = "allow hosts",
1024                 .type           = P_CMDLIST,
1025                 .p_class        = P_LOCAL,
1026                 .offset         = LOCAL_VAR(hosts_allow),
1027                 .special        = NULL,
1028                 .enum_list      = NULL,
1029                 .flags          = FLAG_SYNONYM,
1030         },
1031         {
1032                 .label          = "hosts deny",
1033                 .type           = P_CMDLIST,
1034                 .p_class        = P_LOCAL,
1035                 .offset         = LOCAL_VAR(hosts_deny),
1036                 .special        = NULL,
1037                 .enum_list      = NULL,
1038         },
1039         {
1040                 .label          = "deny hosts",
1041                 .type           = P_CMDLIST,
1042                 .p_class        = P_LOCAL,
1043                 .offset         = LOCAL_VAR(hosts_deny),
1044                 .special        = NULL,
1045                 .enum_list      = NULL,
1046                 .flags          = FLAG_SYNONYM,
1047         },
1048         {
1049                 .label          = "preload modules",
1050                 .type           = P_CMDLIST,
1051                 .p_class        = P_GLOBAL,
1052                 .offset         = GLOBAL_VAR(preload_modules),
1053                 .special        = NULL,
1054                 .enum_list      = NULL,
1055         },
1056         {
1057                 .label          = "dedicated keytab file",
1058                 .type           = P_STRING,
1059                 .p_class        = P_GLOBAL,
1060                 .offset         = GLOBAL_VAR(dedicated_keytab_file),
1061                 .special        = NULL,
1062                 .enum_list      = NULL,
1063         },
1064         {
1065                 .label          = "kerberos method",
1066                 .type           = P_ENUM,
1067                 .p_class        = P_GLOBAL,
1068                 .offset         = GLOBAL_VAR(kerberos_method),
1069                 .special        = NULL,
1070                 .enum_list      = enum_kerberos_method,
1071         },
1072         {
1073                 .label          = "map untrusted to domain",
1074                 .type           = P_BOOL,
1075                 .p_class        = P_GLOBAL,
1076                 .offset         = GLOBAL_VAR(map_untrusted_to_domain),
1077                 .special        = NULL,
1078                 .enum_list      = NULL,
1079         },
1080         {
1081                 .label          = "log level",
1082                 .type           = P_STRING,
1083                 .p_class        = P_GLOBAL,
1084                 .offset         = GLOBAL_VAR(log_level),
1085                 .special        = handle_debug_list,
1086                 .enum_list      = NULL,
1087         },
1088         {
1089                 .label          = "debuglevel",
1090                 .type           = P_STRING,
1091                 .p_class        = P_GLOBAL,
1092                 .offset         = GLOBAL_VAR(log_level),
1093                 .special        = handle_debug_list,
1094                 .enum_list      = NULL,
1095                 .flags          = FLAG_SYNONYM,
1096         },
1097         {
1098                 .label          = "syslog",
1099                 .type           = P_INTEGER,
1100                 .p_class        = P_GLOBAL,
1101                 .offset         = GLOBAL_VAR(syslog),
1102                 .special        = NULL,
1103                 .enum_list      = NULL,
1104                 .flags          = FLAG_DEPRECATED,
1105         },
1106         {
1107                 .label          = "syslog only",
1108                 .type           = P_BOOL,
1109                 .p_class        = P_GLOBAL,
1110                 .offset         = GLOBAL_VAR(syslog_only),
1111                 .special        = NULL,
1112                 .enum_list      = NULL,
1113                 .flags          = FLAG_DEPRECATED,
1114         },
1115         {
1116                 .label          = "log file",
1117                 .type           = P_STRING,
1118                 .p_class        = P_GLOBAL,
1119                 .offset         = GLOBAL_VAR(logfile),
1120                 .special        = handle_logfile,
1121                 .enum_list      = NULL,
1122         },
1123         {
1124                 .label          = "logging",
1125                 .type           = P_STRING,
1126                 .p_class        = P_GLOBAL,
1127                 .offset         = GLOBAL_VAR(logging),
1128                 .special        = NULL,
1129                 .enum_list      = NULL,
1130         },
1131         {
1132                 .label          = "max log size",
1133                 .type           = P_BYTES,
1134                 .p_class        = P_GLOBAL,
1135                 .offset         = GLOBAL_VAR(max_log_size),
1136                 .special        = NULL,
1137                 .enum_list      = NULL,
1138         },
1139         {
1140                 .label          = "debug timestamp",
1141                 .type           = P_BOOL,
1142                 .p_class        = P_GLOBAL,
1143                 .offset         = GLOBAL_VAR(timestamp_logs),
1144                 .special        = NULL,
1145                 .enum_list      = NULL,
1146                 .flags          = FLAG_SYNONYM,
1147         },
1148         {
1149                 .label          = "timestamp logs",
1150                 .type           = P_BOOL,
1151                 .p_class        = P_GLOBAL,
1152                 .offset         = GLOBAL_VAR(timestamp_logs),
1153                 .special        = NULL,
1154                 .enum_list      = NULL,
1155         },
1156         {
1157                 .label          = "debug prefix timestamp",
1158                 .type           = P_BOOL,
1159                 .p_class        = P_GLOBAL,
1160                 .offset         = GLOBAL_VAR(debug_prefix_timestamp),
1161                 .special        = NULL,
1162                 .enum_list      = NULL,
1163         },
1164         {
1165                 .label          = "debug hires timestamp",
1166                 .type           = P_BOOL,
1167                 .p_class        = P_GLOBAL,
1168                 .offset         = GLOBAL_VAR(debug_hires_timestamp),
1169                 .special        = NULL,
1170                 .enum_list      = NULL,
1171         },
1172         {
1173                 .label          = "debug pid",
1174                 .type           = P_BOOL,
1175                 .p_class        = P_GLOBAL,
1176                 .offset         = GLOBAL_VAR(debug_pid),
1177                 .special        = NULL,
1178                 .enum_list      = NULL,
1179         },
1180         {
1181                 .label          = "debug uid",
1182                 .type           = P_BOOL,
1183                 .p_class        = P_GLOBAL,
1184                 .offset         = GLOBAL_VAR(debug_uid),
1185                 .special        = NULL,
1186                 .enum_list      = NULL,
1187         },
1188         {
1189                 .label          = "debug class",
1190                 .type           = P_BOOL,
1191                 .p_class        = P_GLOBAL,
1192                 .offset         = GLOBAL_VAR(debug_class),
1193                 .special        = NULL,
1194                 .enum_list      = NULL,
1195         },
1196         {
1197                 .label          = "enable core files",
1198                 .type           = P_BOOL,
1199                 .p_class        = P_GLOBAL,
1200                 .offset         = GLOBAL_VAR(enable_core_files),
1201                 .special        = NULL,
1202                 .enum_list      = NULL,
1203         },
1204         {
1205                 .label          = "allocation roundup size",
1206                 .type           = P_BYTES,
1207                 .p_class        = P_LOCAL,
1208                 .offset         = LOCAL_VAR(allocation_roundup_size),
1209                 .special        = NULL,
1210                 .enum_list      = NULL,
1211         },
1212         {
1213                 .label          = "aio read size",
1214                 .type           = P_BYTES,
1215                 .p_class        = P_LOCAL,
1216                 .offset         = LOCAL_VAR(aio_read_size),
1217                 .special        = NULL,
1218                 .enum_list      = NULL,
1219         },
1220         {
1221                 .label          = "aio write size",
1222                 .type           = P_BYTES,
1223                 .p_class        = P_LOCAL,
1224                 .offset         = LOCAL_VAR(aio_write_size),
1225                 .special        = NULL,
1226                 .enum_list      = NULL,
1227         },
1228         {
1229                 .label          = "aio write behind",
1230                 .type           = P_STRING,
1231                 .p_class        = P_LOCAL,
1232                 .offset         = LOCAL_VAR(aio_write_behind),
1233                 .special        = NULL,
1234                 .enum_list      = NULL,
1235         },
1236         {
1237                 .label          = "smb ports",
1238                 .type           = P_CMDLIST,
1239                 .p_class        = P_GLOBAL,
1240                 .offset         = GLOBAL_VAR(smb_ports),
1241                 .special        = handle_smb_ports,
1242                 .enum_list      = NULL,
1243         },
1244         {
1245                 .label          = "large readwrite",
1246                 .type           = P_BOOL,
1247                 .p_class        = P_GLOBAL,
1248                 .offset         = GLOBAL_VAR(large_readwrite),
1249                 .special        = NULL,
1250                 .enum_list      = NULL,
1251         },
1252         {
1253                 .label          = "server max protocol",
1254                 .type           = P_ENUM,
1255                 .p_class        = P_GLOBAL,
1256                 .offset         = GLOBAL_VAR(server_max_protocol),
1257                 .special        = NULL,
1258                 .enum_list      = enum_protocol,
1259         },
1260         {
1261                 .label          = "max protocol",
1262                 .type           = P_ENUM,
1263                 .p_class        = P_GLOBAL,
1264                 .offset         = GLOBAL_VAR(server_max_protocol),
1265                 .special        = NULL,
1266                 .enum_list      = enum_protocol,
1267                 .flags          = FLAG_SYNONYM,
1268         },
1269         {
1270                 .label          = "protocol",
1271                 .type           = P_ENUM,
1272                 .p_class        = P_GLOBAL,
1273                 .offset         = GLOBAL_VAR(server_max_protocol),
1274                 .special        = NULL,
1275                 .enum_list      = enum_protocol,
1276                 .flags          = FLAG_SYNONYM,
1277         },
1278         {
1279                 .label          = "server min protocol",
1280                 .type           = P_ENUM,
1281                 .p_class        = P_GLOBAL,
1282                 .offset         = GLOBAL_VAR(server_min_protocol),
1283                 .special        = NULL,
1284                 .enum_list      = enum_protocol,
1285         },
1286         {
1287                 .label          = "min protocol",
1288                 .type           = P_ENUM,
1289                 .p_class        = P_GLOBAL,
1290                 .offset         = GLOBAL_VAR(server_min_protocol),
1291                 .special        = NULL,
1292                 .enum_list      = enum_protocol,
1293                 .flags          = FLAG_SYNONYM,
1294         },
1295         {
1296                 .label          = "client max protocol",
1297                 .type           = P_ENUM,
1298                 .p_class        = P_GLOBAL,
1299                 .offset         = GLOBAL_VAR(_client_max_protocol),
1300                 .special        = NULL,
1301                 .enum_list      = enum_protocol,
1302         },
1303         {
1304                 .label          = "client min protocol",
1305                 .type           = P_ENUM,
1306                 .p_class        = P_GLOBAL,
1307                 .offset         = GLOBAL_VAR(client_min_protocol),
1308                 .special        = NULL,
1309                 .enum_list      = enum_protocol,
1310         },
1311         {
1312                 .label          = "unicode",
1313                 .type           = P_BOOL,
1314                 .p_class        = P_GLOBAL,
1315                 .offset         = GLOBAL_VAR(unicode),
1316                 .special        = NULL,
1317                 .enum_list      = NULL
1318         },
1319         {
1320                 .label          = "min receivefile size",
1321                 .type           = P_BYTES,
1322                 .p_class        = P_GLOBAL,
1323                 .offset         = GLOBAL_VAR(min_receivefile_size),
1324                 .special        = NULL,
1325                 .enum_list      = NULL,
1326         },
1327         {
1328                 .label          = "read raw",
1329                 .type           = P_BOOL,
1330                 .p_class        = P_GLOBAL,
1331                 .offset         = GLOBAL_VAR(read_raw),
1332                 .special        = NULL,
1333                 .enum_list      = NULL,
1334         },
1335         {
1336                 .label          = "write raw",
1337                 .type           = P_BOOL,
1338                 .p_class        = P_GLOBAL,
1339                 .offset         = GLOBAL_VAR(write_raw),
1340                 .special        = NULL,
1341                 .enum_list      = NULL,
1342         },
1343         {
1344                 .label          = "disable netbios",
1345                 .type           = P_BOOL,
1346                 .p_class        = P_GLOBAL,
1347                 .offset         = GLOBAL_VAR(disable_netbios),
1348                 .special        = NULL,
1349                 .enum_list      = NULL,
1350         },
1351         {
1352                 .label          = "reset on zero vc",
1353                 .type           = P_BOOL,
1354                 .p_class        = P_GLOBAL,
1355                 .offset         = GLOBAL_VAR(reset_on_zero_vc),
1356                 .special        = NULL,
1357                 .enum_list      = NULL,
1358         },
1359         {
1360                 .label          = "log writeable files on exit",
1361                 .type           = P_BOOL,
1362                 .p_class        = P_GLOBAL,
1363                 .offset         = GLOBAL_VAR(log_writeable_files_on_exit),
1364                 .special        = NULL,
1365                 .enum_list      = NULL,
1366         },
1367         {
1368                 .label          = "defer sharing violations",
1369                 .type           = P_BOOL,
1370                 .p_class        = P_GLOBAL,
1371                 .offset         = GLOBAL_VAR(defer_sharing_violations),
1372                 .special        = NULL,
1373                 .enum_list      = NULL,
1374         },
1375         {
1376                 .label          = "ea support",
1377                 .type           = P_BOOL,
1378                 .p_class        = P_LOCAL,
1379                 .offset         = LOCAL_VAR(ea_support),
1380                 .special        = NULL,
1381                 .enum_list      = NULL,
1382         },
1383         {
1384                 .label          = "nt acl support",
1385                 .type           = P_BOOL,
1386                 .p_class        = P_LOCAL,
1387                 .offset         = LOCAL_VAR(nt_acl_support),
1388                 .special        = NULL,
1389                 .enum_list      = NULL,
1390         },
1391         {
1392                 .label          = "nt pipe support",
1393                 .type           = P_BOOL,
1394                 .p_class        = P_GLOBAL,
1395                 .offset         = GLOBAL_VAR(nt_pipe_support),
1396                 .special        = NULL,
1397                 .enum_list      = NULL,
1398         },
1399         {
1400                 .label          = "nt status support",
1401                 .type           = P_BOOL,
1402                 .p_class        = P_GLOBAL,
1403                 .offset         = GLOBAL_VAR(nt_status_support),
1404                 .special        = NULL,
1405                 .enum_list      = NULL,
1406         },
1407         {
1408                 .label          = "smbd profiling level",
1409                 .type           = P_ENUM,
1410                 .p_class        = P_GLOBAL,
1411                 .offset         = GLOBAL_VAR(smbd_profiling_level),
1412                 .special        = NULL,
1413                 .enum_list      = enum_smbd_profiling_level,
1414         },
1415         {
1416                 .label          = "profile acls",
1417                 .type           = P_BOOL,
1418                 .p_class        = P_LOCAL,
1419                 .offset         = LOCAL_VAR(profile_acls),
1420                 .special        = NULL,
1421                 .enum_list      = NULL,
1422         },
1423         {
1424                 .label          = "map acl inherit",
1425                 .type           = P_BOOL,
1426                 .p_class        = P_LOCAL,
1427                 .offset         = LOCAL_VAR(map_acl_inherit),
1428                 .special        = NULL,
1429                 .enum_list      = NULL,
1430         },
1431         {
1432                 .label          = "afs share",
1433                 .type           = P_BOOL,
1434                 .p_class        = P_LOCAL,
1435                 .offset         = LOCAL_VAR(afs_share),
1436                 .special        = NULL,
1437                 .enum_list      = NULL,
1438         },
1439         {
1440                 .label          = "max mux",
1441                 .type           = P_INTEGER,
1442                 .p_class        = P_GLOBAL,
1443                 .offset         = GLOBAL_VAR(max_mux),
1444                 .special        = NULL,
1445                 .enum_list      = NULL,
1446         },
1447         {
1448                 .label          = "max xmit",
1449                 .type           = P_BYTES,
1450                 .p_class        = P_GLOBAL,
1451                 .offset         = GLOBAL_VAR(max_xmit),
1452                 .special        = NULL,
1453                 .enum_list      = NULL,
1454         },
1455         {
1456                 .label          = "name resolve order",
1457                 .type           = P_CMDLIST,
1458                 .p_class        = P_GLOBAL,
1459                 .offset         = GLOBAL_VAR(name_resolve_order),
1460                 .special        = NULL,
1461                 .enum_list      = NULL,
1462         },
1463         {
1464                 .label          = "max ttl",
1465                 .type           = P_INTEGER,
1466                 .p_class        = P_GLOBAL,
1467                 .offset         = GLOBAL_VAR(max_ttl),
1468                 .special        = NULL,
1469                 .enum_list      = NULL,
1470         },
1471         {
1472                 .label          = "max wins ttl",
1473                 .type           = P_INTEGER,
1474                 .p_class        = P_GLOBAL,
1475                 .offset         = GLOBAL_VAR(max_wins_ttl),
1476                 .special        = NULL,
1477                 .enum_list      = NULL,
1478         },
1479         {
1480                 .label          = "min wins ttl",
1481                 .type           = P_INTEGER,
1482                 .p_class        = P_GLOBAL,
1483                 .offset         = GLOBAL_VAR(min_wins_ttl),
1484                 .special        = NULL,
1485                 .enum_list      = NULL,
1486         },
1487         {
1488                 .label          = "time server",
1489                 .type           = P_BOOL,
1490                 .p_class        = P_GLOBAL,
1491                 .offset         = GLOBAL_VAR(time_server),
1492                 .special        = NULL,
1493                 .enum_list      = NULL,
1494         },
1495         {
1496                 .label          = "unix extensions",
1497                 .type           = P_BOOL,
1498                 .p_class        = P_GLOBAL,
1499                 .offset         = GLOBAL_VAR(unix_extensions),
1500                 .special        = NULL,
1501                 .enum_list      = NULL,
1502         },
1503         {
1504                 .label          = "use spnego",
1505                 .type           = P_BOOL,
1506                 .p_class        = P_GLOBAL,
1507                 .offset         = GLOBAL_VAR(use_spnego),
1508                 .special        = NULL,
1509                 .enum_list      = NULL,
1510                 .flags          = FLAG_DEPRECATED,
1511         },
1512         {
1513                 .label          = "client signing",
1514                 .type           = P_ENUM,
1515                 .p_class        = P_GLOBAL,
1516                 .offset         = GLOBAL_VAR(client_signing),
1517                 .special        = NULL,
1518                 .enum_list      = enum_smb_signing_vals,
1519         },
1520         {
1521                 .label          = "server signing",
1522                 .type           = P_ENUM,
1523                 .p_class        = P_GLOBAL,
1524                 .offset         = GLOBAL_VAR(server_signing),
1525                 .special        = NULL,
1526                 .enum_list      = enum_smb_signing_vals,
1527         },
1528         {
1529                 .label          = "smb encrypt",
1530                 .type           = P_ENUM,
1531                 .p_class        = P_LOCAL,
1532                 .offset         = LOCAL_VAR(smb_encrypt),
1533                 .special        = NULL,
1534                 .enum_list      = enum_smb_signing_vals,
1535         },
1536         {
1537                 .label          = "client use spnego",
1538                 .type           = P_BOOL,
1539                 .p_class        = P_GLOBAL,
1540                 .offset         = GLOBAL_VAR(client_use_spnego),
1541                 .special        = NULL,
1542                 .enum_list      = NULL,
1543         },
1544         {
1545                 .label          = "client ldap sasl wrapping",
1546                 .type           = P_ENUM,
1547                 .p_class        = P_GLOBAL,
1548                 .offset         = GLOBAL_VAR(client_ldap_sasl_wrapping),
1549                 .special        = NULL,
1550                 .enum_list      = enum_ldap_sasl_wrapping,
1551         },
1552         {
1553                 .label          = "enable asu support",
1554                 .type           = P_BOOL,
1555                 .p_class        = P_GLOBAL,
1556                 .offset         = GLOBAL_VAR(enable_asu_support),
1557                 .special        = NULL,
1558                 .enum_list      = NULL,
1559         },
1560         {
1561                 .label          = "svcctl list",
1562                 .type           = P_CMDLIST,
1563                 .p_class        = P_GLOBAL,
1564                 .offset         = GLOBAL_VAR(svcctl_list),
1565                 .special        = NULL,
1566                 .enum_list      = NULL,
1567         },
1568         {
1569                 .label          = "cldap port",
1570                 .type           = P_INTEGER,
1571                 .p_class        = P_GLOBAL,
1572                 .offset         = GLOBAL_VAR(cldap_port),
1573                 .special        = NULL,
1574                 .enum_list      = NULL
1575         },
1576         {
1577                 .label          = "dgram port",
1578                 .type           = P_INTEGER,
1579                 .p_class        = P_GLOBAL,
1580                 .offset         = GLOBAL_VAR(dgram_port),
1581                 .special        = NULL,
1582                 .enum_list      = NULL,
1583                 .flags          = FLAG_DEPRECATED
1584         },
1585         {
1586                 .label          = "nbt port",
1587                 .type           = P_INTEGER,
1588                 .p_class        = P_GLOBAL,
1589                 .offset         = GLOBAL_VAR(nbt_port),
1590                 .special        = NULL,
1591                 .enum_list      = NULL,
1592                 .flags          = FLAG_DEPRECATED
1593         },
1594         {
1595                 .label          = "krb5 port",
1596                 .type           = P_INTEGER,
1597                 .p_class        = P_GLOBAL,
1598                 .offset         = GLOBAL_VAR(krb5_port),
1599                 .special        = NULL,
1600                 .enum_list      = NULL
1601         },
1602         {
1603                 .label          = "kpasswd port",
1604                 .type           = P_INTEGER,
1605                 .p_class        = P_GLOBAL,
1606                 .offset         = GLOBAL_VAR(kpasswd_port),
1607                 .special        = NULL,
1608                 .enum_list      = NULL
1609         },
1610         {
1611                 .label          = "web port",
1612                 .type           = P_INTEGER,
1613                 .p_class        = P_GLOBAL,
1614                 .offset         = GLOBAL_VAR(web_port),
1615                 .special        = NULL,
1616                 .enum_list      = NULL
1617         },
1618         {
1619                 .label          = "rpc big endian",
1620                 .type           = P_BOOL,
1621                 .p_class        = P_GLOBAL,
1622                 .offset         = GLOBAL_VAR(rpc_big_endian),
1623                 .special        = NULL,
1624                 .enum_list      = NULL
1625         },
1626         {
1627                 .label          = "durable handles",
1628                 .type           = P_BOOL,
1629                 .p_class        = P_LOCAL,
1630                 .offset         = LOCAL_VAR(durable_handles),
1631                 .special        = NULL,
1632                 .enum_list      = NULL,
1633         },
1634         {
1635                 .label          = "block size",
1636                 .type           = P_BYTES,
1637                 .p_class        = P_LOCAL,
1638                 .offset         = LOCAL_VAR(block_size),
1639                 .special        = NULL,
1640                 .enum_list      = NULL,
1641         },
1642         {
1643                 .label          = "deadtime",
1644                 .type           = P_INTEGER,
1645                 .p_class        = P_GLOBAL,
1646                 .offset         = GLOBAL_VAR(deadtime),
1647                 .special        = NULL,
1648                 .enum_list      = NULL,
1649         },
1650         {
1651                 .label          = "getwd cache",
1652                 .type           = P_BOOL,
1653                 .p_class        = P_GLOBAL,
1654                 .offset         = GLOBAL_VAR(getwd_cache),
1655                 .special        = NULL,
1656                 .enum_list      = NULL,
1657         },
1658         {
1659                 .label          = "keepalive",
1660                 .type           = P_INTEGER,
1661                 .p_class        = P_GLOBAL,
1662                 .offset         = GLOBAL_VAR(keepalive),
1663                 .special        = NULL,
1664                 .enum_list      = NULL,
1665         },
1666         {
1667                 .label          = "change notify",
1668                 .type           = P_BOOL,
1669                 .p_class        = P_GLOBAL,
1670                 .offset         = GLOBAL_VAR(change_notify),
1671                 .special        = NULL,
1672                 .enum_list      = NULL,
1673         },
1674         {
1675                 .label          = "directory name cache size",
1676                 .type           = P_INTEGER,
1677                 .p_class        = P_LOCAL,
1678                 .offset         = LOCAL_VAR(directory_name_cache_size),
1679                 .special        = NULL,
1680                 .enum_list      = NULL,
1681         },
1682         {
1683                 .label          = "kernel change notify",
1684                 .type           = P_BOOL,
1685                 .p_class        = P_GLOBAL,
1686                 .offset         = GLOBAL_VAR(kernel_change_notify),
1687                 .special        = NULL,
1688                 .enum_list      = NULL,
1689         },
1690         {
1691                 .label          = "lpq cache time",
1692                 .type           = P_INTEGER,
1693                 .p_class        = P_GLOBAL,
1694                 .offset         = GLOBAL_VAR(lpq_cache_time),
1695                 .special        = NULL,
1696                 .enum_list      = NULL,
1697         },
1698         {
1699                 .label          = "max smbd processes",
1700                 .type           = P_INTEGER,
1701                 .p_class        = P_GLOBAL,
1702                 .offset         = GLOBAL_VAR(max_smbd_processes),
1703                 .special        = NULL,
1704                 .enum_list      = NULL,
1705         },
1706         {
1707                 .label          = "max connections",
1708                 .type           = P_INTEGER,
1709                 .p_class        = P_LOCAL,
1710                 .offset         = LOCAL_VAR(max_connections),
1711                 .special        = NULL,
1712                 .enum_list      = NULL,
1713         },
1714         {
1715                 .label          = "max disk size",
1716                 .type           = P_BYTES,
1717                 .p_class        = P_GLOBAL,
1718                 .offset         = GLOBAL_VAR(max_disk_size),
1719                 .special        = NULL,
1720                 .enum_list      = NULL,
1721         },
1722         {
1723                 .label          = "max open files",
1724                 .type           = P_INTEGER,
1725                 .p_class        = P_GLOBAL,
1726                 .offset         = GLOBAL_VAR(max_open_files),
1727                 .special        = NULL,
1728                 .enum_list      = NULL,
1729         },
1730         {
1731                 .label          = "min print space",
1732                 .type           = P_INTEGER,
1733                 .p_class        = P_LOCAL,
1734                 .offset         = LOCAL_VAR(min_print_space),
1735                 .special        = NULL,
1736                 .enum_list      = NULL,
1737         },
1738         {
1739                 .label          = "socket options",
1740                 .type           = P_STRING,
1741                 .p_class        = P_GLOBAL,
1742                 .offset         = GLOBAL_VAR(socket_options),
1743                 .special        = NULL,
1744                 .enum_list      = NULL,
1745         },
1746         {
1747                 .label          = "strict allocate",
1748                 .type           = P_BOOL,
1749                 .p_class        = P_LOCAL,
1750                 .offset         = LOCAL_VAR(strict_allocate),
1751                 .special        = NULL,
1752                 .enum_list      = NULL,
1753         },
1754         {
1755                 .label          = "strict rename",
1756                 .type           = P_BOOL,
1757                 .p_class        = P_LOCAL,
1758                 .offset         = LOCAL_VAR(strict_rename),
1759                 .special        = NULL,
1760                 .enum_list      = NULL,
1761         },
1762         {
1763                 .label          = "strict sync",
1764                 .type           = P_BOOL,
1765                 .p_class        = P_LOCAL,
1766                 .offset         = LOCAL_VAR(strict_sync),
1767                 .special        = NULL,
1768                 .enum_list      = NULL,
1769         },
1770         {
1771                 .label          = "sync always",
1772                 .type           = P_BOOL,
1773                 .p_class        = P_LOCAL,
1774                 .offset         = LOCAL_VAR(sync_always),
1775                 .special        = NULL,
1776                 .enum_list      = NULL,
1777         },
1778         {
1779                 .label          = "use mmap",
1780                 .type           = P_BOOL,
1781                 .p_class        = P_GLOBAL,
1782                 .offset         = GLOBAL_VAR(use_mmap),
1783                 .special        = NULL,
1784                 .enum_list      = NULL,
1785         },
1786         {
1787                 .label          = "use sendfile",
1788                 .type           = P_BOOL,
1789                 .p_class        = P_LOCAL,
1790                 .offset         = LOCAL_VAR(_use_sendfile),
1791                 .special        = NULL,
1792                 .enum_list      = NULL,
1793         },
1794         {
1795                 .label          = "hostname lookups",
1796                 .type           = P_BOOL,
1797                 .p_class        = P_GLOBAL,
1798                 .offset         = GLOBAL_VAR(hostname_lookups),
1799                 .special        = NULL,
1800                 .enum_list      = NULL,
1801         },
1802         {
1803                 .label          = "write cache size",
1804                 .type           = P_BYTES,
1805                 .p_class        = P_LOCAL,
1806                 .offset         = LOCAL_VAR(write_cache_size),
1807                 .special        = NULL,
1808                 .enum_list      = NULL,
1809         },
1810         {
1811                 .label          = "name cache timeout",
1812                 .type           = P_INTEGER,
1813                 .p_class        = P_GLOBAL,
1814                 .offset         = GLOBAL_VAR(name_cache_timeout),
1815                 .special        = NULL,
1816                 .enum_list      = NULL,
1817         },
1818         {
1819                 .label          = "ctdbd socket",
1820                 .type           = P_STRING,
1821                 .p_class        = P_GLOBAL,
1822                 .offset         = GLOBAL_VAR(_ctdbd_socket),
1823                 .special        = NULL,
1824                 .enum_list      = NULL,
1825         },
1826         {
1827                 .label          = "cluster addresses",
1828                 .type           = P_CMDLIST,
1829                 .p_class        = P_GLOBAL,
1830                 .offset         = GLOBAL_VAR(cluster_addresses),
1831                 .special        = NULL,
1832                 .enum_list      = NULL,
1833         },
1834         {
1835                 .label          = "clustering",
1836                 .type           = P_BOOL,
1837                 .p_class        = P_GLOBAL,
1838                 .offset         = GLOBAL_VAR(clustering),
1839                 .special        = NULL,
1840                 .enum_list      = NULL,
1841         },
1842         {
1843                 .label          = "ctdb timeout",
1844                 .type           = P_INTEGER,
1845                 .p_class        = P_GLOBAL,
1846                 .offset         = GLOBAL_VAR(ctdb_timeout),
1847                 .special        = NULL,
1848                 .enum_list      = NULL,
1849         },
1850         {
1851                 .label          = "ctdb locktime warn threshold",
1852                 .type           = P_INTEGER,
1853                 .p_class        = P_GLOBAL,
1854                 .offset         = GLOBAL_VAR(ctdb_locktime_warn_threshold),
1855                 .special        = NULL,
1856                 .enum_list      = NULL,
1857         },
1858         {
1859                 .label          = "smb2 max read",
1860                 .type           = P_BYTES,
1861                 .p_class        = P_GLOBAL,
1862                 .offset         = GLOBAL_VAR(smb2_max_read),
1863                 .special        = NULL,
1864                 .enum_list      = NULL,
1865         },
1866         {
1867                 .label          = "smb2 max write",
1868                 .type           = P_BYTES,
1869                 .p_class        = P_GLOBAL,
1870                 .offset         = GLOBAL_VAR(smb2_max_write),
1871                 .special        = NULL,
1872                 .enum_list      = NULL,
1873         },
1874         {
1875                 .label          = "smb2 max trans",
1876                 .type           = P_BYTES,
1877                 .p_class        = P_GLOBAL,
1878                 .offset         = GLOBAL_VAR(smb2_max_trans),
1879                 .special        = NULL,
1880                 .enum_list      = NULL,
1881         },
1882         {
1883                 .label          = "smb2 max credits",
1884                 .type           = P_INTEGER,
1885                 .p_class        = P_GLOBAL,
1886                 .offset         = GLOBAL_VAR(smb2_max_credits),
1887                 .special        = handle_smb2_max_credits,
1888                 .enum_list      = NULL,
1889         },
1890         {
1891                 .label          = "max reported print jobs",
1892                 .type           = P_INTEGER,
1893                 .p_class        = P_LOCAL,
1894                 .offset         = LOCAL_VAR(max_reported_print_jobs),
1895                 .special        = NULL,
1896                 .enum_list      = NULL,
1897         },
1898         {
1899                 .label          = "max print jobs",
1900                 .type           = P_INTEGER,
1901                 .p_class        = P_LOCAL,
1902                 .offset         = LOCAL_VAR(max_print_jobs),
1903                 .special        = NULL,
1904                 .enum_list      = NULL,
1905         },
1906         {
1907                 .label          = "load printers",
1908                 .type           = P_BOOL,
1909                 .p_class        = P_GLOBAL,
1910                 .offset         = GLOBAL_VAR(load_printers),
1911                 .special        = NULL,
1912                 .enum_list      = NULL,
1913         },
1914         {
1915                 .label          = "printcap cache time",
1916                 .type           = P_INTEGER,
1917                 .p_class        = P_GLOBAL,
1918                 .offset         = GLOBAL_VAR(printcap_cache_time),
1919                 .special        = NULL,
1920                 .enum_list      = NULL,
1921         },
1922         {
1923                 .label          = "printcap name",
1924                 .type           = P_STRING,
1925                 .p_class        = P_GLOBAL,
1926                 .offset         = GLOBAL_VAR(printcap_name),
1927                 .special        = NULL,
1928                 .enum_list      = NULL,
1929         },
1930         {
1931                 .label          = "printcap",
1932                 .type           = P_STRING,
1933                 .p_class        = P_GLOBAL,
1934                 .offset         = GLOBAL_VAR(printcap_name),
1935                 .special        = NULL,
1936                 .enum_list      = NULL,
1937                 .flags          = FLAG_SYNONYM,
1938         },
1939         {
1940                 .label          = "printable",
1941                 .type           = P_BOOL,
1942                 .p_class        = P_LOCAL,
1943                 .offset         = LOCAL_VAR(printable),
1944                 .special        = NULL,
1945                 .enum_list      = NULL,
1946         },
1947         {
1948                 .label          = "print notify backchannel",
1949                 .type           = P_BOOL,
1950                 .p_class        = P_LOCAL,
1951                 .offset         = LOCAL_VAR(print_notify_backchannel),
1952                 .special        = NULL,
1953                 .enum_list      = NULL,
1954         },
1955         {
1956                 .label          = "print ok",
1957                 .type           = P_BOOL,
1958                 .p_class        = P_LOCAL,
1959                 .offset         = LOCAL_VAR(printable),
1960                 .special        = NULL,
1961                 .enum_list      = NULL,
1962                 .flags          = FLAG_SYNONYM,
1963         },
1964         {
1965                 .label          = "printing",
1966                 .type           = P_ENUM,
1967                 .p_class        = P_LOCAL,
1968                 .offset         = LOCAL_VAR(printing),
1969                 .special        = handle_printing,
1970                 .enum_list      = enum_printing,
1971         },
1972         {
1973                 .label          = "cups options",
1974                 .type           = P_STRING,
1975                 .p_class        = P_LOCAL,
1976                 .offset         = LOCAL_VAR(cups_options),
1977                 .special        = NULL,
1978                 .enum_list      = NULL,
1979         },
1980         {
1981                 .label          = "cups server",
1982                 .type           = P_STRING,
1983                 .p_class        = P_GLOBAL,
1984                 .offset         = GLOBAL_VAR(cups_server),
1985                 .special        = NULL,
1986                 .enum_list      = NULL,
1987         },
1988         {
1989                 .label          = "cups encrypt",
1990                 .type           = P_ENUM,
1991                 .p_class        = P_GLOBAL,
1992                 .offset         = GLOBAL_VAR(cups_encrypt),
1993                 .special        = NULL,
1994                 .enum_list      = enum_bool_auto,
1995         },
1996         {
1997
1998                 .label          = "cups connection timeout",
1999                 .type           = P_INTEGER,
2000                 .p_class        = P_GLOBAL,
2001                 .offset         = GLOBAL_VAR(cups_connection_timeout),
2002                 .special        = NULL,
2003                 .enum_list      = NULL,
2004         },
2005         {
2006                 .label          = "iprint server",
2007                 .type           = P_STRING,
2008                 .p_class        = P_GLOBAL,
2009                 .offset         = GLOBAL_VAR(iprint_server),
2010                 .special        = NULL,
2011                 .enum_list      = NULL,
2012         },
2013         {
2014                 .label          = "print command",
2015                 .type           = P_STRING,
2016                 .p_class        = P_LOCAL,
2017                 .offset         = LOCAL_VAR(print_command),
2018                 .special        = NULL,
2019                 .enum_list      = NULL,
2020         },
2021         {
2022                 .label          = "disable spoolss",
2023                 .type           = P_BOOL,
2024                 .p_class        = P_GLOBAL,
2025                 .offset         = GLOBAL_VAR(_disable_spoolss),
2026                 .special        = NULL,
2027                 .enum_list      = NULL,
2028         },
2029         {
2030                 .label          = "enable spoolss",
2031                 .type           = P_BOOLREV,
2032                 .p_class        = P_GLOBAL,
2033                 .offset         = GLOBAL_VAR(_disable_spoolss),
2034                 .special        = NULL,
2035                 .enum_list      = NULL,
2036                 .flags          = FLAG_SYNONYM,
2037         },
2038         {
2039                 .label          = "lpq command",
2040                 .type           = P_STRING,
2041                 .p_class        = P_LOCAL,
2042                 .offset         = LOCAL_VAR(lpq_command),
2043                 .special        = NULL,
2044                 .enum_list      = NULL,
2045         },
2046         {
2047                 .label          = "lprm command",
2048                 .type           = P_STRING,
2049                 .p_class        = P_LOCAL,
2050                 .offset         = LOCAL_VAR(lprm_command),
2051                 .special        = NULL,
2052                 .enum_list      = NULL,
2053         },
2054         {
2055                 .label          = "lppause command",
2056                 .type           = P_STRING,
2057                 .p_class        = P_LOCAL,
2058                 .offset         = LOCAL_VAR(lppause_command),
2059                 .special        = NULL,
2060                 .enum_list      = NULL,
2061         },
2062         {
2063                 .label          = "lpresume command",
2064                 .type           = P_STRING,
2065                 .p_class        = P_LOCAL,
2066                 .offset         = LOCAL_VAR(lpresume_command),
2067                 .special        = NULL,
2068                 .enum_list      = NULL,
2069         },
2070         {
2071                 .label          = "queuepause command",
2072                 .type           = P_STRING,
2073                 .p_class        = P_LOCAL,
2074                 .offset         = LOCAL_VAR(queuepause_command),
2075                 .special        = NULL,
2076                 .enum_list      = NULL,
2077         },
2078         {
2079                 .label          = "queueresume command",
2080                 .type           = P_STRING,
2081                 .p_class        = P_LOCAL,
2082                 .offset         = LOCAL_VAR(queueresume_command),
2083                 .special        = NULL,
2084                 .enum_list      = NULL,
2085         },
2086         {
2087                 .label          = "addport command",
2088                 .type           = P_STRING,
2089                 .p_class        = P_GLOBAL,
2090                 .offset         = GLOBAL_VAR(addport_command),
2091                 .special        = NULL,
2092                 .enum_list      = NULL,
2093         },
2094         {
2095                 .label          = "enumports command",
2096                 .type           = P_STRING,
2097                 .p_class        = P_GLOBAL,
2098                 .offset         = GLOBAL_VAR(enumports_command),
2099                 .special        = NULL,
2100                 .enum_list      = NULL,
2101         },
2102         {
2103                 .label          = "addprinter command",
2104                 .type           = P_STRING,
2105                 .p_class        = P_GLOBAL,
2106                 .offset         = GLOBAL_VAR(addprinter_command),
2107                 .special        = NULL,
2108                 .enum_list      = NULL,
2109         },
2110         {
2111                 .label          = "deleteprinter command",
2112                 .type           = P_STRING,
2113                 .p_class        = P_GLOBAL,
2114                 .offset         = GLOBAL_VAR(deleteprinter_command),
2115                 .special        = NULL,
2116                 .enum_list      = NULL,
2117         },
2118         {
2119                 .label          = "show add printer wizard",
2120                 .type           = P_BOOL,
2121                 .p_class        = P_GLOBAL,
2122                 .offset         = GLOBAL_VAR(show_add_printer_wizard),
2123                 .special        = NULL,
2124                 .enum_list      = NULL,
2125         },
2126         {
2127                 .label          = "os2 driver map",
2128                 .type           = P_STRING,
2129                 .p_class        = P_GLOBAL,
2130                 .offset         = GLOBAL_VAR(os2_driver_map),
2131                 .special        = NULL,
2132                 .enum_list      = NULL,
2133         },
2134
2135         {
2136                 .label          = "printer name",
2137                 .type           = P_STRING,
2138                 .p_class        = P_LOCAL,
2139                 .offset         = LOCAL_VAR(_printername),
2140                 .special        = NULL,
2141                 .enum_list      = NULL,
2142         },
2143         {
2144                 .label          = "printer",
2145                 .type           = P_STRING,
2146                 .p_class        = P_LOCAL,
2147                 .offset         = LOCAL_VAR(_printername),
2148                 .special        = NULL,
2149                 .enum_list      = NULL,
2150                 .flags          = FLAG_SYNONYM,
2151         },
2152         {
2153                 .label          = "use client driver",
2154                 .type           = P_BOOL,
2155                 .p_class        = P_LOCAL,
2156                 .offset         = LOCAL_VAR(use_client_driver),
2157                 .special        = NULL,
2158                 .enum_list      = NULL,
2159         },
2160         {
2161                 .label          = "default devmode",
2162                 .type           = P_BOOL,
2163                 .p_class        = P_LOCAL,
2164                 .offset         = LOCAL_VAR(default_devmode),
2165                 .special        = NULL,
2166                 .enum_list      = NULL,
2167         },
2168         {
2169                 .label          = "force printername",
2170                 .type           = P_BOOL,
2171                 .p_class        = P_LOCAL,
2172                 .offset         = LOCAL_VAR(force_printername),
2173                 .special        = NULL,
2174                 .enum_list      = NULL,
2175         },
2176         {
2177                 .label          = "printjob username",
2178                 .type           = P_STRING,
2179                 .p_class        = P_LOCAL,
2180                 .offset         = LOCAL_VAR(printjob_username),
2181                 .special        = NULL,
2182                 .enum_list      = NULL,
2183         },
2184         {
2185                 .label          = "mangling method",
2186                 .type           = P_STRING,
2187                 .p_class        = P_GLOBAL,
2188                 .offset         = GLOBAL_VAR(mangling_method),
2189                 .special        = NULL,
2190                 .enum_list      = NULL,
2191         },
2192         {
2193                 .label          = "mangle prefix",
2194                 .type           = P_INTEGER,
2195                 .p_class        = P_GLOBAL,
2196                 .offset         = GLOBAL_VAR(mangle_prefix),
2197                 .special        = NULL,
2198                 .enum_list      = NULL,
2199         },
2200
2201         {
2202                 .label          = "default case",
2203                 .type           = P_ENUM,
2204                 .p_class        = P_LOCAL,
2205                 .offset         = LOCAL_VAR(default_case),
2206                 .special        = NULL,
2207                 .enum_list      = enum_case,
2208         },
2209         {
2210                 .label          = "case sensitive",
2211                 .type           = P_ENUM,
2212                 .p_class        = P_LOCAL,
2213                 .offset         = LOCAL_VAR(case_sensitive),
2214                 .special        = NULL,
2215                 .enum_list      = enum_bool_auto,
2216         },
2217         {
2218                 .label          = "casesignames",
2219                 .type           = P_ENUM,
2220                 .p_class        = P_LOCAL,
2221                 .offset         = LOCAL_VAR(case_sensitive),
2222                 .special        = NULL,
2223                 .enum_list      = enum_bool_auto,
2224                 .flags          = FLAG_SYNONYM,
2225         },
2226         {
2227                 .label          = "preserve case",
2228                 .type           = P_BOOL,
2229                 .p_class        = P_LOCAL,
2230                 .offset         = LOCAL_VAR(preserve_case),
2231                 .special        = NULL,
2232                 .enum_list      = NULL,
2233         },
2234         {
2235                 .label          = "short preserve case",
2236                 .type           = P_BOOL,
2237                 .p_class        = P_LOCAL,
2238                 .offset         = LOCAL_VAR(short_preserve_case),
2239                 .special        = NULL,
2240                 .enum_list      = NULL,
2241         },
2242         {
2243                 .label          = "mangling char",
2244                 .type           = P_CHAR,
2245                 .p_class        = P_LOCAL,
2246                 .offset         = LOCAL_VAR(mangling_char),
2247                 .special        = NULL,
2248                 .enum_list      = NULL,
2249         },
2250         {
2251                 .label          = "hide dot files",
2252                 .type           = P_BOOL,
2253                 .p_class        = P_LOCAL,
2254                 .offset         = LOCAL_VAR(hide_dot_files),
2255                 .special        = NULL,
2256                 .enum_list      = NULL,
2257         },
2258         {
2259                 .label          = "hide special files",
2260                 .type           = P_BOOL,
2261                 .p_class        = P_LOCAL,
2262                 .offset         = LOCAL_VAR(hide_special_files),
2263                 .special        = NULL,
2264                 .enum_list      = NULL,
2265         },
2266         {
2267                 .label          = "hide unreadable",
2268                 .type           = P_BOOL,
2269                 .p_class        = P_LOCAL,
2270                 .offset         = LOCAL_VAR(hide_unreadable),
2271                 .special        = NULL,
2272                 .enum_list      = NULL,
2273         },
2274         {
2275                 .label          = "hide unwriteable files",
2276                 .type           = P_BOOL,
2277                 .p_class        = P_LOCAL,
2278                 .offset         = LOCAL_VAR(hide_unwriteable_files),
2279                 .special        = NULL,
2280                 .enum_list      = NULL,
2281         },
2282         {
2283                 .label          = "delete veto files",
2284                 .type           = P_BOOL,
2285                 .p_class        = P_LOCAL,
2286                 .offset         = LOCAL_VAR(delete_veto_files),
2287                 .special        = NULL,
2288                 .enum_list      = NULL,
2289         },
2290         {
2291                 .label          = "veto files",
2292                 .type           = P_STRING,
2293                 .p_class        = P_LOCAL,
2294                 .offset         = LOCAL_VAR(veto_files),
2295                 .special        = NULL,
2296                 .enum_list      = NULL,
2297         },
2298         {
2299                 .label          = "hide files",
2300                 .type           = P_STRING,
2301                 .p_class        = P_LOCAL,
2302                 .offset         = LOCAL_VAR(hide_files),
2303                 .special        = NULL,
2304                 .enum_list      = NULL,
2305         },
2306         {
2307                 .label          = "veto oplock files",
2308                 .type           = P_STRING,
2309                 .p_class        = P_LOCAL,
2310                 .offset         = LOCAL_VAR(veto_oplock_files),
2311                 .special        = NULL,
2312                 .enum_list      = NULL,
2313         },
2314         {
2315                 .label          = "map archive",
2316                 .type           = P_BOOL,
2317                 .p_class        = P_LOCAL,
2318                 .offset         = LOCAL_VAR(map_archive),
2319                 .special        = NULL,
2320                 .enum_list      = NULL,
2321         },
2322         {
2323                 .label          = "map hidden",
2324                 .type           = P_BOOL,
2325                 .p_class        = P_LOCAL,
2326                 .offset         = LOCAL_VAR(map_hidden),
2327                 .special        = NULL,
2328                 .enum_list      = NULL,
2329         },
2330         {
2331                 .label          = "map system",
2332                 .type           = P_BOOL,
2333                 .p_class        = P_LOCAL,
2334                 .offset         = LOCAL_VAR(map_system),
2335                 .special        = NULL,
2336                 .enum_list      = NULL,
2337         },
2338         {
2339                 .label          = "map readonly",
2340                 .type           = P_ENUM,
2341                 .p_class        = P_LOCAL,
2342                 .offset         = LOCAL_VAR(map_readonly),
2343                 .special        = NULL,
2344                 .enum_list      = enum_map_readonly,
2345         },
2346         {
2347                 .label          = "mangled names",
2348                 .type           = P_BOOL,
2349                 .p_class        = P_LOCAL,
2350                 .offset         = LOCAL_VAR(mangled_names),
2351                 .special        = NULL,
2352                 .enum_list      = NULL,
2353         },
2354         {
2355                 .label          = "max stat cache size",
2356                 .type           = P_INTEGER,
2357                 .p_class        = P_GLOBAL,
2358                 .offset         = GLOBAL_VAR(max_stat_cache_size),
2359                 .special        = NULL,
2360                 .enum_list      = NULL,
2361         },
2362         {
2363                 .label          = "stat cache",
2364                 .type           = P_BOOL,
2365                 .p_class        = P_GLOBAL,
2366                 .offset         = GLOBAL_VAR(stat_cache),
2367                 .special        = NULL,
2368                 .enum_list      = NULL,
2369         },
2370         {
2371                 .label          = "store dos attributes",
2372                 .type           = P_BOOL,
2373                 .p_class        = P_LOCAL,
2374                 .offset         = LOCAL_VAR(store_dos_attributes),
2375                 .special        = NULL,
2376                 .enum_list      = NULL,
2377         },
2378         {
2379                 .label          = "dmapi support",
2380                 .type           = P_BOOL,
2381                 .p_class        = P_LOCAL,
2382                 .offset         = LOCAL_VAR(dmapi_support),
2383                 .special        = NULL,
2384                 .enum_list      = NULL,
2385         },
2386         {
2387                 .label          = "machine password timeout",
2388                 .type           = P_INTEGER,
2389                 .p_class        = P_GLOBAL,
2390                 .offset         = GLOBAL_VAR(machine_password_timeout),
2391                 .special        = NULL,
2392                 .enum_list      = NULL,
2393         },
2394         {
2395                 .label          = "add user script",
2396                 .type           = P_STRING,
2397                 .p_class        = P_GLOBAL,
2398                 .offset         = GLOBAL_VAR(add_user_script),
2399                 .special        = NULL,
2400                 .enum_list      = NULL,
2401         },
2402         {
2403                 .label          = "rename user script",
2404                 .type           = P_STRING,
2405                 .p_class        = P_GLOBAL,
2406                 .offset         = GLOBAL_VAR(rename_user_script),
2407                 .special        = NULL,
2408                 .enum_list      = NULL,
2409         },
2410         {
2411                 .label          = "delete user script",
2412                 .type           = P_STRING,
2413                 .p_class        = P_GLOBAL,
2414                 .offset         = GLOBAL_VAR(delete_user_script),
2415                 .special        = NULL,
2416                 .enum_list      = NULL,
2417         },
2418         {
2419                 .label          = "add group script",
2420                 .type           = P_STRING,
2421                 .p_class        = P_GLOBAL,
2422                 .offset         = GLOBAL_VAR(add_group_script),
2423                 .special        = NULL,
2424                 .enum_list      = NULL,
2425         },
2426         {
2427                 .label          = "delete group script",
2428                 .type           = P_STRING,
2429                 .p_class        = P_GLOBAL,
2430                 .offset         = GLOBAL_VAR(delete_group_script),
2431                 .special        = NULL,
2432                 .enum_list      = NULL,
2433         },
2434         {
2435                 .label          = "add user to group script",
2436                 .type           = P_STRING,
2437                 .p_class        = P_GLOBAL,
2438                 .offset         = GLOBAL_VAR(add_user_to_group_script),
2439                 .special        = NULL,
2440                 .enum_list      = NULL,
2441         },
2442         {
2443                 .label          = "delete user from group script",
2444                 .type           = P_STRING,
2445                 .p_class        = P_GLOBAL,
2446                 .offset         = GLOBAL_VAR(delete_user_from_group_script),
2447                 .special        = NULL,
2448                 .enum_list      = NULL,
2449         },
2450         {
2451                 .label          = "set primary group script",
2452                 .type           = P_STRING,
2453                 .p_class        = P_GLOBAL,
2454                 .offset         = GLOBAL_VAR(set_primary_group_script),
2455                 .special        = NULL,
2456                 .enum_list      = NULL,
2457         },
2458         {
2459                 .label          = "add machine script",
2460                 .type           = P_STRING,
2461                 .p_class        = P_GLOBAL,
2462                 .offset         = GLOBAL_VAR(add_machine_script),
2463                 .special        = NULL,
2464                 .enum_list      = NULL,
2465         },
2466         {
2467                 .label          = "shutdown script",
2468                 .type           = P_STRING,
2469                 .p_class        = P_GLOBAL,
2470                 .offset         = GLOBAL_VAR(shutdown_script),
2471                 .special        = NULL,
2472                 .enum_list      = NULL,
2473         },
2474         {
2475                 .label          = "abort shutdown script",
2476                 .type           = P_STRING,
2477                 .p_class        = P_GLOBAL,
2478                 .offset         = GLOBAL_VAR(abort_shutdown_script),
2479                 .special        = NULL,
2480                 .enum_list      = NULL,
2481         },
2482         {
2483                 .label          = "username map script",
2484                 .type           = P_STRING,
2485                 .p_class        = P_GLOBAL,
2486                 .offset         = GLOBAL_VAR(username_map_script),
2487                 .special        = NULL,
2488                 .enum_list      = NULL,
2489         },
2490         {
2491                 .label          = "username map cache time",
2492                 .type           = P_INTEGER,
2493                 .p_class        = P_GLOBAL,
2494                 .offset         = GLOBAL_VAR(username_map_cache_time),
2495                 .special        = NULL,
2496                 .enum_list      = NULL,
2497         },
2498         {
2499                 .label          = "logon script",
2500                 .type           = P_STRING,
2501                 .p_class        = P_GLOBAL,
2502                 .offset         = GLOBAL_VAR(logon_script),
2503                 .special        = NULL,
2504                 .enum_list      = NULL,
2505         },
2506         {
2507                 .label          = "logon path",
2508                 .type           = P_STRING,
2509                 .p_class        = P_GLOBAL,
2510                 .offset         = GLOBAL_VAR(logon_path),
2511                 .special        = NULL,
2512                 .enum_list      = NULL,
2513         },
2514         {
2515                 .label          = "logon drive",
2516                 .type           = P_STRING,
2517                 .p_class        = P_GLOBAL,
2518                 .offset         = GLOBAL_VAR(logon_drive),
2519                 .special        = NULL,
2520                 .enum_list      = NULL,
2521         },
2522         {
2523                 .label          = "logon home",
2524                 .type           = P_STRING,
2525                 .p_class        = P_GLOBAL,
2526                 .offset         = GLOBAL_VAR(logon_home),
2527                 .special        = NULL,
2528                 .enum_list      = NULL,
2529         },
2530         {
2531                 .label          = "domain logons",
2532                 .type           = P_BOOL,
2533                 .p_class        = P_GLOBAL,
2534                 .offset         = GLOBAL_VAR(_domain_logons),
2535                 .special        = NULL,
2536                 .enum_list      = NULL,
2537         },
2538
2539         {
2540                 .label          = "init logon delayed hosts",
2541                 .type           = P_CMDLIST,
2542                 .p_class        = P_GLOBAL,
2543                 .offset         = GLOBAL_VAR(init_logon_delayed_hosts),
2544                 .special        = NULL,
2545                 .enum_list      = NULL,
2546         },
2547
2548         {
2549                 .label          = "init logon delay",
2550                 .type           = P_INTEGER,
2551                 .p_class        = P_GLOBAL,
2552                 .offset         = GLOBAL_VAR(init_logon_delay),
2553                 .special        = NULL,
2554                 .enum_list      = NULL,
2555
2556         },
2557         {
2558                 .label          = "os level",
2559                 .type           = P_INTEGER,
2560                 .p_class        = P_GLOBAL,
2561                 .offset         = GLOBAL_VAR(os_level),
2562                 .special        = NULL,
2563                 .enum_list      = NULL,
2564         },
2565         {
2566                 .label          = "lm announce",
2567                 .type           = P_ENUM,
2568                 .p_class        = P_GLOBAL,
2569                 .offset         = GLOBAL_VAR(lm_announce),
2570                 .special        = NULL,
2571                 .enum_list      = enum_bool_auto,
2572         },
2573         {
2574                 .label          = "lm interval",
2575                 .type           = P_INTEGER,
2576                 .p_class        = P_GLOBAL,
2577                 .offset         = GLOBAL_VAR(lm_interval),
2578                 .special        = NULL,
2579                 .enum_list      = NULL,
2580         },
2581         {
2582                 .label          = "preferred master",
2583                 .type           = P_ENUM,
2584                 .p_class        = P_GLOBAL,
2585                 .offset         = GLOBAL_VAR(_preferred_master),
2586                 .special        = NULL,
2587                 .enum_list      = enum_bool_auto,
2588         },
2589         {
2590                 .label          = "prefered master",
2591                 .type           = P_ENUM,
2592                 .p_class        = P_GLOBAL,
2593                 .offset         = GLOBAL_VAR(_preferred_master),
2594                 .special        = NULL,
2595                 .enum_list      = enum_bool_auto,
2596                 .flags          = FLAG_SYNONYM,
2597         },
2598         {
2599                 .label          = "local master",
2600                 .type           = P_BOOL,
2601                 .p_class        = P_GLOBAL,
2602                 .offset         = GLOBAL_VAR(local_master),
2603                 .special        = NULL,
2604                 .enum_list      = NULL,
2605         },
2606         {
2607                 .label          = "domain master",
2608                 .type           = P_ENUM,
2609                 .p_class        = P_GLOBAL,
2610                 .offset         = GLOBAL_VAR(_domain_master),
2611                 .special        = NULL,
2612                 .enum_list      = enum_bool_auto,
2613         },
2614         {
2615                 .label          = "browse list",
2616                 .type           = P_BOOL,
2617                 .p_class        = P_GLOBAL,
2618                 .offset         = GLOBAL_VAR(browse_list),
2619                 .special        = NULL,
2620                 .enum_list      = NULL,
2621         },
2622         {
2623                 .label          = "browseable",
2624                 .type           = P_BOOL,
2625                 .p_class        = P_LOCAL,
2626                 .offset         = LOCAL_VAR(browseable),
2627                 .special        = NULL,
2628                 .enum_list      = NULL,
2629         },
2630         {
2631                 .label          = "browsable",
2632                 .type           = P_BOOL,
2633                 .p_class        = P_LOCAL,
2634                 .offset         = LOCAL_VAR(browseable),
2635                 .special        = NULL,
2636                 .enum_list      = NULL,
2637                 .flags          = FLAG_SYNONYM,
2638         },
2639         {
2640                 .label          = "access based share enum",
2641                 .type           = P_BOOL,
2642                 .p_class        = P_LOCAL,
2643                 .offset         = LOCAL_VAR(access_based_share_enum),
2644                 .special        = NULL,
2645                 .enum_list      = NULL,
2646         },
2647         {
2648                 .label          = "enhanced browsing",
2649                 .type           = P_BOOL,
2650                 .p_class        = P_GLOBAL,
2651                 .offset         = GLOBAL_VAR(enhanced_browsing),
2652                 .special        = NULL,
2653                 .enum_list      = NULL,
2654         },
2655         {
2656                 .label          = "dns proxy",
2657                 .type           = P_BOOL,
2658                 .p_class        = P_GLOBAL,
2659                 .offset         = GLOBAL_VAR(wins_dns_proxy),
2660                 .special        = NULL,
2661                 .enum_list      = NULL,
2662         },
2663         {
2664                 .label          = "wins proxy",
2665                 .type           = P_BOOL,
2666                 .p_class        = P_GLOBAL,
2667                 .offset         = GLOBAL_VAR(wins_proxy),
2668                 .special        = NULL,
2669                 .enum_list      = NULL,
2670         },
2671         {
2672                 .label          = "wins server",
2673                 .type           = P_CMDLIST,
2674                 .p_class        = P_GLOBAL,
2675                 .offset         = GLOBAL_VAR(wins_server_list),
2676                 .special        = NULL,
2677                 .enum_list      = NULL,
2678         },
2679         {
2680                 .label          = "wins support",
2681                 .type           = P_BOOL,
2682                 .p_class        = P_GLOBAL,
2683                 .offset         = GLOBAL_VAR(we_are_a_wins_server),
2684                 .special        = NULL,
2685                 .enum_list      = NULL,
2686         },
2687         {
2688                 .label          = "wins hook",
2689                 .type           = P_STRING,
2690                 .p_class        = P_GLOBAL,
2691                 .offset         = GLOBAL_VAR(wins_hook),
2692                 .special        = NULL,
2693                 .enum_list      = NULL,
2694         },
2695         {
2696                 .label          = "blocking locks",
2697                 .type           = P_BOOL,
2698                 .p_class        = P_LOCAL,
2699                 .offset         = LOCAL_VAR(blocking_locks),
2700                 .special        = NULL,
2701                 .enum_list      = NULL,
2702         },
2703         {
2704                 .label          = "csc policy",
2705                 .type           = P_ENUM,
2706                 .p_class        = P_LOCAL,
2707                 .offset         = LOCAL_VAR(csc_policy),
2708                 .special        = NULL,
2709                 .enum_list      = enum_csc_policy,
2710         },
2711         {
2712                 .label          = "fake oplocks",
2713                 .type           = P_BOOL,
2714                 .p_class        = P_LOCAL,
2715                 .offset         = LOCAL_VAR(fake_oplocks),
2716                 .special        = NULL,
2717                 .enum_list      = NULL,
2718         },
2719         {
2720                 .label          = "kernel oplocks",
2721                 .type           = P_BOOL,
2722                 .p_class        = P_LOCAL,
2723                 .offset         = LOCAL_VAR(kernel_oplocks),
2724                 .special        = NULL,
2725                 .enum_list      = NULL,
2726         },
2727         {
2728                 .label          = "kernel share modes",
2729                 .type           = P_BOOL,
2730                 .p_class        = P_LOCAL,
2731                 .offset         = LOCAL_VAR(kernel_share_modes),
2732                 .special        = NULL,
2733                 .enum_list      = NULL,
2734         },
2735         {
2736                 .label          = "smb2 leases",
2737                 .type           = P_BOOL,
2738                 .p_class        = P_GLOBAL,
2739                 .offset         = GLOBAL_VAR(smb2_leases),
2740                 .special        = NULL,
2741                 .enum_list      = NULL,
2742         },
2743         {
2744                 .label          = "locking",
2745                 .type           = P_BOOL,
2746                 .p_class        = P_LOCAL,
2747                 .offset         = LOCAL_VAR(locking),
2748                 .special        = NULL,
2749                 .enum_list      = NULL,
2750         },
2751         {
2752                 .label          = "lock spin time",
2753                 .type           = P_INTEGER,
2754                 .p_class        = P_GLOBAL,
2755                 .offset         = GLOBAL_VAR(lock_spin_time),
2756                 .special        = NULL,
2757                 .enum_list      = NULL,
2758         },
2759         {
2760                 .label          = "oplocks",
2761                 .type           = P_BOOL,
2762                 .p_class        = P_LOCAL,
2763                 .offset         = LOCAL_VAR(oplocks),
2764                 .special        = NULL,
2765                 .enum_list      = NULL,
2766         },
2767         {
2768                 .label          = "level2 oplocks",
2769                 .type           = P_BOOL,
2770                 .p_class        = P_LOCAL,
2771                 .offset         = LOCAL_VAR(level2_oplocks),
2772                 .special        = NULL,
2773                 .enum_list      = NULL,
2774         },
2775         {
2776                 .label          = "oplock break wait time",
2777                 .type           = P_INTEGER,
2778                 .p_class        = P_GLOBAL,
2779                 .offset         = GLOBAL_VAR(oplock_break_wait_time),
2780                 .special        = NULL,
2781                 .enum_list      = NULL,
2782         },
2783         {
2784                 .label          = "oplock contention limit",
2785                 .type           = P_INTEGER,
2786                 .p_class        = P_LOCAL,
2787                 .offset         = LOCAL_VAR(oplock_contention_limit),
2788                 .special        = NULL,
2789                 .enum_list      = NULL,
2790         },
2791         {
2792                 .label          = "posix locking",
2793                 .type           = P_BOOL,
2794                 .p_class        = P_LOCAL,
2795                 .offset         = LOCAL_VAR(posix_locking),
2796                 .special        = NULL,
2797                 .enum_list      = NULL,
2798         },
2799         {
2800                 .label          = "strict locking",
2801                 .type           = P_ENUM,
2802                 .p_class        = P_LOCAL,
2803                 .offset         = LOCAL_VAR(strict_locking),
2804                 .special        = NULL,
2805                 .enum_list      = enum_bool_auto,
2806         },
2807         {
2808                 .label          = "ldap admin dn",
2809                 .type           = P_STRING,
2810                 .p_class        = P_GLOBAL,
2811                 .offset         = GLOBAL_VAR(ldap_admin_dn),
2812                 .special        = NULL,
2813                 .enum_list      = NULL,
2814         },
2815         {
2816                 .label          = "ldap delete dn",
2817                 .type           = P_BOOL,
2818                 .p_class        = P_GLOBAL,
2819                 .offset         = GLOBAL_VAR(ldap_delete_dn),
2820                 .special        = NULL,
2821                 .enum_list      = NULL,
2822         },
2823         {
2824                 .label          = "ldap group suffix",
2825                 .type           = P_STRING,
2826                 .p_class        = P_GLOBAL,
2827                 .offset         = GLOBAL_VAR(_ldap_group_suffix),
2828                 .special        = NULL,
2829                 .enum_list      = NULL,
2830         },
2831         {
2832                 .label          = "ldap idmap suffix",
2833                 .type           = P_STRING,
2834                 .p_class        = P_GLOBAL,
2835                 .offset         = GLOBAL_VAR(_ldap_idmap_suffix),
2836                 .special        = NULL,
2837                 .enum_list      = NULL,
2838         },
2839         {
2840                 .label          = "ldap machine suffix",
2841                 .type           = P_STRING,
2842                 .p_class        = P_GLOBAL,
2843                 .offset         = GLOBAL_VAR(_ldap_machine_suffix),
2844                 .special        = NULL,
2845                 .enum_list      = NULL,
2846         },
2847         {
2848                 .label          = "ldap passwd sync",
2849                 .type           = P_ENUM,
2850                 .p_class        = P_GLOBAL,
2851                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
2852                 .special        = NULL,
2853                 .enum_list      = enum_ldap_passwd_sync,
2854         },
2855         {
2856                 .label          = "ldap password sync",
2857                 .type           = P_ENUM,
2858                 .p_class        = P_GLOBAL,
2859                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
2860                 .special        = NULL,
2861                 .enum_list      = enum_ldap_passwd_sync,
2862                 .flags          = FLAG_SYNONYM,
2863         },
2864         {
2865                 .label          = "ldap replication sleep",
2866                 .type           = P_INTEGER,
2867                 .p_class        = P_GLOBAL,
2868                 .offset         = GLOBAL_VAR(ldap_replication_sleep),
2869                 .special        = NULL,
2870                 .enum_list      = NULL,
2871         },
2872         {
2873                 .label          = "ldap suffix",
2874                 .type           = P_STRING,
2875                 .p_class        = P_GLOBAL,
2876                 .offset         = GLOBAL_VAR(ldap_suffix),
2877                 .special        = NULL,
2878                 .enum_list      = NULL,
2879         },
2880         {
2881                 .label          = "ldap ssl",
2882                 .type           = P_ENUM,
2883                 .p_class        = P_GLOBAL,
2884                 .offset         = GLOBAL_VAR(ldap_ssl),
2885                 .special        = NULL,
2886                 .enum_list      = enum_ldap_ssl,
2887         },
2888         {
2889                 .label          = "ldap ssl ads",
2890                 .type           = P_BOOL,
2891                 .p_class        = P_GLOBAL,
2892                 .offset         = GLOBAL_VAR(ldap_ssl_ads),
2893                 .special        = NULL,
2894                 .enum_list      = NULL,
2895         },
2896         {
2897                 .label          = "ldap deref",
2898                 .type           = P_ENUM,
2899                 .p_class        = P_GLOBAL,
2900                 .offset         = GLOBAL_VAR(ldap_deref),
2901                 .special        = NULL,
2902                 .enum_list      = enum_ldap_deref,
2903         },
2904         {
2905                 .label          = "ldap follow referral",
2906                 .type           = P_ENUM,
2907                 .p_class        = P_GLOBAL,
2908                 .offset         = GLOBAL_VAR(ldap_follow_referral),
2909                 .special        = NULL,
2910                 .enum_list      = enum_bool_auto,
2911         },
2912         {
2913                 .label          = "ldap timeout",
2914                 .type           = P_INTEGER,
2915                 .p_class        = P_GLOBAL,
2916                 .offset         = GLOBAL_VAR(ldap_timeout),
2917                 .special        = NULL,
2918                 .enum_list      = NULL,
2919         },
2920         {
2921                 .label          = "ldap connection timeout",
2922                 .type           = P_INTEGER,
2923                 .p_class        = P_GLOBAL,
2924                 .offset         = GLOBAL_VAR(ldap_connection_timeout),
2925                 .special        = NULL,
2926                 .enum_list      = NULL,
2927         },
2928         {
2929                 .label          = "ldap page size",
2930                 .type           = P_INTEGER,
2931                 .p_class        = P_GLOBAL,
2932                 .offset         = GLOBAL_VAR(ldap_page_size),
2933                 .special        = NULL,
2934                 .enum_list      = NULL,
2935         },
2936         {
2937                 .label          = "ldap user suffix",
2938                 .type           = P_STRING,
2939                 .p_class        = P_GLOBAL,
2940                 .offset         = GLOBAL_VAR(_ldap_user_suffix),
2941                 .special        = NULL,
2942                 .enum_list      = NULL,
2943         },
2944         {
2945                 .label          = "ldap debug level",
2946                 .type           = P_INTEGER,
2947                 .p_class        = P_GLOBAL,
2948                 .offset         = GLOBAL_VAR(ldap_debug_level),
2949                 .special        = handle_ldap_debug_level,
2950                 .enum_list      = NULL,
2951         },
2952         {
2953                 .label          = "ldap debug threshold",
2954                 .type           = P_INTEGER,
2955                 .p_class        = P_GLOBAL,
2956                 .offset         = GLOBAL_VAR(ldap_debug_threshold),
2957                 .special        = NULL,
2958                 .enum_list      = NULL,
2959         },
2960         {
2961                 .label          = "eventlog list",
2962                 .type           = P_CMDLIST,
2963                 .p_class        = P_GLOBAL,
2964                 .offset         = GLOBAL_VAR(eventlog_list),
2965                 .special        = NULL,
2966                 .enum_list      = NULL,
2967         },
2968         {
2969                 .label          = "add share command",
2970                 .type           = P_STRING,
2971                 .p_class        = P_GLOBAL,
2972                 .offset         = GLOBAL_VAR(add_share_command),
2973                 .special        = NULL,
2974                 .enum_list      = NULL,
2975         },
2976         {
2977                 .label          = "change share command",
2978                 .type           = P_STRING,
2979                 .p_class        = P_GLOBAL,
2980                 .offset         = GLOBAL_VAR(change_share_command),
2981                 .special        = NULL,
2982                 .enum_list      = NULL,
2983         },
2984         {
2985                 .label          = "delete share command",
2986                 .type           = P_STRING,
2987                 .p_class        = P_GLOBAL,
2988                 .offset         = GLOBAL_VAR(delete_share_command),
2989                 .special        = NULL,
2990                 .enum_list      = NULL,
2991         },
2992         {
2993                 .label          = "config file",
2994                 .type           = P_STRING,
2995                 .p_class        = P_GLOBAL,
2996                 .offset         = GLOBAL_VAR(next_configfile),
2997                 .special        = NULL,
2998                 .enum_list      = NULL,
2999         },
3000         {
3001                 .label          = "preload",
3002                 .type           = P_STRING,
3003                 .p_class        = P_GLOBAL,
3004                 .offset         = GLOBAL_VAR(auto_services),
3005                 .special        = NULL,
3006                 .enum_list      = NULL,
3007                 .flags          = FLAG_SYNONYM,
3008         },
3009         {
3010                 .label          = "auto services",
3011                 .type           = P_STRING,
3012                 .p_class        = P_GLOBAL,
3013                 .offset         = GLOBAL_VAR(auto_services),
3014                 .special        = NULL,
3015                 .enum_list      = NULL,
3016         },
3017         {
3018                 .label          = "lock directory",
3019                 .type           = P_STRING,
3020                 .p_class        = P_GLOBAL,
3021                 .offset         = GLOBAL_VAR(lock_directory),
3022                 .special        = NULL,
3023                 .enum_list      = NULL,
3024         },
3025         {
3026                 .label          = "lock dir",
3027                 .type           = P_STRING,
3028                 .p_class        = P_GLOBAL,
3029                 .offset         = GLOBAL_VAR(lock_directory),
3030                 .special        = NULL,
3031                 .enum_list      = NULL,
3032                 .flags          = FLAG_SYNONYM,
3033         },
3034         {
3035                 .label          = "state directory",
3036                 .type           = P_STRING,
3037                 .p_class        = P_GLOBAL,
3038                 .offset         = GLOBAL_VAR(state_directory),
3039                 .special        = NULL,
3040                 .enum_list      = NULL,
3041         },
3042         {
3043                 .label          = "cache directory",
3044                 .type           = P_STRING,
3045                 .p_class        = P_GLOBAL,
3046                 .offset         = GLOBAL_VAR(cache_directory),
3047                 .special        = NULL,
3048                 .enum_list      = NULL,
3049         },
3050         {
3051                 .label          = "pid directory",
3052                 .type           = P_STRING,
3053                 .p_class        = P_GLOBAL,
3054                 .offset         = GLOBAL_VAR(pid_directory),
3055                 .special        = NULL,
3056                 .enum_list      = NULL,
3057         },
3058         {
3059                 .label          = "ntp signd socket directory",
3060                 .type           = P_STRING,
3061                 .p_class        = P_GLOBAL,
3062                 .offset         = GLOBAL_VAR(ntp_signd_socket_directory),
3063                 .special        = NULL,
3064                 .enum_list      = NULL,
3065         },
3066
3067 #ifdef WITH_UTMP
3068         {
3069                 .label          = "utmp directory",
3070                 .type           = P_STRING,
3071                 .p_class        = P_GLOBAL,
3072                 .offset         = GLOBAL_VAR(utmp_directory),
3073                 .special        = NULL,
3074                 .enum_list      = NULL,
3075         },
3076         {
3077                 .label          = "wtmp directory",
3078                 .type           = P_STRING,
3079                 .p_class        = P_GLOBAL,
3080                 .offset         = GLOBAL_VAR(wtmp_directory),
3081                 .special        = NULL,
3082                 .enum_list      = NULL,
3083         },
3084         {
3085                 .label          = "utmp",
3086                 .type           = P_BOOL,
3087                 .p_class        = P_GLOBAL,
3088                 .offset         = GLOBAL_VAR(utmp),
3089                 .special        = NULL,
3090                 .enum_list      = NULL,
3091         },
3092 #endif
3093         {
3094                 .label          = "default service",
3095                 .type           = P_STRING,
3096                 .p_class        = P_GLOBAL,
3097                 .offset         = GLOBAL_VAR(defaultservice),
3098                 .special        = NULL,
3099                 .enum_list      = NULL,
3100         },
3101         {
3102                 .label          = "default",
3103                 .type           = P_STRING,
3104                 .p_class        = P_GLOBAL,
3105                 .offset         = GLOBAL_VAR(defaultservice),
3106                 .special        = NULL,
3107                 .enum_list      = NULL,
3108                 .flags          = FLAG_SYNONYM,
3109         },
3110         {
3111                 .label          = "message command",
3112                 .type           = P_STRING,
3113                 .p_class        = P_GLOBAL,
3114                 .offset         = GLOBAL_VAR(message_command),
3115                 .special        = NULL,
3116                 .enum_list      = NULL,
3117         },
3118         {
3119                 .label          = "dfree cache time",
3120                 .type           = P_INTEGER,
3121                 .p_class        = P_LOCAL,
3122                 .offset         = LOCAL_VAR(dfree_cache_time),
3123                 .special        = NULL,
3124                 .enum_list      = NULL,
3125         },
3126         {
3127                 .label          = "dfree command",
3128                 .type           = P_STRING,
3129                 .p_class        = P_LOCAL,
3130                 .offset         = LOCAL_VAR(dfree_command),
3131                 .special        = NULL,
3132                 .enum_list      = NULL,
3133         },
3134         {
3135                 .label          = "get quota command",
3136                 .type           = P_STRING,
3137                 .p_class        = P_GLOBAL,
3138                 .offset         = GLOBAL_VAR(get_quota_command),
3139                 .special        = NULL,
3140                 .enum_list      = NULL,
3141         },
3142         {
3143                 .label          = "set quota command",
3144                 .type           = P_STRING,
3145                 .p_class        = P_GLOBAL,
3146                 .offset         = GLOBAL_VAR(set_quota_command),
3147                 .special        = NULL,
3148                 .enum_list      = NULL,
3149         },
3150         {
3151                 .label          = "remote announce",
3152                 .type           = P_STRING,
3153                 .p_class        = P_GLOBAL,
3154                 .offset         = GLOBAL_VAR(remote_announce),
3155                 .special        = NULL,
3156                 .enum_list      = NULL,
3157         },
3158         {
3159                 .label          = "remote browse sync",
3160                 .type           = P_STRING,
3161                 .p_class        = P_GLOBAL,
3162                 .offset         = GLOBAL_VAR(remote_browse_sync),
3163                 .special        = NULL,
3164                 .enum_list      = NULL,
3165         },
3166         {
3167                 .label          = "nbt client socket address",
3168                 .type           = P_STRING,
3169                 .p_class        = P_GLOBAL,
3170                 .offset         = GLOBAL_VAR(nbt_client_socket_address),
3171                 .special        = NULL,
3172                 .enum_list      = NULL,
3173                 .flags          = FLAG_DEPRECATED,
3174         },
3175         {
3176                 .label          = "socket address",
3177                 .type           = P_STRING,
3178                 .p_class        = P_GLOBAL,
3179                 .offset         = GLOBAL_VAR(nbt_client_socket_address),
3180                 .special        = NULL,
3181                 .enum_list      = NULL,
3182                 .flags          = FLAG_SYNONYM,
3183         },
3184         {
3185                 .label          = "nmbd bind explicit broadcast",
3186                 .type           = P_BOOL,
3187                 .p_class        = P_GLOBAL,
3188                 .offset         = GLOBAL_VAR(nmbd_bind_explicit_broadcast),
3189                 .special        = NULL,
3190                 .enum_list      = NULL,
3191         },
3192         {
3193                 .label          = "homedir map",
3194                 .type           = P_STRING,
3195                 .p_class        = P_GLOBAL,
3196                 .offset         = GLOBAL_VAR(homedir_map),
3197                 .special        = NULL,
3198                 .enum_list      = NULL,
3199         },
3200         {
3201                 .label          = "afs username map",
3202                 .type           = P_STRING,
3203                 .p_class        = P_GLOBAL,
3204                 .offset         = GLOBAL_VAR(afs_username_map),
3205                 .special        = NULL,
3206                 .enum_list      = NULL,
3207         },
3208         {
3209                 .label          = "afs token lifetime",
3210                 .type           = P_INTEGER,
3211                 .p_class        = P_GLOBAL,
3212                 .offset         = GLOBAL_VAR(afs_token_lifetime),
3213                 .special        = NULL,
3214                 .enum_list      = NULL,
3215         },
3216         {
3217                 .label          = "log nt token command",
3218                 .type           = P_STRING,
3219                 .p_class        = P_GLOBAL,
3220                 .offset         = GLOBAL_VAR(log_nt_token_command),
3221                 .special        = NULL,
3222                 .enum_list      = NULL,
3223         },
3224         {
3225                 .label          = "NIS homedir",
3226                 .type           = P_BOOL,
3227                 .p_class        = P_GLOBAL,
3228                 .offset         = GLOBAL_VAR(nis_homedir),
3229                 .special        = NULL,
3230                 .enum_list      = NULL,
3231         },
3232         {
3233                 .label          = "-valid",
3234                 .type           = P_BOOL,
3235                 .p_class        = P_LOCAL,
3236                 .offset         = LOCAL_VAR(valid),
3237                 .special        = NULL,
3238                 .enum_list      = NULL,
3239         },
3240         {
3241                 .label          = "copy",
3242                 .type           = P_STRING,
3243                 .p_class        = P_LOCAL,
3244                 .offset         = LOCAL_VAR(copy),
3245                 .special        = handle_copy,
3246                 .enum_list      = NULL,
3247         },
3248         {
3249                 .label          = "include",
3250                 .type           = P_STRING,
3251                 .p_class        = P_LOCAL,
3252                 .offset         = LOCAL_VAR(include),
3253                 .special        = handle_include,
3254                 .enum_list      = NULL,
3255         },
3256         {
3257                 .label          = "preexec",
3258                 .type           = P_STRING,
3259                 .p_class        = P_LOCAL,
3260                 .offset         = LOCAL_VAR(preexec),
3261                 .special        = NULL,
3262                 .enum_list      = NULL,
3263         },
3264         {
3265                 .label          = "exec",
3266                 .type           = P_STRING,
3267                 .p_class        = P_LOCAL,
3268                 .offset         = LOCAL_VAR(preexec),
3269                 .special        = NULL,
3270                 .enum_list      = NULL,
3271                 .flags          = FLAG_SYNONYM,
3272         },
3273         {
3274                 .label          = "preexec close",
3275                 .type           = P_BOOL,
3276                 .p_class        = P_LOCAL,
3277                 .offset         = LOCAL_VAR(preexec_close),
3278                 .special        = NULL,
3279                 .enum_list      = NULL,
3280         },
3281         {
3282                 .label          = "postexec",
3283                 .type           = P_STRING,
3284                 .p_class        = P_LOCAL,
3285                 .offset         = LOCAL_VAR(postexec),
3286                 .special        = NULL,
3287                 .enum_list      = NULL,
3288         },
3289         {
3290                 .label          = "root preexec",
3291                 .type           = P_STRING,
3292                 .p_class        = P_LOCAL,
3293                 .offset         = LOCAL_VAR(root_preexec),
3294                 .special        = NULL,
3295                 .enum_list      = NULL,
3296         },
3297         {
3298                 .label          = "root preexec close",
3299                 .type           = P_BOOL,
3300                 .p_class        = P_LOCAL,
3301                 .offset         = LOCAL_VAR(root_preexec_close),
3302                 .special        = NULL,
3303                 .enum_list      = NULL,
3304         },
3305         {
3306                 .label          = "root postexec",
3307                 .type           = P_STRING,
3308                 .p_class        = P_LOCAL,
3309                 .offset         = LOCAL_VAR(root_postexec),
3310                 .special        = NULL,
3311                 .enum_list      = NULL,
3312         },
3313         {
3314                 .label          = "available",
3315                 .type           = P_BOOL,
3316                 .p_class        = P_LOCAL,
3317                 .offset         = LOCAL_VAR(available),
3318                 .special        = NULL,
3319                 .enum_list      = NULL,
3320         },
3321         {
3322                 .label          = "registry shares",
3323                 .type           = P_BOOL,
3324                 .p_class        = P_GLOBAL,
3325                 .offset         = GLOBAL_VAR(registry_shares),
3326                 .special        = NULL,
3327                 .enum_list      = NULL,
3328         },
3329         {
3330                 .label          = "usershare allow guests",
3331                 .type           = P_BOOL,
3332                 .p_class        = P_GLOBAL,
3333                 .offset         = GLOBAL_VAR(usershare_allow_guests),
3334                 .special        = NULL,
3335                 .enum_list      = NULL,
3336         },
3337         {
3338                 .label          = "usershare max shares",
3339                 .type           = P_INTEGER,
3340                 .p_class        = P_GLOBAL,
3341                 .offset         = GLOBAL_VAR(usershare_max_shares),
3342                 .special        = NULL,
3343                 .enum_list      = NULL,
3344         },
3345         {
3346                 .label          = "usershare owner only",
3347                 .type           = P_BOOL,
3348                 .p_class        = P_GLOBAL,
3349                 .offset         = GLOBAL_VAR(usershare_owner_only),
3350                 .special        = NULL,
3351                 .enum_list      = NULL,
3352         },
3353         {
3354                 .label          = "usershare path",
3355                 .type           = P_STRING,
3356                 .p_class        = P_GLOBAL,
3357                 .offset         = GLOBAL_VAR(usershare_path),
3358                 .special        = NULL,
3359                 .enum_list      = NULL,
3360         },
3361         {
3362                 .label          = "usershare prefix allow list",
3363                 .type           = P_CMDLIST,
3364                 .p_class        = P_GLOBAL,
3365                 .offset         = GLOBAL_VAR(usershare_prefix_allow_list),
3366                 .special        = NULL,
3367                 .enum_list      = NULL,
3368         },
3369         {
3370                 .label          = "usershare prefix deny list",
3371                 .type           = P_CMDLIST,
3372                 .p_class        = P_GLOBAL,
3373                 .offset         = GLOBAL_VAR(usershare_prefix_deny_list),
3374                 .special        = NULL,
3375                 .enum_list      = NULL,
3376         },
3377         {
3378                 .label          = "usershare template share",
3379                 .type           = P_STRING,
3380                 .p_class        = P_GLOBAL,
3381                 .offset         = GLOBAL_VAR(usershare_template_share),
3382                 .special        = NULL,
3383                 .enum_list      = NULL,
3384         },
3385         {
3386                 .label          = "volume",
3387                 .type           = P_STRING,
3388                 .p_class        = P_LOCAL,
3389                 .offset         = LOCAL_VAR(volume),
3390                 .special        = NULL,
3391                 .enum_list      = NULL,
3392         },
3393         {
3394                 .label          = "fstype",
3395                 .type           = P_STRING,
3396                 .p_class        = P_LOCAL,
3397                 .offset         = LOCAL_VAR(fstype),
3398                 .special        = NULL,
3399                 .enum_list      = NULL,
3400         },
3401         {
3402                 .label          = "allow insecure wide links",
3403                 .type           = P_BOOL,
3404                 .p_class        = P_GLOBAL,
3405                 .offset         = GLOBAL_VAR(allow_insecure_wide_links),
3406                 .special        = NULL,
3407                 .enum_list      = NULL,
3408         },
3409         {
3410                 .label          = "wide links",
3411                 .type           = P_BOOL,
3412                 .p_class        = P_LOCAL,
3413                 .offset         = LOCAL_VAR(wide_links),
3414                 .special        = NULL,
3415                 .enum_list      = NULL,
3416         },
3417         {
3418                 .label          = "follow symlinks",
3419                 .type           = P_BOOL,
3420                 .p_class        = P_LOCAL,
3421                 .offset         = LOCAL_VAR(follow_symlinks),
3422                 .special        = NULL,
3423                 .enum_list      = NULL,
3424         },
3425         {
3426                 .label          = "dont descend",
3427                 .type           = P_STRING,
3428                 .p_class        = P_LOCAL,
3429                 .offset         = LOCAL_VAR(dont_descend),
3430                 .special        = NULL,
3431                 .enum_list      = NULL,
3432         },
3433         {
3434                 .label          = "magic script",
3435                 .type           = P_STRING,
3436                 .p_class        = P_LOCAL,
3437                 .offset         = LOCAL_VAR(magic_script),
3438                 .special        = NULL,
3439                 .enum_list      = NULL,
3440         },
3441         {
3442                 .label          = "magic output",
3443                 .type           = P_STRING,
3444                 .p_class        = P_LOCAL,
3445                 .offset         = LOCAL_VAR(magic_output),
3446                 .special        = NULL,
3447                 .enum_list      = NULL,
3448         },
3449         {
3450                 .label          = "delete readonly",
3451                 .type           = P_BOOL,
3452                 .p_class        = P_LOCAL,
3453                 .offset         = LOCAL_VAR(delete_readonly),
3454                 .special        = NULL,
3455                 .enum_list      = NULL,
3456         },
3457         {
3458                 .label          = "dos filemode",
3459                 .type           = P_BOOL,
3460                 .p_class        = P_LOCAL,
3461                 .offset         = LOCAL_VAR(dos_filemode),
3462                 .special        = NULL,
3463                 .enum_list      = NULL,
3464         },
3465         {
3466                 .label          = "dos filetimes",
3467                 .type           = P_BOOL,
3468                 .p_class        = P_LOCAL,
3469                 .offset         = LOCAL_VAR(dos_filetimes),
3470                 .special        = NULL,
3471                 .enum_list      = NULL,
3472         },
3473         {
3474                 .label          = "dos filetime resolution",
3475                 .type           = P_BOOL,
3476                 .p_class        = P_LOCAL,
3477                 .offset         = LOCAL_VAR(dos_filetime_resolution),
3478                 .special        = NULL,
3479                 .enum_list      = NULL,
3480         },
3481         {
3482                 .label          = "fake directory create times",
3483                 .type           = P_BOOL,
3484                 .p_class        = P_LOCAL,
3485                 .offset         = LOCAL_VAR(fake_directory_create_times),
3486                 .special        = NULL,
3487                 .enum_list      = NULL,
3488         },
3489         {
3490                 .label          = "async smb echo handler",
3491                 .type           = P_BOOL,
3492                 .p_class        = P_GLOBAL,
3493                 .offset         = GLOBAL_VAR(async_smb_echo_handler),
3494                 .special        = NULL,
3495                 .enum_list      = NULL,
3496         },
3497         {
3498                 .label          = "panic action",
3499                 .type           = P_STRING,
3500                 .p_class        = P_GLOBAL,
3501                 .offset         = GLOBAL_VAR(panic_action),
3502                 .special        = NULL,
3503                 .enum_list      = NULL,
3504         },
3505         {
3506                 .label          = "perfcount module",
3507                 .type           = P_STRING,
3508                 .p_class        = P_GLOBAL,
3509                 .offset         = GLOBAL_VAR(perfcount_module),
3510                 .special        = NULL,
3511                 .enum_list      = NULL,
3512         },
3513         {
3514                 .label          = "vfs objects",
3515                 .type           = P_CMDLIST,
3516                 .p_class        = P_LOCAL,
3517                 .offset         = LOCAL_VAR(vfs_objects),
3518                 .special        = NULL,
3519                 .enum_list      = NULL,
3520         },
3521         {
3522                 .label          = "vfs object",
3523                 .type           = P_CMDLIST,
3524                 .p_class        = P_LOCAL,
3525                 .offset         = LOCAL_VAR(vfs_objects),
3526                 .special        = NULL,
3527                 .enum_list      = NULL,
3528                 .flags          = FLAG_SYNONYM,
3529         },
3530         {
3531                 .label          = "msdfs root",
3532                 .type           = P_BOOL,
3533                 .p_class        = P_LOCAL,
3534                 .offset         = LOCAL_VAR(msdfs_root),
3535                 .special        = NULL,
3536                 .enum_list      = NULL,
3537         },
3538         {
3539                 .label          = "msdfs proxy",
3540                 .type           = P_STRING,
3541                 .p_class        = P_LOCAL,
3542                 .offset         = LOCAL_VAR(msdfs_proxy),
3543                 .special        = NULL,
3544                 .enum_list      = NULL,
3545         },
3546         {
3547                 .label          = "msdfs shuffle referrals",
3548                 .type           = P_BOOL,
3549                 .p_class        = P_LOCAL,
3550                 .offset         = LOCAL_VAR(msdfs_shuffle_referrals),
3551                 .special        = NULL,
3552                 .enum_list      = NULL,
3553         },
3554         {
3555                 .label          = "host msdfs",
3556                 .type           = P_BOOL,
3557                 .p_class        = P_GLOBAL,
3558                 .offset         = GLOBAL_VAR(host_msdfs),
3559                 .special        = NULL,
3560                 .enum_list      = NULL,
3561         },
3562         {
3563                 .label          = "passdb expand explicit",
3564                 .type           = P_BOOL,
3565                 .p_class        = P_GLOBAL,
3566                 .offset         = GLOBAL_VAR(passdb_expand_explicit),
3567                 .special        = NULL,
3568                 .enum_list      = NULL,
3569         },
3570         {
3571                 .label          = "idmap backend",
3572                 .type           = P_STRING,
3573                 .p_class        = P_GLOBAL,
3574                 .offset         = GLOBAL_VAR(idmap_backend),
3575                 .special        = handle_idmap_backend,
3576                 .enum_list      = NULL,
3577                 .flags          = FLAG_DEPRECATED,
3578         },
3579         {
3580                 .label          = "idmap cache time",
3581                 .type           = P_INTEGER,
3582                 .p_class        = P_GLOBAL,
3583                 .offset         = GLOBAL_VAR(idmap_cache_time),
3584                 .special        = NULL,
3585                 .enum_list      = NULL,
3586         },
3587         {
3588                 .label          = "idmap negative cache time",
3589                 .type           = P_INTEGER,
3590                 .p_class        = P_GLOBAL,
3591                 .offset         = GLOBAL_VAR(idmap_negative_cache_time),
3592                 .special        = NULL,
3593                 .enum_list      = NULL,
3594         },
3595         {
3596                 .label          = "idmap uid",
3597                 .type           = P_STRING,
3598                 .p_class        = P_GLOBAL,
3599                 .offset         = GLOBAL_VAR(idmap_uid),
3600                 .special        = handle_idmap_uid,
3601                 .enum_list      = NULL,
3602                 .flags          = FLAG_DEPRECATED,
3603         },
3604         {
3605                 .label          = "winbind uid",
3606                 .type           = P_STRING,
3607                 .p_class        = P_GLOBAL,
3608                 .offset         = GLOBAL_VAR(idmap_uid),
3609                 .special        = handle_idmap_uid,
3610                 .enum_list      = NULL,
3611                 .flags          = FLAG_SYNONYM,
3612         },
3613         {
3614                 .label          = "idmap gid",
3615                 .type           = P_STRING,
3616                 .p_class        = P_GLOBAL,
3617                 .offset         = GLOBAL_VAR(idmap_gid),
3618                 .special        = handle_idmap_gid,
3619                 .enum_list      = NULL,
3620                 .flags          = FLAG_DEPRECATED,
3621         },
3622         {
3623                 .label          = "winbind gid",
3624                 .type           = P_STRING,
3625                 .p_class        = P_GLOBAL,
3626                 .offset         = GLOBAL_VAR(idmap_gid),
3627                 .special        = handle_idmap_gid,
3628                 .enum_list      = NULL,
3629                 .flags          = FLAG_SYNONYM,
3630         },
3631         {
3632                 .label          = "template homedir",
3633                 .type           = P_STRING,
3634                 .p_class        = P_GLOBAL,
3635                 .offset         = GLOBAL_VAR(template_homedir),
3636                 .special        = NULL,
3637                 .enum_list      = NULL,
3638         },
3639         {
3640                 .label          = "template shell",
3641                 .type           = P_STRING,
3642                 .p_class        = P_GLOBAL,
3643                 .offset         = GLOBAL_VAR(template_shell),
3644                 .special        = NULL,
3645                 .enum_list      = NULL,
3646         },
3647         {
3648                 .label          = "winbind separator",
3649                 .type           = P_STRING,
3650                 .p_class        = P_GLOBAL,
3651                 .offset         = GLOBAL_VAR(winbind_separator),
3652                 .special        = NULL,
3653                 .enum_list      = NULL,
3654         },
3655         {
3656                 .label          = "winbind cache time",
3657                 .type           = P_INTEGER,
3658                 .p_class        = P_GLOBAL,
3659                 .offset         = GLOBAL_VAR(winbind_cache_time),
3660                 .special        = NULL,
3661                 .enum_list      = NULL,
3662         },
3663         {
3664                 .label          = "winbind reconnect delay",
3665                 .type           = P_INTEGER,
3666                 .p_class        = P_GLOBAL,
3667                 .offset         = GLOBAL_VAR(winbind_reconnect_delay),
3668                 .special        = NULL,
3669                 .enum_list      = NULL,
3670         },
3671         {
3672                 .label          = "winbind request timeout",
3673                 .type           = P_INTEGER,
3674                 .p_class        = P_GLOBAL,
3675                 .offset         = GLOBAL_VAR(winbind_request_timeout),
3676                 .special        = NULL,
3677                 .enum_list      = NULL,
3678         },
3679         {
3680                 .label          = "winbind max clients",
3681                 .type           = P_INTEGER,
3682                 .p_class        = P_GLOBAL,
3683                 .offset         = GLOBAL_VAR(winbind_max_clients),
3684                 .special        = NULL,
3685                 .enum_list      = NULL,
3686         },
3687         {
3688                 .label          = "winbind enum users",
3689                 .type           = P_BOOL,
3690                 .p_class        = P_GLOBAL,
3691                 .offset         = GLOBAL_VAR(winbind_enum_users),
3692                 .special        = NULL,
3693                 .enum_list      = NULL,
3694         },
3695         {
3696                 .label          = "winbind enum groups",
3697                 .type           = P_BOOL,
3698                 .p_class        = P_GLOBAL,
3699                 .offset         = GLOBAL_VAR(winbind_enum_groups),
3700                 .special        = NULL,
3701                 .enum_list      = NULL,
3702         },
3703         {
3704                 .label          = "winbind use default domain",
3705                 .type           = P_BOOL,
3706                 .p_class        = P_GLOBAL,
3707                 .offset         = GLOBAL_VAR(winbind_use_default_domain),
3708                 .special        = NULL,
3709                 .enum_list      = NULL,
3710         },
3711         {
3712                 .label          = "winbind trusted domains only",
3713                 .type           = P_BOOL,
3714                 .p_class        = P_GLOBAL,
3715                 .offset         = GLOBAL_VAR(winbind_trusted_domains_only),
3716                 .special        = NULL,
3717                 .enum_list      = NULL,
3718         },
3719         {
3720                 .label          = "winbind nested groups",
3721                 .type           = P_BOOL,
3722                 .p_class        = P_GLOBAL,
3723                 .offset         = GLOBAL_VAR(winbind_nested_groups),
3724                 .special        = NULL,
3725                 .enum_list      = NULL,
3726         },
3727         {
3728                 .label          = "winbind expand groups",
3729                 .type           = P_INTEGER,
3730                 .p_class        = P_GLOBAL,
3731                 .offset         = GLOBAL_VAR(winbind_expand_groups),
3732                 .special        = NULL,
3733                 .enum_list      = NULL,
3734         },
3735         {
3736                 .label          = "winbind nss info",
3737                 .type           = P_CMDLIST,
3738                 .p_class        = P_GLOBAL,
3739                 .offset         = GLOBAL_VAR(winbind_nss_info),
3740                 .special        = NULL,
3741                 .enum_list      = NULL,
3742         },
3743         {
3744                 .label          = "winbind refresh tickets",
3745                 .type           = P_BOOL,
3746                 .p_class        = P_GLOBAL,
3747                 .offset         = GLOBAL_VAR(winbind_refresh_tickets),
3748                 .special        = NULL,
3749                 .enum_list      = NULL,
3750         },
3751         {
3752                 .label          = "winbind offline logon",
3753                 .type           = P_BOOL,
3754                 .p_class        = P_GLOBAL,
3755                 .offset         = GLOBAL_VAR(winbind_offline_logon),
3756                 .special        = NULL,
3757                 .enum_list      = NULL,
3758         },
3759         {
3760                 .label          = "winbind normalize names",
3761                 .type           = P_BOOL,
3762                 .p_class        = P_GLOBAL,
3763                 .offset         = GLOBAL_VAR(winbind_normalize_names),
3764                 .special        = NULL,
3765                 .enum_list      = NULL,
3766         },
3767         {
3768                 .label          = "winbind rpc only",
3769                 .type           = P_BOOL,
3770                 .p_class        = P_GLOBAL,
3771                 .offset         = GLOBAL_VAR(winbind_rpc_only),
3772                 .special        = NULL,
3773                 .enum_list      = NULL,
3774         },
3775         {
3776                 .label          = "create krb5 conf",
3777                 .type           = P_BOOL,
3778                 .p_class        = P_GLOBAL,
3779                 .offset         = GLOBAL_VAR(create_krb5_conf),
3780                 .special        = NULL,
3781                 .enum_list      = NULL,
3782         },
3783         {
3784                 .label          = "ncalrpc dir",
3785                 .type           = P_STRING,
3786                 .p_class        = P_GLOBAL,
3787                 .offset         = GLOBAL_VAR(ncalrpc_dir),
3788                 .special        = NULL,
3789                 .enum_list      = NULL,
3790         },
3791         {
3792                 .label          = "winbind max domain connections",
3793                 .type           = P_INTEGER,
3794                 .p_class        = P_GLOBAL,
3795                 .offset         = GLOBAL_VAR(_winbind_max_domain_connections),
3796                 .special        = NULL,
3797                 .enum_list      = NULL,
3798         },
3799         {
3800                 .label          = "winbindd socket directory",
3801                 .type           = P_STRING,
3802                 .p_class        = P_GLOBAL,
3803                 .offset         = GLOBAL_VAR(winbindd_socket_directory),
3804                 .special        = NULL,
3805                 .enum_list      = NULL,
3806         },
3807         {
3808                 .label          = "winbindd privileged socket directory",
3809                 .type           = P_STRING,
3810                 .p_class        = P_GLOBAL,
3811                 .offset         = GLOBAL_VAR(winbindd_privileged_socket_directory),
3812                 .special        = NULL,
3813                 .enum_list      = NULL,
3814         },
3815         {
3816                 .label          = "winbind sealed pipes",
3817                 .type           = P_BOOL,
3818                 .p_class        = P_GLOBAL,
3819                 .offset         = GLOBAL_VAR(winbind_sealed_pipes),
3820                 .special        = NULL,
3821                 .enum_list      = NULL,
3822         },
3823         {
3824                 .label          = "neutralize nt4 emulation",
3825                 .type           = P_BOOL,
3826                 .p_class        = P_GLOBAL,
3827                 .offset         = GLOBAL_VAR(neutralize_nt4_emulation),
3828                 .special        = NULL,
3829                 .enum_list      = NULL,
3830         },
3831         {
3832                 .label          = "reject md5 servers",
3833                 .type           = P_BOOL,
3834                 .p_class        = P_GLOBAL,
3835                 .offset         = GLOBAL_VAR(reject_md5_servers),
3836                 .special        = NULL,
3837                 .enum_list      = NULL,
3838         },
3839         {
3840                 .label          = "require strong key",
3841                 .type           = P_BOOL,
3842                 .p_class        = P_GLOBAL,
3843                 .offset         = GLOBAL_VAR(require_strong_key),
3844                 .special        = NULL,
3845                 .enum_list      = NULL,
3846         },
3847         {
3848                 .label          = "allow dns updates",
3849                 .type           = P_ENUM,
3850                 .p_class        = P_GLOBAL,
3851                 .offset         = GLOBAL_VAR(allow_dns_updates),
3852                 .special        = NULL,
3853                 .enum_list      = enum_dns_update_settings,
3854         },
3855         {
3856                 .label          = "dns forwarder",
3857                 .type           = P_STRING,
3858                 .p_class        = P_GLOBAL,
3859                 .offset         = GLOBAL_VAR(dns_forwarder),
3860                 .special        = NULL,
3861                 .enum_list      = NULL,
3862         },
3863         {
3864                 .label          = "dns update command",
3865                 .type           = P_CMDLIST,
3866                 .p_class        = P_GLOBAL,
3867                 .offset         = GLOBAL_VAR(dns_update_command),
3868                 .special        = NULL,
3869                 .enum_list      = NULL,
3870         },
3871         {
3872                 .label          = "nsupdate command",
3873                 .type           = P_CMDLIST,
3874                 .p_class        = P_GLOBAL,
3875                 .offset         = GLOBAL_VAR(nsupdate_command),
3876                 .special        = NULL,
3877                 .enum_list      = NULL,
3878         },
3879         {
3880                 .label          = "rndc command",
3881                 .type           = P_CMDLIST,
3882                 .p_class        = P_GLOBAL,
3883                 .offset         = GLOBAL_VAR(rndc_command),
3884                 .special        = NULL,
3885                 .enum_list      = NULL,
3886         },
3887         {
3888                 .label          = "multicast dns register",
3889                 .type           = P_BOOL,
3890                 .p_class        = P_GLOBAL,
3891                 .offset         = GLOBAL_VAR(multicast_dns_register),
3892                 .special        = NULL,
3893                 .enum_list      = NULL,
3894         },
3895         {
3896                 .label          = "samba kcc command",
3897                 .type           = P_CMDLIST,
3898                 .p_class        = P_GLOBAL,
3899                 .offset         = GLOBAL_VAR(samba_kcc_command),
3900                 .special        = NULL,
3901                 .enum_list      = NULL,
3902         },
3903         {
3904                 .label          = "server services",
3905                 .type           = P_LIST,
3906                 .p_class        = P_GLOBAL,
3907                 .offset         = GLOBAL_VAR(server_services),
3908                 .special        = NULL,
3909                 .enum_list      = NULL
3910         },
3911         {
3912                 .label          = "dcerpc endpoint servers",
3913                 .type           = P_LIST,
3914                 .p_class        = P_GLOBAL,
3915                 .offset         = GLOBAL_VAR(dcerpc_endpoint_servers),
3916                 .special        = NULL,
3917                 .enum_list      = NULL
3918         },
3919         {
3920                 .label          = "spn update command",
3921                 .type           = P_CMDLIST,
3922                 .p_class        = P_GLOBAL,
3923                 .offset         = GLOBAL_VAR(spn_update_command),
3924                 .special        = NULL,
3925                 .enum_list      = NULL,
3926         },
3927         {
3928                 .label          = "share backend",
3929                 .type           = P_STRING,
3930                 .p_class        = P_GLOBAL,
3931                 .offset         = GLOBAL_VAR(share_backend),
3932                 .special        = NULL,
3933                 .enum_list      = NULL
3934         },
3935         {
3936                 .label          = "ntvfs handler",
3937                 .type           = P_LIST,
3938                 .p_class        = P_LOCAL,
3939                 .offset         = LOCAL_VAR(ntvfs_handler),
3940                 .special        = NULL,
3941                 .enum_list      = NULL
3942         },
3943         {
3944                 .label          = "allow nt4 crypto",
3945                 .type           = P_BOOL,
3946                 .p_class        = P_GLOBAL,
3947                 .offset         = GLOBAL_VAR(allow_nt4_crypto),
3948                 .special        = NULL,
3949                 .enum_list      = NULL,
3950         },
3951         {
3952                 .label          = "reject md5 clients",
3953                 .type           = P_BOOL,
3954                 .p_class        = P_GLOBAL,
3955                 .offset         = GLOBAL_VAR(reject_md5_clients),
3956                 .special        = NULL,
3957                 .enum_list      = NULL,
3958         },
3959         {
3960                 .label          = "tls enabled",
3961                 .type           = P_BOOL,
3962                 .p_class        = P_GLOBAL,
3963                 .offset         = GLOBAL_VAR(tls_enabled),
3964                 .special        = NULL,
3965                 .enum_list      = NULL
3966         },
3967         {
3968                 .label          = "tls keyfile",
3969                 .type           = P_STRING,
3970                 .p_class        = P_GLOBAL,
3971                 .offset         = GLOBAL_VAR(_tls_keyfile),
3972                 .special        = NULL,
3973                 .enum_list      = NULL
3974         },
3975         {
3976                 .label          = "tls certfile",
3977                 .type           = P_STRING,
3978                 .p_class        = P_GLOBAL,
3979                 .offset         = GLOBAL_VAR(_tls_certfile),
3980                 .special        = NULL,
3981                 .enum_list      = NULL
3982         },
3983         {
3984                 .label          = "tls cafile",
3985                 .type           = P_STRING,
3986                 .p_class        = P_GLOBAL,
3987                 .offset         = GLOBAL_VAR(_tls_cafile),
3988                 .special        = NULL,
3989                 .enum_list      = NULL
3990         },
3991         {
3992                 .label          = "tls crlfile",
3993                 .type           = P_STRING,
3994                 .p_class        = P_GLOBAL,
3995                 .offset         = GLOBAL_VAR(_tls_crlfile),
3996                 .special        = NULL,
3997                 .enum_list      = NULL
3998         },
3999         {
4000                 .label          = "tls dh params file",
4001                 .type           = P_STRING,
4002                 .p_class        = P_GLOBAL,
4003                 .offset         = GLOBAL_VAR(_tls_dhpfile),
4004                 .special        = NULL,
4005                 .enum_list      = NULL
4006         },
4007         {
4008                 .label          = "tls priority",
4009                 .type           = P_STRING,
4010                 .p_class        = P_GLOBAL,
4011                 .offset         = GLOBAL_VAR(tls_priority),
4012                 .special        = NULL,
4013                 .enum_list      = NULL
4014         },
4015
4016         {NULL,  P_BOOL,  P_NONE,  0,  NULL,  NULL,  0}
4017 };
4018
4019 int num_parameters(void)
4020 {
4021         return (sizeof(parm_table) / sizeof(struct parm_struct));
4022 }