param: rename bAvailable -> available
[kai/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         },
802         {
803                 .label          = "read only",
804                 .type           = P_BOOL,
805                 .p_class        = P_LOCAL,
806                 .offset         = LOCAL_VAR(read_only),
807                 .special        = NULL,
808                 .enum_list      = NULL,
809         },
810         {
811                 .label          = "spotlight",
812                 .type           = P_BOOL,
813                 .p_class        = P_LOCAL,
814                 .offset         = LOCAL_VAR(spotlight),
815                 .special        = NULL,
816                 .enum_list      = NULL,
817         },
818         {
819                 .label          = "write ok",
820                 .type           = P_BOOLREV,
821                 .p_class        = P_LOCAL,
822                 .offset         = LOCAL_VAR(read_only),
823                 .special        = NULL,
824                 .enum_list      = NULL,
825                 .flags          = FLAG_SYNONYM,
826         },
827         {
828                 .label          = "writeable",
829                 .type           = P_BOOLREV,
830                 .p_class        = P_LOCAL,
831                 .offset         = LOCAL_VAR(read_only),
832                 .special        = NULL,
833                 .enum_list      = NULL,
834                 .flags          = FLAG_SYNONYM,
835         },
836         {
837                 .label          = "writable",
838                 .type           = P_BOOLREV,
839                 .p_class        = P_LOCAL,
840                 .offset         = LOCAL_VAR(read_only),
841                 .special        = NULL,
842                 .enum_list      = NULL,
843                 .flags          = FLAG_SYNONYM,
844         },
845         {
846                 .label          = "acl check permissions",
847                 .type           = P_BOOL,
848                 .p_class        = P_LOCAL,
849                 .offset         = LOCAL_VAR(acl_check_permissions),
850                 .special        = NULL,
851                 .enum_list      = NULL,
852                 .flags          = FLAG_DEPRECATED,
853         },
854         {
855                 .label          = "acl group control",
856                 .type           = P_BOOL,
857                 .p_class        = P_LOCAL,
858                 .offset         = LOCAL_VAR(acl_group_control),
859                 .special        = NULL,
860                 .enum_list      = NULL,
861         },
862         {
863                 .label          = "acl map full control",
864                 .type           = P_BOOL,
865                 .p_class        = P_LOCAL,
866                 .offset         = LOCAL_VAR(acl_map_full_control),
867                 .special        = NULL,
868                 .enum_list      = NULL,
869         },
870         {
871                 .label          = "acl allow execute always",
872                 .type           = P_BOOL,
873                 .p_class        = P_LOCAL,
874                 .offset         = LOCAL_VAR(acl_allow_execute_always),
875                 .special        = NULL,
876                 .enum_list      = NULL,
877         },
878
879         {
880                 .label          = "create mask",
881                 .type           = P_OCTAL,
882                 .p_class        = P_LOCAL,
883                 .offset         = LOCAL_VAR(create_mask),
884                 .special        = NULL,
885                 .enum_list      = NULL,
886         },
887         {
888                 .label          = "create mode",
889                 .type           = P_OCTAL,
890                 .p_class        = P_LOCAL,
891                 .offset         = LOCAL_VAR(create_mask),
892                 .special        = NULL,
893                 .enum_list      = NULL,
894                 .flags          = FLAG_SYNONYM,
895         },
896         {
897                 .label          = "force create mode",
898                 .type           = P_OCTAL,
899                 .p_class        = P_LOCAL,
900                 .offset         = LOCAL_VAR(force_create_mode),
901                 .special        = NULL,
902                 .enum_list      = NULL,
903         },
904         {
905                 .label          = "directory mask",
906                 .type           = P_OCTAL,
907                 .p_class        = P_LOCAL,
908                 .offset         = LOCAL_VAR(directory_mask),
909                 .special        = NULL,
910                 .enum_list      = NULL,
911         },
912         {
913                 .label          = "directory mode",
914                 .type           = P_OCTAL,
915                 .p_class        = P_LOCAL,
916                 .offset         = LOCAL_VAR(directory_mask),
917                 .special        = NULL,
918                 .enum_list      = NULL,
919         },
920         {
921                 .label          = "force directory mode",
922                 .type           = P_OCTAL,
923                 .p_class        = P_LOCAL,
924                 .offset         = LOCAL_VAR(force_directory_mode),
925                 .special        = NULL,
926                 .enum_list      = NULL,
927         },
928         {
929                 .label          = "force unknown acl user",
930                 .type           = P_BOOL,
931                 .p_class        = P_LOCAL,
932                 .offset         = LOCAL_VAR(force_unknown_acl_user),
933                 .special        = NULL,
934                 .enum_list      = NULL,
935         },
936         {
937                 .label          = "inherit permissions",
938                 .type           = P_BOOL,
939                 .p_class        = P_LOCAL,
940                 .offset         = LOCAL_VAR(inherit_permissions),
941                 .special        = NULL,
942                 .enum_list      = NULL,
943         },
944         {
945                 .label          = "inherit acls",
946                 .type           = P_BOOL,
947                 .p_class        = P_LOCAL,
948                 .offset         = LOCAL_VAR(inherit_acls),
949                 .special        = NULL,
950                 .enum_list      = NULL,
951         },
952         {
953                 .label          = "inherit owner",
954                 .type           = P_BOOL,
955                 .p_class        = P_LOCAL,
956                 .offset         = LOCAL_VAR(inherit_owner),
957                 .special        = NULL,
958                 .enum_list      = NULL,
959         },
960         {
961                 .label          = "guest only",
962                 .type           = P_BOOL,
963                 .p_class        = P_LOCAL,
964                 .offset         = LOCAL_VAR(guest_only),
965                 .special        = NULL,
966                 .enum_list      = NULL,
967         },
968         {
969                 .label          = "only guest",
970                 .type           = P_BOOL,
971                 .p_class        = P_LOCAL,
972                 .offset         = LOCAL_VAR(guest_only),
973                 .special        = NULL,
974                 .enum_list      = NULL,
975                 .flags          = FLAG_SYNONYM,
976         },
977         {
978                 .label          = "administrative share",
979                 .type           = P_BOOL,
980                 .p_class        = P_LOCAL,
981                 .offset         = LOCAL_VAR(administrative_share),
982                 .special        = NULL,
983                 .enum_list      = NULL,
984         },
985
986         {
987                 .label          = "guest ok",
988                 .type           = P_BOOL,
989                 .p_class        = P_LOCAL,
990                 .offset         = LOCAL_VAR(guest_ok),
991                 .special        = NULL,
992                 .enum_list      = NULL,
993         },
994         {
995                 .label          = "public",
996                 .type           = P_BOOL,
997                 .p_class        = P_LOCAL,
998                 .offset         = LOCAL_VAR(guest_ok),
999                 .special        = NULL,
1000                 .enum_list      = NULL,
1001                 .flags          = FLAG_SYNONYM,
1002         },
1003         {
1004                 .label          = "only user",
1005                 .type           = P_BOOL,
1006                 .p_class        = P_LOCAL,
1007                 .offset         = LOCAL_VAR(only_user),
1008                 .special        = NULL,
1009                 .enum_list      = NULL,
1010                 .flags          = FLAG_DEPRECATED,
1011         },
1012         {
1013                 .label          = "hosts allow",
1014                 .type           = P_CMDLIST,
1015                 .p_class        = P_LOCAL,
1016                 .offset         = LOCAL_VAR(hosts_allow),
1017                 .special        = NULL,
1018                 .enum_list      = NULL,
1019         },
1020         {
1021                 .label          = "allow hosts",
1022                 .type           = P_CMDLIST,
1023                 .p_class        = P_LOCAL,
1024                 .offset         = LOCAL_VAR(hosts_allow),
1025                 .special        = NULL,
1026                 .enum_list      = NULL,
1027                 .flags          = FLAG_SYNONYM,
1028         },
1029         {
1030                 .label          = "hosts deny",
1031                 .type           = P_CMDLIST,
1032                 .p_class        = P_LOCAL,
1033                 .offset         = LOCAL_VAR(hosts_deny),
1034                 .special        = NULL,
1035                 .enum_list      = NULL,
1036         },
1037         {
1038                 .label          = "deny hosts",
1039                 .type           = P_CMDLIST,
1040                 .p_class        = P_LOCAL,
1041                 .offset         = LOCAL_VAR(hosts_deny),
1042                 .special        = NULL,
1043                 .enum_list      = NULL,
1044                 .flags          = FLAG_SYNONYM,
1045         },
1046         {
1047                 .label          = "preload modules",
1048                 .type           = P_CMDLIST,
1049                 .p_class        = P_GLOBAL,
1050                 .offset         = GLOBAL_VAR(preload_modules),
1051                 .special        = NULL,
1052                 .enum_list      = NULL,
1053         },
1054         {
1055                 .label          = "dedicated keytab file",
1056                 .type           = P_STRING,
1057                 .p_class        = P_GLOBAL,
1058                 .offset         = GLOBAL_VAR(dedicated_keytab_file),
1059                 .special        = NULL,
1060                 .enum_list      = NULL,
1061         },
1062         {
1063                 .label          = "kerberos method",
1064                 .type           = P_ENUM,
1065                 .p_class        = P_GLOBAL,
1066                 .offset         = GLOBAL_VAR(kerberos_method),
1067                 .special        = NULL,
1068                 .enum_list      = enum_kerberos_method,
1069         },
1070         {
1071                 .label          = "map untrusted to domain",
1072                 .type           = P_BOOL,
1073                 .p_class        = P_GLOBAL,
1074                 .offset         = GLOBAL_VAR(map_untrusted_to_domain),
1075                 .special        = NULL,
1076                 .enum_list      = NULL,
1077         },
1078         {
1079                 .label          = "log level",
1080                 .type           = P_STRING,
1081                 .p_class        = P_GLOBAL,
1082                 .offset         = GLOBAL_VAR(log_level),
1083                 .special        = handle_debug_list,
1084                 .enum_list      = NULL,
1085         },
1086         {
1087                 .label          = "debuglevel",
1088                 .type           = P_STRING,
1089                 .p_class        = P_GLOBAL,
1090                 .offset         = GLOBAL_VAR(log_level),
1091                 .special        = handle_debug_list,
1092                 .enum_list      = NULL,
1093                 .flags          = FLAG_SYNONYM,
1094         },
1095         {
1096                 .label          = "syslog",
1097                 .type           = P_INTEGER,
1098                 .p_class        = P_GLOBAL,
1099                 .offset         = GLOBAL_VAR(syslog),
1100                 .special        = NULL,
1101                 .enum_list      = NULL,
1102                 .flags          = FLAG_DEPRECATED,
1103         },
1104         {
1105                 .label          = "syslog only",
1106                 .type           = P_BOOL,
1107                 .p_class        = P_GLOBAL,
1108                 .offset         = GLOBAL_VAR(syslog_only),
1109                 .special        = NULL,
1110                 .enum_list      = NULL,
1111                 .flags          = FLAG_DEPRECATED,
1112         },
1113         {
1114                 .label          = "log file",
1115                 .type           = P_STRING,
1116                 .p_class        = P_GLOBAL,
1117                 .offset         = GLOBAL_VAR(logfile),
1118                 .special        = handle_logfile,
1119                 .enum_list      = NULL,
1120         },
1121         {
1122                 .label          = "logging",
1123                 .type           = P_STRING,
1124                 .p_class        = P_GLOBAL,
1125                 .offset         = GLOBAL_VAR(logging),
1126                 .special        = NULL,
1127                 .enum_list      = NULL,
1128         },
1129         {
1130                 .label          = "max log size",
1131                 .type           = P_BYTES,
1132                 .p_class        = P_GLOBAL,
1133                 .offset         = GLOBAL_VAR(max_log_size),
1134                 .special        = NULL,
1135                 .enum_list      = NULL,
1136         },
1137         {
1138                 .label          = "debug timestamp",
1139                 .type           = P_BOOL,
1140                 .p_class        = P_GLOBAL,
1141                 .offset         = GLOBAL_VAR(timestamp_logs),
1142                 .special        = NULL,
1143                 .enum_list      = NULL,
1144         },
1145         {
1146                 .label          = "timestamp logs",
1147                 .type           = P_BOOL,
1148                 .p_class        = P_GLOBAL,
1149                 .offset         = GLOBAL_VAR(timestamp_logs),
1150                 .special        = NULL,
1151                 .enum_list      = NULL,
1152         },
1153         {
1154                 .label          = "debug prefix timestamp",
1155                 .type           = P_BOOL,
1156                 .p_class        = P_GLOBAL,
1157                 .offset         = GLOBAL_VAR(debug_prefix_timestamp),
1158                 .special        = NULL,
1159                 .enum_list      = NULL,
1160         },
1161         {
1162                 .label          = "debug hires timestamp",
1163                 .type           = P_BOOL,
1164                 .p_class        = P_GLOBAL,
1165                 .offset         = GLOBAL_VAR(debug_hires_timestamp),
1166                 .special        = NULL,
1167                 .enum_list      = NULL,
1168         },
1169         {
1170                 .label          = "debug pid",
1171                 .type           = P_BOOL,
1172                 .p_class        = P_GLOBAL,
1173                 .offset         = GLOBAL_VAR(debug_pid),
1174                 .special        = NULL,
1175                 .enum_list      = NULL,
1176         },
1177         {
1178                 .label          = "debug uid",
1179                 .type           = P_BOOL,
1180                 .p_class        = P_GLOBAL,
1181                 .offset         = GLOBAL_VAR(debug_uid),
1182                 .special        = NULL,
1183                 .enum_list      = NULL,
1184         },
1185         {
1186                 .label          = "debug class",
1187                 .type           = P_BOOL,
1188                 .p_class        = P_GLOBAL,
1189                 .offset         = GLOBAL_VAR(debug_class),
1190                 .special        = NULL,
1191                 .enum_list      = NULL,
1192         },
1193         {
1194                 .label          = "enable core files",
1195                 .type           = P_BOOL,
1196                 .p_class        = P_GLOBAL,
1197                 .offset         = GLOBAL_VAR(enable_core_files),
1198                 .special        = NULL,
1199                 .enum_list      = NULL,
1200         },
1201         {
1202                 .label          = "allocation roundup size",
1203                 .type           = P_BYTES,
1204                 .p_class        = P_LOCAL,
1205                 .offset         = LOCAL_VAR(allocation_roundup_size),
1206                 .special        = NULL,
1207                 .enum_list      = NULL,
1208         },
1209         {
1210                 .label          = "aio read size",
1211                 .type           = P_BYTES,
1212                 .p_class        = P_LOCAL,
1213                 .offset         = LOCAL_VAR(aio_read_size),
1214                 .special        = NULL,
1215                 .enum_list      = NULL,
1216         },
1217         {
1218                 .label          = "aio write size",
1219                 .type           = P_BYTES,
1220                 .p_class        = P_LOCAL,
1221                 .offset         = LOCAL_VAR(aio_write_size),
1222                 .special        = NULL,
1223                 .enum_list      = NULL,
1224         },
1225         {
1226                 .label          = "aio write behind",
1227                 .type           = P_STRING,
1228                 .p_class        = P_LOCAL,
1229                 .offset         = LOCAL_VAR(aio_write_behind),
1230                 .special        = NULL,
1231                 .enum_list      = NULL,
1232         },
1233         {
1234                 .label          = "smb ports",
1235                 .type           = P_CMDLIST,
1236                 .p_class        = P_GLOBAL,
1237                 .offset         = GLOBAL_VAR(smb_ports),
1238                 .special        = handle_smb_ports,
1239                 .enum_list      = NULL,
1240         },
1241         {
1242                 .label          = "large readwrite",
1243                 .type           = P_BOOL,
1244                 .p_class        = P_GLOBAL,
1245                 .offset         = GLOBAL_VAR(large_readwrite),
1246                 .special        = NULL,
1247                 .enum_list      = NULL,
1248         },
1249         {
1250                 .label          = "server max protocol",
1251                 .type           = P_ENUM,
1252                 .p_class        = P_GLOBAL,
1253                 .offset         = GLOBAL_VAR(server_max_protocol),
1254                 .special        = NULL,
1255                 .enum_list      = enum_protocol,
1256         },
1257         {
1258                 .label          = "max protocol",
1259                 .type           = P_ENUM,
1260                 .p_class        = P_GLOBAL,
1261                 .offset         = GLOBAL_VAR(server_max_protocol),
1262                 .special        = NULL,
1263                 .enum_list      = enum_protocol,
1264         },
1265         {
1266                 .label          = "protocol",
1267                 .type           = P_ENUM,
1268                 .p_class        = P_GLOBAL,
1269                 .offset         = GLOBAL_VAR(server_max_protocol),
1270                 .special        = NULL,
1271                 .enum_list      = enum_protocol,
1272         },
1273         {
1274                 .label          = "server min protocol",
1275                 .type           = P_ENUM,
1276                 .p_class        = P_GLOBAL,
1277                 .offset         = GLOBAL_VAR(server_min_protocol),
1278                 .special        = NULL,
1279                 .enum_list      = enum_protocol,
1280         },
1281         {
1282                 .label          = "min protocol",
1283                 .type           = P_ENUM,
1284                 .p_class        = P_GLOBAL,
1285                 .offset         = GLOBAL_VAR(server_min_protocol),
1286                 .special        = NULL,
1287                 .enum_list      = enum_protocol,
1288         },
1289         {
1290                 .label          = "client max protocol",
1291                 .type           = P_ENUM,
1292                 .p_class        = P_GLOBAL,
1293                 .offset         = GLOBAL_VAR(_client_max_protocol),
1294                 .special        = NULL,
1295                 .enum_list      = enum_protocol,
1296         },
1297         {
1298                 .label          = "client min protocol",
1299                 .type           = P_ENUM,
1300                 .p_class        = P_GLOBAL,
1301                 .offset         = GLOBAL_VAR(client_min_protocol),
1302                 .special        = NULL,
1303                 .enum_list      = enum_protocol,
1304         },
1305         {
1306                 .label          = "unicode",
1307                 .type           = P_BOOL,
1308                 .p_class        = P_GLOBAL,
1309                 .offset         = GLOBAL_VAR(unicode),
1310                 .special        = NULL,
1311                 .enum_list      = NULL
1312         },
1313         {
1314                 .label          = "min receivefile size",
1315                 .type           = P_BYTES,
1316                 .p_class        = P_GLOBAL,
1317                 .offset         = GLOBAL_VAR(min_receivefile_size),
1318                 .special        = NULL,
1319                 .enum_list      = NULL,
1320         },
1321         {
1322                 .label          = "read raw",
1323                 .type           = P_BOOL,
1324                 .p_class        = P_GLOBAL,
1325                 .offset         = GLOBAL_VAR(read_raw),
1326                 .special        = NULL,
1327                 .enum_list      = NULL,
1328         },
1329         {
1330                 .label          = "write raw",
1331                 .type           = P_BOOL,
1332                 .p_class        = P_GLOBAL,
1333                 .offset         = GLOBAL_VAR(write_raw),
1334                 .special        = NULL,
1335                 .enum_list      = NULL,
1336         },
1337         {
1338                 .label          = "disable netbios",
1339                 .type           = P_BOOL,
1340                 .p_class        = P_GLOBAL,
1341                 .offset         = GLOBAL_VAR(disable_netbios),
1342                 .special        = NULL,
1343                 .enum_list      = NULL,
1344         },
1345         {
1346                 .label          = "reset on zero vc",
1347                 .type           = P_BOOL,
1348                 .p_class        = P_GLOBAL,
1349                 .offset         = GLOBAL_VAR(reset_on_zero_vc),
1350                 .special        = NULL,
1351                 .enum_list      = NULL,
1352         },
1353         {
1354                 .label          = "log writeable files on exit",
1355                 .type           = P_BOOL,
1356                 .p_class        = P_GLOBAL,
1357                 .offset         = GLOBAL_VAR(log_writeable_files_on_exit),
1358                 .special        = NULL,
1359                 .enum_list      = NULL,
1360         },
1361         {
1362                 .label          = "defer sharing violations",
1363                 .type           = P_BOOL,
1364                 .p_class        = P_GLOBAL,
1365                 .offset         = GLOBAL_VAR(defer_sharing_violations),
1366                 .special        = NULL,
1367                 .enum_list      = NULL,
1368         },
1369         {
1370                 .label          = "ea support",
1371                 .type           = P_BOOL,
1372                 .p_class        = P_LOCAL,
1373                 .offset         = LOCAL_VAR(ea_support),
1374                 .special        = NULL,
1375                 .enum_list      = NULL,
1376         },
1377         {
1378                 .label          = "nt acl support",
1379                 .type           = P_BOOL,
1380                 .p_class        = P_LOCAL,
1381                 .offset         = LOCAL_VAR(nt_acl_support),
1382                 .special        = NULL,
1383                 .enum_list      = NULL,
1384         },
1385         {
1386                 .label          = "nt pipe support",
1387                 .type           = P_BOOL,
1388                 .p_class        = P_GLOBAL,
1389                 .offset         = GLOBAL_VAR(nt_pipe_support),
1390                 .special        = NULL,
1391                 .enum_list      = NULL,
1392         },
1393         {
1394                 .label          = "nt status support",
1395                 .type           = P_BOOL,
1396                 .p_class        = P_GLOBAL,
1397                 .offset         = GLOBAL_VAR(nt_status_support),
1398                 .special        = NULL,
1399                 .enum_list      = NULL,
1400         },
1401         {
1402                 .label          = "smbd profiling level",
1403                 .type           = P_ENUM,
1404                 .p_class        = P_GLOBAL,
1405                 .offset         = GLOBAL_VAR(smbd_profiling_level),
1406                 .special        = NULL,
1407                 .enum_list      = enum_smbd_profiling_level,
1408         },
1409         {
1410                 .label          = "profile acls",
1411                 .type           = P_BOOL,
1412                 .p_class        = P_LOCAL,
1413                 .offset         = LOCAL_VAR(profile_acls),
1414                 .special        = NULL,
1415                 .enum_list      = NULL,
1416         },
1417         {
1418                 .label          = "map acl inherit",
1419                 .type           = P_BOOL,
1420                 .p_class        = P_LOCAL,
1421                 .offset         = LOCAL_VAR(map_acl_inherit),
1422                 .special        = NULL,
1423                 .enum_list      = NULL,
1424         },
1425         {
1426                 .label          = "afs share",
1427                 .type           = P_BOOL,
1428                 .p_class        = P_LOCAL,
1429                 .offset         = LOCAL_VAR(afs_share),
1430                 .special        = NULL,
1431                 .enum_list      = NULL,
1432         },
1433         {
1434                 .label          = "max mux",
1435                 .type           = P_INTEGER,
1436                 .p_class        = P_GLOBAL,
1437                 .offset         = GLOBAL_VAR(max_mux),
1438                 .special        = NULL,
1439                 .enum_list      = NULL,
1440         },
1441         {
1442                 .label          = "max xmit",
1443                 .type           = P_BYTES,
1444                 .p_class        = P_GLOBAL,
1445                 .offset         = GLOBAL_VAR(max_xmit),
1446                 .special        = NULL,
1447                 .enum_list      = NULL,
1448         },
1449         {
1450                 .label          = "name resolve order",
1451                 .type           = P_CMDLIST,
1452                 .p_class        = P_GLOBAL,
1453                 .offset         = GLOBAL_VAR(name_resolve_order),
1454                 .special        = NULL,
1455                 .enum_list      = NULL,
1456         },
1457         {
1458                 .label          = "max ttl",
1459                 .type           = P_INTEGER,
1460                 .p_class        = P_GLOBAL,
1461                 .offset         = GLOBAL_VAR(max_ttl),
1462                 .special        = NULL,
1463                 .enum_list      = NULL,
1464         },
1465         {
1466                 .label          = "max wins ttl",
1467                 .type           = P_INTEGER,
1468                 .p_class        = P_GLOBAL,
1469                 .offset         = GLOBAL_VAR(max_wins_ttl),
1470                 .special        = NULL,
1471                 .enum_list      = NULL,
1472         },
1473         {
1474                 .label          = "min wins ttl",
1475                 .type           = P_INTEGER,
1476                 .p_class        = P_GLOBAL,
1477                 .offset         = GLOBAL_VAR(min_wins_ttl),
1478                 .special        = NULL,
1479                 .enum_list      = NULL,
1480         },
1481         {
1482                 .label          = "time server",
1483                 .type           = P_BOOL,
1484                 .p_class        = P_GLOBAL,
1485                 .offset         = GLOBAL_VAR(time_server),
1486                 .special        = NULL,
1487                 .enum_list      = NULL,
1488         },
1489         {
1490                 .label          = "unix extensions",
1491                 .type           = P_BOOL,
1492                 .p_class        = P_GLOBAL,
1493                 .offset         = GLOBAL_VAR(unix_extensions),
1494                 .special        = NULL,
1495                 .enum_list      = NULL,
1496         },
1497         {
1498                 .label          = "use spnego",
1499                 .type           = P_BOOL,
1500                 .p_class        = P_GLOBAL,
1501                 .offset         = GLOBAL_VAR(use_spnego),
1502                 .special        = NULL,
1503                 .enum_list      = NULL,
1504                 .flags          = FLAG_DEPRECATED,
1505         },
1506         {
1507                 .label          = "client signing",
1508                 .type           = P_ENUM,
1509                 .p_class        = P_GLOBAL,
1510                 .offset         = GLOBAL_VAR(client_signing),
1511                 .special        = NULL,
1512                 .enum_list      = enum_smb_signing_vals,
1513         },
1514         {
1515                 .label          = "server signing",
1516                 .type           = P_ENUM,
1517                 .p_class        = P_GLOBAL,
1518                 .offset         = GLOBAL_VAR(server_signing),
1519                 .special        = NULL,
1520                 .enum_list      = enum_smb_signing_vals,
1521         },
1522         {
1523                 .label          = "smb encrypt",
1524                 .type           = P_ENUM,
1525                 .p_class        = P_LOCAL,
1526                 .offset         = LOCAL_VAR(smb_encrypt),
1527                 .special        = NULL,
1528                 .enum_list      = enum_smb_signing_vals,
1529         },
1530         {
1531                 .label          = "client use spnego",
1532                 .type           = P_BOOL,
1533                 .p_class        = P_GLOBAL,
1534                 .offset         = GLOBAL_VAR(client_use_spnego),
1535                 .special        = NULL,
1536                 .enum_list      = NULL,
1537         },
1538         {
1539                 .label          = "client ldap sasl wrapping",
1540                 .type           = P_ENUM,
1541                 .p_class        = P_GLOBAL,
1542                 .offset         = GLOBAL_VAR(client_ldap_sasl_wrapping),
1543                 .special        = NULL,
1544                 .enum_list      = enum_ldap_sasl_wrapping,
1545         },
1546         {
1547                 .label          = "enable asu support",
1548                 .type           = P_BOOL,
1549                 .p_class        = P_GLOBAL,
1550                 .offset         = GLOBAL_VAR(enable_asu_support),
1551                 .special        = NULL,
1552                 .enum_list      = NULL,
1553         },
1554         {
1555                 .label          = "svcctl list",
1556                 .type           = P_CMDLIST,
1557                 .p_class        = P_GLOBAL,
1558                 .offset         = GLOBAL_VAR(svcctl_list),
1559                 .special        = NULL,
1560                 .enum_list      = NULL,
1561         },
1562         {
1563                 .label          = "cldap port",
1564                 .type           = P_INTEGER,
1565                 .p_class        = P_GLOBAL,
1566                 .offset         = GLOBAL_VAR(cldap_port),
1567                 .special        = NULL,
1568                 .enum_list      = NULL
1569         },
1570         {
1571                 .label          = "dgram port",
1572                 .type           = P_INTEGER,
1573                 .p_class        = P_GLOBAL,
1574                 .offset         = GLOBAL_VAR(dgram_port),
1575                 .special        = NULL,
1576                 .enum_list      = NULL,
1577                 .flags          = FLAG_DEPRECATED
1578         },
1579         {
1580                 .label          = "nbt port",
1581                 .type           = P_INTEGER,
1582                 .p_class        = P_GLOBAL,
1583                 .offset         = GLOBAL_VAR(nbt_port),
1584                 .special        = NULL,
1585                 .enum_list      = NULL,
1586                 .flags          = FLAG_DEPRECATED
1587         },
1588         {
1589                 .label          = "krb5 port",
1590                 .type           = P_INTEGER,
1591                 .p_class        = P_GLOBAL,
1592                 .offset         = GLOBAL_VAR(krb5_port),
1593                 .special        = NULL,
1594                 .enum_list      = NULL
1595         },
1596         {
1597                 .label          = "kpasswd port",
1598                 .type           = P_INTEGER,
1599                 .p_class        = P_GLOBAL,
1600                 .offset         = GLOBAL_VAR(kpasswd_port),
1601                 .special        = NULL,
1602                 .enum_list      = NULL
1603         },
1604         {
1605                 .label          = "web port",
1606                 .type           = P_INTEGER,
1607                 .p_class        = P_GLOBAL,
1608                 .offset         = GLOBAL_VAR(web_port),
1609                 .special        = NULL,
1610                 .enum_list      = NULL
1611         },
1612         {
1613                 .label          = "rpc big endian",
1614                 .type           = P_BOOL,
1615                 .p_class        = P_GLOBAL,
1616                 .offset         = GLOBAL_VAR(rpc_big_endian),
1617                 .special        = NULL,
1618                 .enum_list      = NULL
1619         },
1620         {
1621                 .label          = "durable handles",
1622                 .type           = P_BOOL,
1623                 .p_class        = P_LOCAL,
1624                 .offset         = LOCAL_VAR(durable_handles),
1625                 .special        = NULL,
1626                 .enum_list      = NULL,
1627         },
1628         {
1629                 .label          = "block size",
1630                 .type           = P_BYTES,
1631                 .p_class        = P_LOCAL,
1632                 .offset         = LOCAL_VAR(block_size),
1633                 .special        = NULL,
1634                 .enum_list      = NULL,
1635         },
1636         {
1637                 .label          = "deadtime",
1638                 .type           = P_INTEGER,
1639                 .p_class        = P_GLOBAL,
1640                 .offset         = GLOBAL_VAR(deadtime),
1641                 .special        = NULL,
1642                 .enum_list      = NULL,
1643         },
1644         {
1645                 .label          = "getwd cache",
1646                 .type           = P_BOOL,
1647                 .p_class        = P_GLOBAL,
1648                 .offset         = GLOBAL_VAR(getwd_cache),
1649                 .special        = NULL,
1650                 .enum_list      = NULL,
1651         },
1652         {
1653                 .label          = "keepalive",
1654                 .type           = P_INTEGER,
1655                 .p_class        = P_GLOBAL,
1656                 .offset         = GLOBAL_VAR(keepalive),
1657                 .special        = NULL,
1658                 .enum_list      = NULL,
1659         },
1660         {
1661                 .label          = "change notify",
1662                 .type           = P_BOOL,
1663                 .p_class        = P_GLOBAL,
1664                 .offset         = GLOBAL_VAR(change_notify),
1665                 .special        = NULL,
1666                 .enum_list      = NULL,
1667         },
1668         {
1669                 .label          = "directory name cache size",
1670                 .type           = P_INTEGER,
1671                 .p_class        = P_LOCAL,
1672                 .offset         = LOCAL_VAR(directory_name_cache_size),
1673                 .special        = NULL,
1674                 .enum_list      = NULL,
1675         },
1676         {
1677                 .label          = "kernel change notify",
1678                 .type           = P_BOOL,
1679                 .p_class        = P_GLOBAL,
1680                 .offset         = GLOBAL_VAR(kernel_change_notify),
1681                 .special        = NULL,
1682                 .enum_list      = NULL,
1683         },
1684         {
1685                 .label          = "lpq cache time",
1686                 .type           = P_INTEGER,
1687                 .p_class        = P_GLOBAL,
1688                 .offset         = GLOBAL_VAR(lpq_cache_time),
1689                 .special        = NULL,
1690                 .enum_list      = NULL,
1691         },
1692         {
1693                 .label          = "max smbd processes",
1694                 .type           = P_INTEGER,
1695                 .p_class        = P_GLOBAL,
1696                 .offset         = GLOBAL_VAR(max_smbd_processes),
1697                 .special        = NULL,
1698                 .enum_list      = NULL,
1699         },
1700         {
1701                 .label          = "max connections",
1702                 .type           = P_INTEGER,
1703                 .p_class        = P_LOCAL,
1704                 .offset         = LOCAL_VAR(max_connections),
1705                 .special        = NULL,
1706                 .enum_list      = NULL,
1707         },
1708         {
1709                 .label          = "max disk size",
1710                 .type           = P_BYTES,
1711                 .p_class        = P_GLOBAL,
1712                 .offset         = GLOBAL_VAR(max_disk_size),
1713                 .special        = NULL,
1714                 .enum_list      = NULL,
1715         },
1716         {
1717                 .label          = "max open files",
1718                 .type           = P_INTEGER,
1719                 .p_class        = P_GLOBAL,
1720                 .offset         = GLOBAL_VAR(max_open_files),
1721                 .special        = NULL,
1722                 .enum_list      = NULL,
1723         },
1724         {
1725                 .label          = "min print space",
1726                 .type           = P_INTEGER,
1727                 .p_class        = P_LOCAL,
1728                 .offset         = LOCAL_VAR(min_print_space),
1729                 .special        = NULL,
1730                 .enum_list      = NULL,
1731         },
1732         {
1733                 .label          = "socket options",
1734                 .type           = P_STRING,
1735                 .p_class        = P_GLOBAL,
1736                 .offset         = GLOBAL_VAR(socket_options),
1737                 .special        = NULL,
1738                 .enum_list      = NULL,
1739         },
1740         {
1741                 .label          = "strict allocate",
1742                 .type           = P_BOOL,
1743                 .p_class        = P_LOCAL,
1744                 .offset         = LOCAL_VAR(strict_allocate),
1745                 .special        = NULL,
1746                 .enum_list      = NULL,
1747         },
1748         {
1749                 .label          = "strict rename",
1750                 .type           = P_BOOL,
1751                 .p_class        = P_LOCAL,
1752                 .offset         = LOCAL_VAR(strict_rename),
1753                 .special        = NULL,
1754                 .enum_list      = NULL,
1755         },
1756         {
1757                 .label          = "strict sync",
1758                 .type           = P_BOOL,
1759                 .p_class        = P_LOCAL,
1760                 .offset         = LOCAL_VAR(strict_sync),
1761                 .special        = NULL,
1762                 .enum_list      = NULL,
1763         },
1764         {
1765                 .label          = "sync always",
1766                 .type           = P_BOOL,
1767                 .p_class        = P_LOCAL,
1768                 .offset         = LOCAL_VAR(sync_always),
1769                 .special        = NULL,
1770                 .enum_list      = NULL,
1771         },
1772         {
1773                 .label          = "use mmap",
1774                 .type           = P_BOOL,
1775                 .p_class        = P_GLOBAL,
1776                 .offset         = GLOBAL_VAR(use_mmap),
1777                 .special        = NULL,
1778                 .enum_list      = NULL,
1779         },
1780         {
1781                 .label          = "use sendfile",
1782                 .type           = P_BOOL,
1783                 .p_class        = P_LOCAL,
1784                 .offset         = LOCAL_VAR(_use_sendfile),
1785                 .special        = NULL,
1786                 .enum_list      = NULL,
1787         },
1788         {
1789                 .label          = "hostname lookups",
1790                 .type           = P_BOOL,
1791                 .p_class        = P_GLOBAL,
1792                 .offset         = GLOBAL_VAR(hostname_lookups),
1793                 .special        = NULL,
1794                 .enum_list      = NULL,
1795         },
1796         {
1797                 .label          = "write cache size",
1798                 .type           = P_BYTES,
1799                 .p_class        = P_LOCAL,
1800                 .offset         = LOCAL_VAR(write_cache_size),
1801                 .special        = NULL,
1802                 .enum_list      = NULL,
1803         },
1804         {
1805                 .label          = "name cache timeout",
1806                 .type           = P_INTEGER,
1807                 .p_class        = P_GLOBAL,
1808                 .offset         = GLOBAL_VAR(name_cache_timeout),
1809                 .special        = NULL,
1810                 .enum_list      = NULL,
1811         },
1812         {
1813                 .label          = "ctdbd socket",
1814                 .type           = P_STRING,
1815                 .p_class        = P_GLOBAL,
1816                 .offset         = GLOBAL_VAR(_ctdbd_socket),
1817                 .special        = NULL,
1818                 .enum_list      = NULL,
1819         },
1820         {
1821                 .label          = "cluster addresses",
1822                 .type           = P_CMDLIST,
1823                 .p_class        = P_GLOBAL,
1824                 .offset         = GLOBAL_VAR(cluster_addresses),
1825                 .special        = NULL,
1826                 .enum_list      = NULL,
1827         },
1828         {
1829                 .label          = "clustering",
1830                 .type           = P_BOOL,
1831                 .p_class        = P_GLOBAL,
1832                 .offset         = GLOBAL_VAR(clustering),
1833                 .special        = NULL,
1834                 .enum_list      = NULL,
1835         },
1836         {
1837                 .label          = "ctdb timeout",
1838                 .type           = P_INTEGER,
1839                 .p_class        = P_GLOBAL,
1840                 .offset         = GLOBAL_VAR(ctdb_timeout),
1841                 .special        = NULL,
1842                 .enum_list      = NULL,
1843         },
1844         {
1845                 .label          = "ctdb locktime warn threshold",
1846                 .type           = P_INTEGER,
1847                 .p_class        = P_GLOBAL,
1848                 .offset         = GLOBAL_VAR(ctdb_locktime_warn_threshold),
1849                 .special        = NULL,
1850                 .enum_list      = NULL,
1851         },
1852         {
1853                 .label          = "smb2 max read",
1854                 .type           = P_BYTES,
1855                 .p_class        = P_GLOBAL,
1856                 .offset         = GLOBAL_VAR(smb2_max_read),
1857                 .special        = NULL,
1858                 .enum_list      = NULL,
1859         },
1860         {
1861                 .label          = "smb2 max write",
1862                 .type           = P_BYTES,
1863                 .p_class        = P_GLOBAL,
1864                 .offset         = GLOBAL_VAR(smb2_max_write),
1865                 .special        = NULL,
1866                 .enum_list      = NULL,
1867         },
1868         {
1869                 .label          = "smb2 max trans",
1870                 .type           = P_BYTES,
1871                 .p_class        = P_GLOBAL,
1872                 .offset         = GLOBAL_VAR(smb2_max_trans),
1873                 .special        = NULL,
1874                 .enum_list      = NULL,
1875         },
1876         {
1877                 .label          = "smb2 max credits",
1878                 .type           = P_INTEGER,
1879                 .p_class        = P_GLOBAL,
1880                 .offset         = GLOBAL_VAR(smb2_max_credits),
1881                 .special        = handle_smb2_max_credits,
1882                 .enum_list      = NULL,
1883         },
1884         {
1885                 .label          = "max reported print jobs",
1886                 .type           = P_INTEGER,
1887                 .p_class        = P_LOCAL,
1888                 .offset         = LOCAL_VAR(max_reported_print_jobs),
1889                 .special        = NULL,
1890                 .enum_list      = NULL,
1891         },
1892         {
1893                 .label          = "max print jobs",
1894                 .type           = P_INTEGER,
1895                 .p_class        = P_LOCAL,
1896                 .offset         = LOCAL_VAR(max_print_jobs),
1897                 .special        = NULL,
1898                 .enum_list      = NULL,
1899         },
1900         {
1901                 .label          = "load printers",
1902                 .type           = P_BOOL,
1903                 .p_class        = P_GLOBAL,
1904                 .offset         = GLOBAL_VAR(load_printers),
1905                 .special        = NULL,
1906                 .enum_list      = NULL,
1907         },
1908         {
1909                 .label          = "printcap cache time",
1910                 .type           = P_INTEGER,
1911                 .p_class        = P_GLOBAL,
1912                 .offset         = GLOBAL_VAR(printcap_cache_time),
1913                 .special        = NULL,
1914                 .enum_list      = NULL,
1915         },
1916         {
1917                 .label          = "printcap name",
1918                 .type           = P_STRING,
1919                 .p_class        = P_GLOBAL,
1920                 .offset         = GLOBAL_VAR(printcap_name),
1921                 .special        = NULL,
1922                 .enum_list      = NULL,
1923         },
1924         {
1925                 .label          = "printcap",
1926                 .type           = P_STRING,
1927                 .p_class        = P_GLOBAL,
1928                 .offset         = GLOBAL_VAR(printcap_name),
1929                 .special        = NULL,
1930                 .enum_list      = NULL,
1931                 .flags          = FLAG_SYNONYM,
1932         },
1933         {
1934                 .label          = "printable",
1935                 .type           = P_BOOL,
1936                 .p_class        = P_LOCAL,
1937                 .offset         = LOCAL_VAR(printable),
1938                 .special        = NULL,
1939                 .enum_list      = NULL,
1940         },
1941         {
1942                 .label          = "print notify backchannel",
1943                 .type           = P_BOOL,
1944                 .p_class        = P_LOCAL,
1945                 .offset         = LOCAL_VAR(print_notify_backchannel),
1946                 .special        = NULL,
1947                 .enum_list      = NULL,
1948         },
1949         {
1950                 .label          = "print ok",
1951                 .type           = P_BOOL,
1952                 .p_class        = P_LOCAL,
1953                 .offset         = LOCAL_VAR(printable),
1954                 .special        = NULL,
1955                 .enum_list      = NULL,
1956                 .flags          = FLAG_SYNONYM,
1957         },
1958         {
1959                 .label          = "printing",
1960                 .type           = P_ENUM,
1961                 .p_class        = P_LOCAL,
1962                 .offset         = LOCAL_VAR(printing),
1963                 .special        = handle_printing,
1964                 .enum_list      = enum_printing,
1965         },
1966         {
1967                 .label          = "cups options",
1968                 .type           = P_STRING,
1969                 .p_class        = P_LOCAL,
1970                 .offset         = LOCAL_VAR(cups_options),
1971                 .special        = NULL,
1972                 .enum_list      = NULL,
1973         },
1974         {
1975                 .label          = "cups server",
1976                 .type           = P_STRING,
1977                 .p_class        = P_GLOBAL,
1978                 .offset         = GLOBAL_VAR(cups_server),
1979                 .special        = NULL,
1980                 .enum_list      = NULL,
1981         },
1982         {
1983                 .label          = "cups encrypt",
1984                 .type           = P_ENUM,
1985                 .p_class        = P_GLOBAL,
1986                 .offset         = GLOBAL_VAR(cups_encrypt),
1987                 .special        = NULL,
1988                 .enum_list      = enum_bool_auto,
1989         },
1990         {
1991
1992                 .label          = "cups connection timeout",
1993                 .type           = P_INTEGER,
1994                 .p_class        = P_GLOBAL,
1995                 .offset         = GLOBAL_VAR(cups_connection_timeout),
1996                 .special        = NULL,
1997                 .enum_list      = NULL,
1998         },
1999         {
2000                 .label          = "iprint server",
2001                 .type           = P_STRING,
2002                 .p_class        = P_GLOBAL,
2003                 .offset         = GLOBAL_VAR(iprint_server),
2004                 .special        = NULL,
2005                 .enum_list      = NULL,
2006         },
2007         {
2008                 .label          = "print command",
2009                 .type           = P_STRING,
2010                 .p_class        = P_LOCAL,
2011                 .offset         = LOCAL_VAR(print_command),
2012                 .special        = NULL,
2013                 .enum_list      = NULL,
2014         },
2015         {
2016                 .label          = "disable spoolss",
2017                 .type           = P_BOOL,
2018                 .p_class        = P_GLOBAL,
2019                 .offset         = GLOBAL_VAR(_disable_spoolss),
2020                 .special        = NULL,
2021                 .enum_list      = NULL,
2022         },
2023         {
2024                 .label          = "enable spoolss",
2025                 .type           = P_BOOLREV,
2026                 .p_class        = P_GLOBAL,
2027                 .offset         = GLOBAL_VAR(_disable_spoolss),
2028                 .special        = NULL,
2029                 .enum_list      = NULL,
2030                 .flags          = FLAG_SYNONYM,
2031         },
2032         {
2033                 .label          = "lpq command",
2034                 .type           = P_STRING,
2035                 .p_class        = P_LOCAL,
2036                 .offset         = LOCAL_VAR(lpq_command),
2037                 .special        = NULL,
2038                 .enum_list      = NULL,
2039         },
2040         {
2041                 .label          = "lprm command",
2042                 .type           = P_STRING,
2043                 .p_class        = P_LOCAL,
2044                 .offset         = LOCAL_VAR(lprm_command),
2045                 .special        = NULL,
2046                 .enum_list      = NULL,
2047         },
2048         {
2049                 .label          = "lppause command",
2050                 .type           = P_STRING,
2051                 .p_class        = P_LOCAL,
2052                 .offset         = LOCAL_VAR(lppause_command),
2053                 .special        = NULL,
2054                 .enum_list      = NULL,
2055         },
2056         {
2057                 .label          = "lpresume command",
2058                 .type           = P_STRING,
2059                 .p_class        = P_LOCAL,
2060                 .offset         = LOCAL_VAR(lpresume_command),
2061                 .special        = NULL,
2062                 .enum_list      = NULL,
2063         },
2064         {
2065                 .label          = "queuepause command",
2066                 .type           = P_STRING,
2067                 .p_class        = P_LOCAL,
2068                 .offset         = LOCAL_VAR(queuepause_command),
2069                 .special        = NULL,
2070                 .enum_list      = NULL,
2071         },
2072         {
2073                 .label          = "queueresume command",
2074                 .type           = P_STRING,
2075                 .p_class        = P_LOCAL,
2076                 .offset         = LOCAL_VAR(queueresume_command),
2077                 .special        = NULL,
2078                 .enum_list      = NULL,
2079         },
2080         {
2081                 .label          = "addport command",
2082                 .type           = P_STRING,
2083                 .p_class        = P_GLOBAL,
2084                 .offset         = GLOBAL_VAR(addport_command),
2085                 .special        = NULL,
2086                 .enum_list      = NULL,
2087         },
2088         {
2089                 .label          = "enumports command",
2090                 .type           = P_STRING,
2091                 .p_class        = P_GLOBAL,
2092                 .offset         = GLOBAL_VAR(enumports_command),
2093                 .special        = NULL,
2094                 .enum_list      = NULL,
2095         },
2096         {
2097                 .label          = "addprinter command",
2098                 .type           = P_STRING,
2099                 .p_class        = P_GLOBAL,
2100                 .offset         = GLOBAL_VAR(addprinter_command),
2101                 .special        = NULL,
2102                 .enum_list      = NULL,
2103         },
2104         {
2105                 .label          = "deleteprinter command",
2106                 .type           = P_STRING,
2107                 .p_class        = P_GLOBAL,
2108                 .offset         = GLOBAL_VAR(deleteprinter_command),
2109                 .special        = NULL,
2110                 .enum_list      = NULL,
2111         },
2112         {
2113                 .label          = "show add printer wizard",
2114                 .type           = P_BOOL,
2115                 .p_class        = P_GLOBAL,
2116                 .offset         = GLOBAL_VAR(show_add_printer_wizard),
2117                 .special        = NULL,
2118                 .enum_list      = NULL,
2119         },
2120         {
2121                 .label          = "os2 driver map",
2122                 .type           = P_STRING,
2123                 .p_class        = P_GLOBAL,
2124                 .offset         = GLOBAL_VAR(os2_driver_map),
2125                 .special        = NULL,
2126                 .enum_list      = NULL,
2127         },
2128
2129         {
2130                 .label          = "printer name",
2131                 .type           = P_STRING,
2132                 .p_class        = P_LOCAL,
2133                 .offset         = LOCAL_VAR(_printername),
2134                 .special        = NULL,
2135                 .enum_list      = NULL,
2136         },
2137         {
2138                 .label          = "printer",
2139                 .type           = P_STRING,
2140                 .p_class        = P_LOCAL,
2141                 .offset         = LOCAL_VAR(_printername),
2142                 .special        = NULL,
2143                 .enum_list      = NULL,
2144                 .flags          = FLAG_SYNONYM,
2145         },
2146         {
2147                 .label          = "use client driver",
2148                 .type           = P_BOOL,
2149                 .p_class        = P_LOCAL,
2150                 .offset         = LOCAL_VAR(use_client_driver),
2151                 .special        = NULL,
2152                 .enum_list      = NULL,
2153         },
2154         {
2155                 .label          = "default devmode",
2156                 .type           = P_BOOL,
2157                 .p_class        = P_LOCAL,
2158                 .offset         = LOCAL_VAR(default_devmode),
2159                 .special        = NULL,
2160                 .enum_list      = NULL,
2161         },
2162         {
2163                 .label          = "force printername",
2164                 .type           = P_BOOL,
2165                 .p_class        = P_LOCAL,
2166                 .offset         = LOCAL_VAR(force_printername),
2167                 .special        = NULL,
2168                 .enum_list      = NULL,
2169         },
2170         {
2171                 .label          = "printjob username",
2172                 .type           = P_STRING,
2173                 .p_class        = P_LOCAL,
2174                 .offset         = LOCAL_VAR(printjob_username),
2175                 .special        = NULL,
2176                 .enum_list      = NULL,
2177         },
2178         {
2179                 .label          = "mangling method",
2180                 .type           = P_STRING,
2181                 .p_class        = P_GLOBAL,
2182                 .offset         = GLOBAL_VAR(mangling_method),
2183                 .special        = NULL,
2184                 .enum_list      = NULL,
2185         },
2186         {
2187                 .label          = "mangle prefix",
2188                 .type           = P_INTEGER,
2189                 .p_class        = P_GLOBAL,
2190                 .offset         = GLOBAL_VAR(mangle_prefix),
2191                 .special        = NULL,
2192                 .enum_list      = NULL,
2193         },
2194
2195         {
2196                 .label          = "default case",
2197                 .type           = P_ENUM,
2198                 .p_class        = P_LOCAL,
2199                 .offset         = LOCAL_VAR(default_case),
2200                 .special        = NULL,
2201                 .enum_list      = enum_case,
2202         },
2203         {
2204                 .label          = "case sensitive",
2205                 .type           = P_ENUM,
2206                 .p_class        = P_LOCAL,
2207                 .offset         = LOCAL_VAR(case_sensitive),
2208                 .special        = NULL,
2209                 .enum_list      = enum_bool_auto,
2210         },
2211         {
2212                 .label          = "casesignames",
2213                 .type           = P_ENUM,
2214                 .p_class        = P_LOCAL,
2215                 .offset         = LOCAL_VAR(case_sensitive),
2216                 .special        = NULL,
2217                 .enum_list      = enum_bool_auto,
2218                 .flags          = FLAG_SYNONYM,
2219         },
2220         {
2221                 .label          = "preserve case",
2222                 .type           = P_BOOL,
2223                 .p_class        = P_LOCAL,
2224                 .offset         = LOCAL_VAR(preserve_case),
2225                 .special        = NULL,
2226                 .enum_list      = NULL,
2227         },
2228         {
2229                 .label          = "short preserve case",
2230                 .type           = P_BOOL,
2231                 .p_class        = P_LOCAL,
2232                 .offset         = LOCAL_VAR(short_preserve_case),
2233                 .special        = NULL,
2234                 .enum_list      = NULL,
2235         },
2236         {
2237                 .label          = "mangling char",
2238                 .type           = P_CHAR,
2239                 .p_class        = P_LOCAL,
2240                 .offset         = LOCAL_VAR(mangling_char),
2241                 .special        = NULL,
2242                 .enum_list      = NULL,
2243         },
2244         {
2245                 .label          = "hide dot files",
2246                 .type           = P_BOOL,
2247                 .p_class        = P_LOCAL,
2248                 .offset         = LOCAL_VAR(hide_dot_files),
2249                 .special        = NULL,
2250                 .enum_list      = NULL,
2251         },
2252         {
2253                 .label          = "hide special files",
2254                 .type           = P_BOOL,
2255                 .p_class        = P_LOCAL,
2256                 .offset         = LOCAL_VAR(hide_special_files),
2257                 .special        = NULL,
2258                 .enum_list      = NULL,
2259         },
2260         {
2261                 .label          = "hide unreadable",
2262                 .type           = P_BOOL,
2263                 .p_class        = P_LOCAL,
2264                 .offset         = LOCAL_VAR(hide_unreadable),
2265                 .special        = NULL,
2266                 .enum_list      = NULL,
2267         },
2268         {
2269                 .label          = "hide unwriteable files",
2270                 .type           = P_BOOL,
2271                 .p_class        = P_LOCAL,
2272                 .offset         = LOCAL_VAR(hide_unwriteable_files),
2273                 .special        = NULL,
2274                 .enum_list      = NULL,
2275         },
2276         {
2277                 .label          = "delete veto files",
2278                 .type           = P_BOOL,
2279                 .p_class        = P_LOCAL,
2280                 .offset         = LOCAL_VAR(delete_veto_files),
2281                 .special        = NULL,
2282                 .enum_list      = NULL,
2283         },
2284         {
2285                 .label          = "veto files",
2286                 .type           = P_STRING,
2287                 .p_class        = P_LOCAL,
2288                 .offset         = LOCAL_VAR(veto_files),
2289                 .special        = NULL,
2290                 .enum_list      = NULL,
2291         },
2292         {
2293                 .label          = "hide files",
2294                 .type           = P_STRING,
2295                 .p_class        = P_LOCAL,
2296                 .offset         = LOCAL_VAR(hide_files),
2297                 .special        = NULL,
2298                 .enum_list      = NULL,
2299         },
2300         {
2301                 .label          = "veto oplock files",
2302                 .type           = P_STRING,
2303                 .p_class        = P_LOCAL,
2304                 .offset         = LOCAL_VAR(veto_oplock_files),
2305                 .special        = NULL,
2306                 .enum_list      = NULL,
2307         },
2308         {
2309                 .label          = "map archive",
2310                 .type           = P_BOOL,
2311                 .p_class        = P_LOCAL,
2312                 .offset         = LOCAL_VAR(map_archive),
2313                 .special        = NULL,
2314                 .enum_list      = NULL,
2315         },
2316         {
2317                 .label          = "map hidden",
2318                 .type           = P_BOOL,
2319                 .p_class        = P_LOCAL,
2320                 .offset         = LOCAL_VAR(map_hidden),
2321                 .special        = NULL,
2322                 .enum_list      = NULL,
2323         },
2324         {
2325                 .label          = "map system",
2326                 .type           = P_BOOL,
2327                 .p_class        = P_LOCAL,
2328                 .offset         = LOCAL_VAR(map_system),
2329                 .special        = NULL,
2330                 .enum_list      = NULL,
2331         },
2332         {
2333                 .label          = "map readonly",
2334                 .type           = P_ENUM,
2335                 .p_class        = P_LOCAL,
2336                 .offset         = LOCAL_VAR(map_readonly),
2337                 .special        = NULL,
2338                 .enum_list      = enum_map_readonly,
2339         },
2340         {
2341                 .label          = "mangled names",
2342                 .type           = P_BOOL,
2343                 .p_class        = P_LOCAL,
2344                 .offset         = LOCAL_VAR(mangled_names),
2345                 .special        = NULL,
2346                 .enum_list      = NULL,
2347         },
2348         {
2349                 .label          = "max stat cache size",
2350                 .type           = P_INTEGER,
2351                 .p_class        = P_GLOBAL,
2352                 .offset         = GLOBAL_VAR(max_stat_cache_size),
2353                 .special        = NULL,
2354                 .enum_list      = NULL,
2355         },
2356         {
2357                 .label          = "stat cache",
2358                 .type           = P_BOOL,
2359                 .p_class        = P_GLOBAL,
2360                 .offset         = GLOBAL_VAR(stat_cache),
2361                 .special        = NULL,
2362                 .enum_list      = NULL,
2363         },
2364         {
2365                 .label          = "store dos attributes",
2366                 .type           = P_BOOL,
2367                 .p_class        = P_LOCAL,
2368                 .offset         = LOCAL_VAR(store_dos_attributes),
2369                 .special        = NULL,
2370                 .enum_list      = NULL,
2371         },
2372         {
2373                 .label          = "dmapi support",
2374                 .type           = P_BOOL,
2375                 .p_class        = P_LOCAL,
2376                 .offset         = LOCAL_VAR(dmapi_support),
2377                 .special        = NULL,
2378                 .enum_list      = NULL,
2379         },
2380         {
2381                 .label          = "machine password timeout",
2382                 .type           = P_INTEGER,
2383                 .p_class        = P_GLOBAL,
2384                 .offset         = GLOBAL_VAR(machine_password_timeout),
2385                 .special        = NULL,
2386                 .enum_list      = NULL,
2387         },
2388         {
2389                 .label          = "add user script",
2390                 .type           = P_STRING,
2391                 .p_class        = P_GLOBAL,
2392                 .offset         = GLOBAL_VAR(add_user_script),
2393                 .special        = NULL,
2394                 .enum_list      = NULL,
2395         },
2396         {
2397                 .label          = "rename user script",
2398                 .type           = P_STRING,
2399                 .p_class        = P_GLOBAL,
2400                 .offset         = GLOBAL_VAR(rename_user_script),
2401                 .special        = NULL,
2402                 .enum_list      = NULL,
2403         },
2404         {
2405                 .label          = "delete user script",
2406                 .type           = P_STRING,
2407                 .p_class        = P_GLOBAL,
2408                 .offset         = GLOBAL_VAR(delete_user_script),
2409                 .special        = NULL,
2410                 .enum_list      = NULL,
2411         },
2412         {
2413                 .label          = "add group script",
2414                 .type           = P_STRING,
2415                 .p_class        = P_GLOBAL,
2416                 .offset         = GLOBAL_VAR(add_group_script),
2417                 .special        = NULL,
2418                 .enum_list      = NULL,
2419         },
2420         {
2421                 .label          = "delete group script",
2422                 .type           = P_STRING,
2423                 .p_class        = P_GLOBAL,
2424                 .offset         = GLOBAL_VAR(delete_group_script),
2425                 .special        = NULL,
2426                 .enum_list      = NULL,
2427         },
2428         {
2429                 .label          = "add user to group script",
2430                 .type           = P_STRING,
2431                 .p_class        = P_GLOBAL,
2432                 .offset         = GLOBAL_VAR(add_user_to_group_script),
2433                 .special        = NULL,
2434                 .enum_list      = NULL,
2435         },
2436         {
2437                 .label          = "delete user from group script",
2438                 .type           = P_STRING,
2439                 .p_class        = P_GLOBAL,
2440                 .offset         = GLOBAL_VAR(delete_user_from_group_script),
2441                 .special        = NULL,
2442                 .enum_list      = NULL,
2443         },
2444         {
2445                 .label          = "set primary group script",
2446                 .type           = P_STRING,
2447                 .p_class        = P_GLOBAL,
2448                 .offset         = GLOBAL_VAR(set_primary_group_script),
2449                 .special        = NULL,
2450                 .enum_list      = NULL,
2451         },
2452         {
2453                 .label          = "add machine script",
2454                 .type           = P_STRING,
2455                 .p_class        = P_GLOBAL,
2456                 .offset         = GLOBAL_VAR(add_machine_script),
2457                 .special        = NULL,
2458                 .enum_list      = NULL,
2459         },
2460         {
2461                 .label          = "shutdown script",
2462                 .type           = P_STRING,
2463                 .p_class        = P_GLOBAL,
2464                 .offset         = GLOBAL_VAR(shutdown_script),
2465                 .special        = NULL,
2466                 .enum_list      = NULL,
2467         },
2468         {
2469                 .label          = "abort shutdown script",
2470                 .type           = P_STRING,
2471                 .p_class        = P_GLOBAL,
2472                 .offset         = GLOBAL_VAR(abort_shutdown_script),
2473                 .special        = NULL,
2474                 .enum_list      = NULL,
2475         },
2476         {
2477                 .label          = "username map script",
2478                 .type           = P_STRING,
2479                 .p_class        = P_GLOBAL,
2480                 .offset         = GLOBAL_VAR(username_map_script),
2481                 .special        = NULL,
2482                 .enum_list      = NULL,
2483         },
2484         {
2485                 .label          = "username map cache time",
2486                 .type           = P_INTEGER,
2487                 .p_class        = P_GLOBAL,
2488                 .offset         = GLOBAL_VAR(username_map_cache_time),
2489                 .special        = NULL,
2490                 .enum_list      = NULL,
2491         },
2492         {
2493                 .label          = "logon script",
2494                 .type           = P_STRING,
2495                 .p_class        = P_GLOBAL,
2496                 .offset         = GLOBAL_VAR(logon_script),
2497                 .special        = NULL,
2498                 .enum_list      = NULL,
2499         },
2500         {
2501                 .label          = "logon path",
2502                 .type           = P_STRING,
2503                 .p_class        = P_GLOBAL,
2504                 .offset         = GLOBAL_VAR(logon_path),
2505                 .special        = NULL,
2506                 .enum_list      = NULL,
2507         },
2508         {
2509                 .label          = "logon drive",
2510                 .type           = P_STRING,
2511                 .p_class        = P_GLOBAL,
2512                 .offset         = GLOBAL_VAR(logon_drive),
2513                 .special        = NULL,
2514                 .enum_list      = NULL,
2515         },
2516         {
2517                 .label          = "logon home",
2518                 .type           = P_STRING,
2519                 .p_class        = P_GLOBAL,
2520                 .offset         = GLOBAL_VAR(logon_home),
2521                 .special        = NULL,
2522                 .enum_list      = NULL,
2523         },
2524         {
2525                 .label          = "domain logons",
2526                 .type           = P_BOOL,
2527                 .p_class        = P_GLOBAL,
2528                 .offset         = GLOBAL_VAR(_domain_logons),
2529                 .special        = NULL,
2530                 .enum_list      = NULL,
2531         },
2532
2533         {
2534                 .label          = "init logon delayed hosts",
2535                 .type           = P_CMDLIST,
2536                 .p_class        = P_GLOBAL,
2537                 .offset         = GLOBAL_VAR(init_logon_delayed_hosts),
2538                 .special        = NULL,
2539                 .enum_list      = NULL,
2540         },
2541
2542         {
2543                 .label          = "init logon delay",
2544                 .type           = P_INTEGER,
2545                 .p_class        = P_GLOBAL,
2546                 .offset         = GLOBAL_VAR(init_logon_delay),
2547                 .special        = NULL,
2548                 .enum_list      = NULL,
2549
2550         },
2551         {
2552                 .label          = "os level",
2553                 .type           = P_INTEGER,
2554                 .p_class        = P_GLOBAL,
2555                 .offset         = GLOBAL_VAR(os_level),
2556                 .special        = NULL,
2557                 .enum_list      = NULL,
2558         },
2559         {
2560                 .label          = "lm announce",
2561                 .type           = P_ENUM,
2562                 .p_class        = P_GLOBAL,
2563                 .offset         = GLOBAL_VAR(lm_announce),
2564                 .special        = NULL,
2565                 .enum_list      = enum_bool_auto,
2566         },
2567         {
2568                 .label          = "lm interval",
2569                 .type           = P_INTEGER,
2570                 .p_class        = P_GLOBAL,
2571                 .offset         = GLOBAL_VAR(lm_interval),
2572                 .special        = NULL,
2573                 .enum_list      = NULL,
2574         },
2575         {
2576                 .label          = "preferred master",
2577                 .type           = P_ENUM,
2578                 .p_class        = P_GLOBAL,
2579                 .offset         = GLOBAL_VAR(_preferred_master),
2580                 .special        = NULL,
2581                 .enum_list      = enum_bool_auto,
2582         },
2583         {
2584                 .label          = "prefered master",
2585                 .type           = P_ENUM,
2586                 .p_class        = P_GLOBAL,
2587                 .offset         = GLOBAL_VAR(_preferred_master),
2588                 .special        = NULL,
2589                 .enum_list      = enum_bool_auto,
2590                 .flags          = FLAG_SYNONYM,
2591         },
2592         {
2593                 .label          = "local master",
2594                 .type           = P_BOOL,
2595                 .p_class        = P_GLOBAL,
2596                 .offset         = GLOBAL_VAR(local_master),
2597                 .special        = NULL,
2598                 .enum_list      = NULL,
2599         },
2600         {
2601                 .label          = "domain master",
2602                 .type           = P_ENUM,
2603                 .p_class        = P_GLOBAL,
2604                 .offset         = GLOBAL_VAR(_domain_master),
2605                 .special        = NULL,
2606                 .enum_list      = enum_bool_auto,
2607         },
2608         {
2609                 .label          = "browse list",
2610                 .type           = P_BOOL,
2611                 .p_class        = P_GLOBAL,
2612                 .offset         = GLOBAL_VAR(browse_list),
2613                 .special        = NULL,
2614                 .enum_list      = NULL,
2615         },
2616         {
2617                 .label          = "browseable",
2618                 .type           = P_BOOL,
2619                 .p_class        = P_LOCAL,
2620                 .offset         = LOCAL_VAR(browseable),
2621                 .special        = NULL,
2622                 .enum_list      = NULL,
2623         },
2624         {
2625                 .label          = "browsable",
2626                 .type           = P_BOOL,
2627                 .p_class        = P_LOCAL,
2628                 .offset         = LOCAL_VAR(browseable),
2629                 .special        = NULL,
2630                 .enum_list      = NULL,
2631                 .flags          = FLAG_SYNONYM,
2632         },
2633         {
2634                 .label          = "access based share enum",
2635                 .type           = P_BOOL,
2636                 .p_class        = P_LOCAL,
2637                 .offset         = LOCAL_VAR(access_based_share_enum),
2638                 .special        = NULL,
2639                 .enum_list      = NULL,
2640         },
2641         {
2642                 .label          = "enhanced browsing",
2643                 .type           = P_BOOL,
2644                 .p_class        = P_GLOBAL,
2645                 .offset         = GLOBAL_VAR(enhanced_browsing),
2646                 .special        = NULL,
2647                 .enum_list      = NULL,
2648         },
2649         {
2650                 .label          = "dns proxy",
2651                 .type           = P_BOOL,
2652                 .p_class        = P_GLOBAL,
2653                 .offset         = GLOBAL_VAR(wins_dns_proxy),
2654                 .special        = NULL,
2655                 .enum_list      = NULL,
2656         },
2657         {
2658                 .label          = "wins proxy",
2659                 .type           = P_BOOL,
2660                 .p_class        = P_GLOBAL,
2661                 .offset         = GLOBAL_VAR(wins_proxy),
2662                 .special        = NULL,
2663                 .enum_list      = NULL,
2664         },
2665         {
2666                 .label          = "wins server",
2667                 .type           = P_CMDLIST,
2668                 .p_class        = P_GLOBAL,
2669                 .offset         = GLOBAL_VAR(wins_server_list),
2670                 .special        = NULL,
2671                 .enum_list      = NULL,
2672         },
2673         {
2674                 .label          = "wins support",
2675                 .type           = P_BOOL,
2676                 .p_class        = P_GLOBAL,
2677                 .offset         = GLOBAL_VAR(we_are_a_wins_server),
2678                 .special        = NULL,
2679                 .enum_list      = NULL,
2680         },
2681         {
2682                 .label          = "wins hook",
2683                 .type           = P_STRING,
2684                 .p_class        = P_GLOBAL,
2685                 .offset         = GLOBAL_VAR(wins_hook),
2686                 .special        = NULL,
2687                 .enum_list      = NULL,
2688         },
2689         {
2690                 .label          = "blocking locks",
2691                 .type           = P_BOOL,
2692                 .p_class        = P_LOCAL,
2693                 .offset         = LOCAL_VAR(blocking_locks),
2694                 .special        = NULL,
2695                 .enum_list      = NULL,
2696         },
2697         {
2698                 .label          = "csc policy",
2699                 .type           = P_ENUM,
2700                 .p_class        = P_LOCAL,
2701                 .offset         = LOCAL_VAR(csc_policy),
2702                 .special        = NULL,
2703                 .enum_list      = enum_csc_policy,
2704         },
2705         {
2706                 .label          = "fake oplocks",
2707                 .type           = P_BOOL,
2708                 .p_class        = P_LOCAL,
2709                 .offset         = LOCAL_VAR(fake_oplocks),
2710                 .special        = NULL,
2711                 .enum_list      = NULL,
2712         },
2713         {
2714                 .label          = "kernel oplocks",
2715                 .type           = P_BOOL,
2716                 .p_class        = P_LOCAL,
2717                 .offset         = LOCAL_VAR(kernel_oplocks),
2718                 .special        = NULL,
2719                 .enum_list      = NULL,
2720         },
2721         {
2722                 .label          = "kernel share modes",
2723                 .type           = P_BOOL,
2724                 .p_class        = P_LOCAL,
2725                 .offset         = LOCAL_VAR(kernel_share_modes),
2726                 .special        = NULL,
2727                 .enum_list      = NULL,
2728         },
2729         {
2730                 .label          = "smb2 leases",
2731                 .type           = P_BOOL,
2732                 .p_class        = P_GLOBAL,
2733                 .offset         = GLOBAL_VAR(smb2_leases),
2734                 .special        = NULL,
2735                 .enum_list      = NULL,
2736         },
2737         {
2738                 .label          = "locking",
2739                 .type           = P_BOOL,
2740                 .p_class        = P_LOCAL,
2741                 .offset         = LOCAL_VAR(locking),
2742                 .special        = NULL,
2743                 .enum_list      = NULL,
2744         },
2745         {
2746                 .label          = "lock spin time",
2747                 .type           = P_INTEGER,
2748                 .p_class        = P_GLOBAL,
2749                 .offset         = GLOBAL_VAR(lock_spin_time),
2750                 .special        = NULL,
2751                 .enum_list      = NULL,
2752         },
2753         {
2754                 .label          = "oplocks",
2755                 .type           = P_BOOL,
2756                 .p_class        = P_LOCAL,
2757                 .offset         = LOCAL_VAR(oplocks),
2758                 .special        = NULL,
2759                 .enum_list      = NULL,
2760         },
2761         {
2762                 .label          = "level2 oplocks",
2763                 .type           = P_BOOL,
2764                 .p_class        = P_LOCAL,
2765                 .offset         = LOCAL_VAR(level2_oplocks),
2766                 .special        = NULL,
2767                 .enum_list      = NULL,
2768         },
2769         {
2770                 .label          = "oplock break wait time",
2771                 .type           = P_INTEGER,
2772                 .p_class        = P_GLOBAL,
2773                 .offset         = GLOBAL_VAR(oplock_break_wait_time),
2774                 .special        = NULL,
2775                 .enum_list      = NULL,
2776         },
2777         {
2778                 .label          = "oplock contention limit",
2779                 .type           = P_INTEGER,
2780                 .p_class        = P_LOCAL,
2781                 .offset         = LOCAL_VAR(oplock_contention_limit),
2782                 .special        = NULL,
2783                 .enum_list      = NULL,
2784         },
2785         {
2786                 .label          = "posix locking",
2787                 .type           = P_BOOL,
2788                 .p_class        = P_LOCAL,
2789                 .offset         = LOCAL_VAR(posix_locking),
2790                 .special        = NULL,
2791                 .enum_list      = NULL,
2792         },
2793         {
2794                 .label          = "strict locking",
2795                 .type           = P_ENUM,
2796                 .p_class        = P_LOCAL,
2797                 .offset         = LOCAL_VAR(strict_locking),
2798                 .special        = NULL,
2799                 .enum_list      = enum_bool_auto,
2800         },
2801         {
2802                 .label          = "ldap admin dn",
2803                 .type           = P_STRING,
2804                 .p_class        = P_GLOBAL,
2805                 .offset         = GLOBAL_VAR(ldap_admin_dn),
2806                 .special        = NULL,
2807                 .enum_list      = NULL,
2808         },
2809         {
2810                 .label          = "ldap delete dn",
2811                 .type           = P_BOOL,
2812                 .p_class        = P_GLOBAL,
2813                 .offset         = GLOBAL_VAR(ldap_delete_dn),
2814                 .special        = NULL,
2815                 .enum_list      = NULL,
2816         },
2817         {
2818                 .label          = "ldap group suffix",
2819                 .type           = P_STRING,
2820                 .p_class        = P_GLOBAL,
2821                 .offset         = GLOBAL_VAR(_ldap_group_suffix),
2822                 .special        = NULL,
2823                 .enum_list      = NULL,
2824         },
2825         {
2826                 .label          = "ldap idmap suffix",
2827                 .type           = P_STRING,
2828                 .p_class        = P_GLOBAL,
2829                 .offset         = GLOBAL_VAR(_ldap_idmap_suffix),
2830                 .special        = NULL,
2831                 .enum_list      = NULL,
2832         },
2833         {
2834                 .label          = "ldap machine suffix",
2835                 .type           = P_STRING,
2836                 .p_class        = P_GLOBAL,
2837                 .offset         = GLOBAL_VAR(_ldap_machine_suffix),
2838                 .special        = NULL,
2839                 .enum_list      = NULL,
2840         },
2841         {
2842                 .label          = "ldap passwd sync",
2843                 .type           = P_ENUM,
2844                 .p_class        = P_GLOBAL,
2845                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
2846                 .special        = NULL,
2847                 .enum_list      = enum_ldap_passwd_sync,
2848         },
2849         {
2850                 .label          = "ldap password sync",
2851                 .type           = P_ENUM,
2852                 .p_class        = P_GLOBAL,
2853                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
2854                 .special        = NULL,
2855                 .enum_list      = enum_ldap_passwd_sync,
2856                 .flags          = FLAG_SYNONYM,
2857         },
2858         {
2859                 .label          = "ldap replication sleep",
2860                 .type           = P_INTEGER,
2861                 .p_class        = P_GLOBAL,
2862                 .offset         = GLOBAL_VAR(ldap_replication_sleep),
2863                 .special        = NULL,
2864                 .enum_list      = NULL,
2865         },
2866         {
2867                 .label          = "ldap suffix",
2868                 .type           = P_STRING,
2869                 .p_class        = P_GLOBAL,
2870                 .offset         = GLOBAL_VAR(ldap_suffix),
2871                 .special        = NULL,
2872                 .enum_list      = NULL,
2873         },
2874         {
2875                 .label          = "ldap ssl",
2876                 .type           = P_ENUM,
2877                 .p_class        = P_GLOBAL,
2878                 .offset         = GLOBAL_VAR(ldap_ssl),
2879                 .special        = NULL,
2880                 .enum_list      = enum_ldap_ssl,
2881         },
2882         {
2883                 .label          = "ldap ssl ads",
2884                 .type           = P_BOOL,
2885                 .p_class        = P_GLOBAL,
2886                 .offset         = GLOBAL_VAR(ldap_ssl_ads),
2887                 .special        = NULL,
2888                 .enum_list      = NULL,
2889         },
2890         {
2891                 .label          = "ldap deref",
2892                 .type           = P_ENUM,
2893                 .p_class        = P_GLOBAL,
2894                 .offset         = GLOBAL_VAR(ldap_deref),
2895                 .special        = NULL,
2896                 .enum_list      = enum_ldap_deref,
2897         },
2898         {
2899                 .label          = "ldap follow referral",
2900                 .type           = P_ENUM,
2901                 .p_class        = P_GLOBAL,
2902                 .offset         = GLOBAL_VAR(ldap_follow_referral),
2903                 .special        = NULL,
2904                 .enum_list      = enum_bool_auto,
2905         },
2906         {
2907                 .label          = "ldap timeout",
2908                 .type           = P_INTEGER,
2909                 .p_class        = P_GLOBAL,
2910                 .offset         = GLOBAL_VAR(ldap_timeout),
2911                 .special        = NULL,
2912                 .enum_list      = NULL,
2913         },
2914         {
2915                 .label          = "ldap connection timeout",
2916                 .type           = P_INTEGER,
2917                 .p_class        = P_GLOBAL,
2918                 .offset         = GLOBAL_VAR(ldap_connection_timeout),
2919                 .special        = NULL,
2920                 .enum_list      = NULL,
2921         },
2922         {
2923                 .label          = "ldap page size",
2924                 .type           = P_INTEGER,
2925                 .p_class        = P_GLOBAL,
2926                 .offset         = GLOBAL_VAR(ldap_page_size),
2927                 .special        = NULL,
2928                 .enum_list      = NULL,
2929         },
2930         {
2931                 .label          = "ldap user suffix",
2932                 .type           = P_STRING,
2933                 .p_class        = P_GLOBAL,
2934                 .offset         = GLOBAL_VAR(_ldap_user_suffix),
2935                 .special        = NULL,
2936                 .enum_list      = NULL,
2937         },
2938         {
2939                 .label          = "ldap debug level",
2940                 .type           = P_INTEGER,
2941                 .p_class        = P_GLOBAL,
2942                 .offset         = GLOBAL_VAR(ldap_debug_level),
2943                 .special        = handle_ldap_debug_level,
2944                 .enum_list      = NULL,
2945         },
2946         {
2947                 .label          = "ldap debug threshold",
2948                 .type           = P_INTEGER,
2949                 .p_class        = P_GLOBAL,
2950                 .offset         = GLOBAL_VAR(ldap_debug_threshold),
2951                 .special        = NULL,
2952                 .enum_list      = NULL,
2953         },
2954         {
2955                 .label          = "eventlog list",
2956                 .type           = P_CMDLIST,
2957                 .p_class        = P_GLOBAL,
2958                 .offset         = GLOBAL_VAR(eventlog_list),
2959                 .special        = NULL,
2960                 .enum_list      = NULL,
2961         },
2962         {
2963                 .label          = "add share command",
2964                 .type           = P_STRING,
2965                 .p_class        = P_GLOBAL,
2966                 .offset         = GLOBAL_VAR(add_share_command),
2967                 .special        = NULL,
2968                 .enum_list      = NULL,
2969         },
2970         {
2971                 .label          = "change share command",
2972                 .type           = P_STRING,
2973                 .p_class        = P_GLOBAL,
2974                 .offset         = GLOBAL_VAR(change_share_command),
2975                 .special        = NULL,
2976                 .enum_list      = NULL,
2977         },
2978         {
2979                 .label          = "delete share command",
2980                 .type           = P_STRING,
2981                 .p_class        = P_GLOBAL,
2982                 .offset         = GLOBAL_VAR(delete_share_command),
2983                 .special        = NULL,
2984                 .enum_list      = NULL,
2985         },
2986         {
2987                 .label          = "config file",
2988                 .type           = P_STRING,
2989                 .p_class        = P_GLOBAL,
2990                 .offset         = GLOBAL_VAR(next_configfile),
2991                 .special        = NULL,
2992                 .enum_list      = NULL,
2993         },
2994         {
2995                 .label          = "preload",
2996                 .type           = P_STRING,
2997                 .p_class        = P_GLOBAL,
2998                 .offset         = GLOBAL_VAR(auto_services),
2999                 .special        = NULL,
3000                 .enum_list      = NULL,
3001         },
3002         {
3003                 .label          = "auto services",
3004                 .type           = P_STRING,
3005                 .p_class        = P_GLOBAL,
3006                 .offset         = GLOBAL_VAR(auto_services),
3007                 .special        = NULL,
3008                 .enum_list      = NULL,
3009         },
3010         {
3011                 .label          = "lock directory",
3012                 .type           = P_STRING,
3013                 .p_class        = P_GLOBAL,
3014                 .offset         = GLOBAL_VAR(lock_directory),
3015                 .special        = NULL,
3016                 .enum_list      = NULL,
3017         },
3018         {
3019                 .label          = "lock dir",
3020                 .type           = P_STRING,
3021                 .p_class        = P_GLOBAL,
3022                 .offset         = GLOBAL_VAR(lock_directory),
3023                 .special        = NULL,
3024                 .enum_list      = NULL,
3025                 .flags          = FLAG_SYNONYM,
3026         },
3027         {
3028                 .label          = "state directory",
3029                 .type           = P_STRING,
3030                 .p_class        = P_GLOBAL,
3031                 .offset         = GLOBAL_VAR(state_directory),
3032                 .special        = NULL,
3033                 .enum_list      = NULL,
3034         },
3035         {
3036                 .label          = "cache directory",
3037                 .type           = P_STRING,
3038                 .p_class        = P_GLOBAL,
3039                 .offset         = GLOBAL_VAR(cache_directory),
3040                 .special        = NULL,
3041                 .enum_list      = NULL,
3042         },
3043         {
3044                 .label          = "pid directory",
3045                 .type           = P_STRING,
3046                 .p_class        = P_GLOBAL,
3047                 .offset         = GLOBAL_VAR(pid_directory),
3048                 .special        = NULL,
3049                 .enum_list      = NULL,
3050         },
3051         {
3052                 .label          = "ntp signd socket directory",
3053                 .type           = P_STRING,
3054                 .p_class        = P_GLOBAL,
3055                 .offset         = GLOBAL_VAR(ntp_signd_socket_directory),
3056                 .special        = NULL,
3057                 .enum_list      = NULL,
3058         },
3059
3060 #ifdef WITH_UTMP
3061         {
3062                 .label          = "utmp directory",
3063                 .type           = P_STRING,
3064                 .p_class        = P_GLOBAL,
3065                 .offset         = GLOBAL_VAR(utmp_directory),
3066                 .special        = NULL,
3067                 .enum_list      = NULL,
3068         },
3069         {
3070                 .label          = "wtmp directory",
3071                 .type           = P_STRING,
3072                 .p_class        = P_GLOBAL,
3073                 .offset         = GLOBAL_VAR(wtmp_directory),
3074                 .special        = NULL,
3075                 .enum_list      = NULL,
3076         },
3077         {
3078                 .label          = "utmp",
3079                 .type           = P_BOOL,
3080                 .p_class        = P_GLOBAL,
3081                 .offset         = GLOBAL_VAR(utmp),
3082                 .special        = NULL,
3083                 .enum_list      = NULL,
3084         },
3085 #endif
3086         {
3087                 .label          = "default service",
3088                 .type           = P_STRING,
3089                 .p_class        = P_GLOBAL,
3090                 .offset         = GLOBAL_VAR(defaultservice),
3091                 .special        = NULL,
3092                 .enum_list      = NULL,
3093         },
3094         {
3095                 .label          = "default",
3096                 .type           = P_STRING,
3097                 .p_class        = P_GLOBAL,
3098                 .offset         = GLOBAL_VAR(defaultservice),
3099                 .special        = NULL,
3100                 .enum_list      = NULL,
3101         },
3102         {
3103                 .label          = "message command",
3104                 .type           = P_STRING,
3105                 .p_class        = P_GLOBAL,
3106                 .offset         = GLOBAL_VAR(message_command),
3107                 .special        = NULL,
3108                 .enum_list      = NULL,
3109         },
3110         {
3111                 .label          = "dfree cache time",
3112                 .type           = P_INTEGER,
3113                 .p_class        = P_LOCAL,
3114                 .offset         = LOCAL_VAR(dfree_cache_time),
3115                 .special        = NULL,
3116                 .enum_list      = NULL,
3117         },
3118         {
3119                 .label          = "dfree command",
3120                 .type           = P_STRING,
3121                 .p_class        = P_LOCAL,
3122                 .offset         = LOCAL_VAR(dfree_command),
3123                 .special        = NULL,
3124                 .enum_list      = NULL,
3125         },
3126         {
3127                 .label          = "get quota command",
3128                 .type           = P_STRING,
3129                 .p_class        = P_GLOBAL,
3130                 .offset         = GLOBAL_VAR(get_quota_command),
3131                 .special        = NULL,
3132                 .enum_list      = NULL,
3133         },
3134         {
3135                 .label          = "set quota command",
3136                 .type           = P_STRING,
3137                 .p_class        = P_GLOBAL,
3138                 .offset         = GLOBAL_VAR(set_quota_command),
3139                 .special        = NULL,
3140                 .enum_list      = NULL,
3141         },
3142         {
3143                 .label          = "remote announce",
3144                 .type           = P_STRING,
3145                 .p_class        = P_GLOBAL,
3146                 .offset         = GLOBAL_VAR(remote_announce),
3147                 .special        = NULL,
3148                 .enum_list      = NULL,
3149         },
3150         {
3151                 .label          = "remote browse sync",
3152                 .type           = P_STRING,
3153                 .p_class        = P_GLOBAL,
3154                 .offset         = GLOBAL_VAR(remote_browse_sync),
3155                 .special        = NULL,
3156                 .enum_list      = NULL,
3157         },
3158         {
3159                 .label          = "nbt client socket address",
3160                 .type           = P_STRING,
3161                 .p_class        = P_GLOBAL,
3162                 .offset         = GLOBAL_VAR(nbt_client_socket_address),
3163                 .special        = NULL,
3164                 .enum_list      = NULL,
3165                 .flags          = FLAG_DEPRECATED,
3166         },
3167         {
3168                 .label          = "socket address",
3169                 .type           = P_STRING,
3170                 .p_class        = P_GLOBAL,
3171                 .offset         = GLOBAL_VAR(nbt_client_socket_address),
3172                 .special        = NULL,
3173                 .enum_list      = NULL,
3174                 .flags          = FLAG_DEPRECATED,
3175         },
3176         {
3177                 .label          = "nmbd bind explicit broadcast",
3178                 .type           = P_BOOL,
3179                 .p_class        = P_GLOBAL,
3180                 .offset         = GLOBAL_VAR(nmbd_bind_explicit_broadcast),
3181                 .special        = NULL,
3182                 .enum_list      = NULL,
3183         },
3184         {
3185                 .label          = "homedir map",
3186                 .type           = P_STRING,
3187                 .p_class        = P_GLOBAL,
3188                 .offset         = GLOBAL_VAR(homedir_map),
3189                 .special        = NULL,
3190                 .enum_list      = NULL,
3191         },
3192         {
3193                 .label          = "afs username map",
3194                 .type           = P_STRING,
3195                 .p_class        = P_GLOBAL,
3196                 .offset         = GLOBAL_VAR(afs_username_map),
3197                 .special        = NULL,
3198                 .enum_list      = NULL,
3199         },
3200         {
3201                 .label          = "afs token lifetime",
3202                 .type           = P_INTEGER,
3203                 .p_class        = P_GLOBAL,
3204                 .offset         = GLOBAL_VAR(afs_token_lifetime),
3205                 .special        = NULL,
3206                 .enum_list      = NULL,
3207         },
3208         {
3209                 .label          = "log nt token command",
3210                 .type           = P_STRING,
3211                 .p_class        = P_GLOBAL,
3212                 .offset         = GLOBAL_VAR(log_nt_token_command),
3213                 .special        = NULL,
3214                 .enum_list      = NULL,
3215         },
3216         {
3217                 .label          = "NIS homedir",
3218                 .type           = P_BOOL,
3219                 .p_class        = P_GLOBAL,
3220                 .offset         = GLOBAL_VAR(nis_homedir),
3221                 .special        = NULL,
3222                 .enum_list      = NULL,
3223         },
3224         {
3225                 .label          = "-valid",
3226                 .type           = P_BOOL,
3227                 .p_class        = P_LOCAL,
3228                 .offset         = LOCAL_VAR(valid),
3229                 .special        = NULL,
3230                 .enum_list      = NULL,
3231                 .flags          = FLAG_SYNONYM,
3232         },
3233         {
3234                 .label          = "copy",
3235                 .type           = P_STRING,
3236                 .p_class        = P_LOCAL,
3237                 .offset         = LOCAL_VAR(szCopy),
3238                 .special        = handle_copy,
3239                 .enum_list      = NULL,
3240                 .flags          = FLAG_SYNONYM,
3241         },
3242         {
3243                 .label          = "include",
3244                 .type           = P_STRING,
3245                 .p_class        = P_LOCAL,
3246                 .offset         = LOCAL_VAR(szInclude),
3247                 .special        = handle_include,
3248                 .enum_list      = NULL,
3249         },
3250         {
3251                 .label          = "preexec",
3252                 .type           = P_STRING,
3253                 .p_class        = P_LOCAL,
3254                 .offset         = LOCAL_VAR(preexec),
3255                 .special        = NULL,
3256                 .enum_list      = NULL,
3257         },
3258         {
3259                 .label          = "exec",
3260                 .type           = P_STRING,
3261                 .p_class        = P_LOCAL,
3262                 .offset         = LOCAL_VAR(preexec),
3263                 .special        = NULL,
3264                 .enum_list      = NULL,
3265         },
3266         {
3267                 .label          = "preexec close",
3268                 .type           = P_BOOL,
3269                 .p_class        = P_LOCAL,
3270                 .offset         = LOCAL_VAR(preexec_close),
3271                 .special        = NULL,
3272                 .enum_list      = NULL,
3273         },
3274         {
3275                 .label          = "postexec",
3276                 .type           = P_STRING,
3277                 .p_class        = P_LOCAL,
3278                 .offset         = LOCAL_VAR(postexec),
3279                 .special        = NULL,
3280                 .enum_list      = NULL,
3281         },
3282         {
3283                 .label          = "root preexec",
3284                 .type           = P_STRING,
3285                 .p_class        = P_LOCAL,
3286                 .offset         = LOCAL_VAR(root_preexec),
3287                 .special        = NULL,
3288                 .enum_list      = NULL,
3289         },
3290         {
3291                 .label          = "root preexec close",
3292                 .type           = P_BOOL,
3293                 .p_class        = P_LOCAL,
3294                 .offset         = LOCAL_VAR(root_preexec_close),
3295                 .special        = NULL,
3296                 .enum_list      = NULL,
3297         },
3298         {
3299                 .label          = "root postexec",
3300                 .type           = P_STRING,
3301                 .p_class        = P_LOCAL,
3302                 .offset         = LOCAL_VAR(root_postexec),
3303                 .special        = NULL,
3304                 .enum_list      = NULL,
3305         },
3306         {
3307                 .label          = "available",
3308                 .type           = P_BOOL,
3309                 .p_class        = P_LOCAL,
3310                 .offset         = LOCAL_VAR(available),
3311                 .special        = NULL,
3312                 .enum_list      = NULL,
3313         },
3314         {
3315                 .label          = "registry shares",
3316                 .type           = P_BOOL,
3317                 .p_class        = P_GLOBAL,
3318                 .offset         = GLOBAL_VAR(registry_shares),
3319                 .special        = NULL,
3320                 .enum_list      = NULL,
3321         },
3322         {
3323                 .label          = "usershare allow guests",
3324                 .type           = P_BOOL,
3325                 .p_class        = P_GLOBAL,
3326                 .offset         = GLOBAL_VAR(usershare_allow_guests),
3327                 .special        = NULL,
3328                 .enum_list      = NULL,
3329         },
3330         {
3331                 .label          = "usershare max shares",
3332                 .type           = P_INTEGER,
3333                 .p_class        = P_GLOBAL,
3334                 .offset         = GLOBAL_VAR(usershare_max_shares),
3335                 .special        = NULL,
3336                 .enum_list      = NULL,
3337         },
3338         {
3339                 .label          = "usershare owner only",
3340                 .type           = P_BOOL,
3341                 .p_class        = P_GLOBAL,
3342                 .offset         = GLOBAL_VAR(usershare_owner_only),
3343                 .special        = NULL,
3344                 .enum_list      = NULL,
3345         },
3346         {
3347                 .label          = "usershare path",
3348                 .type           = P_STRING,
3349                 .p_class        = P_GLOBAL,
3350                 .offset         = GLOBAL_VAR(usershare_path),
3351                 .special        = NULL,
3352                 .enum_list      = NULL,
3353         },
3354         {
3355                 .label          = "usershare prefix allow list",
3356                 .type           = P_CMDLIST,
3357                 .p_class        = P_GLOBAL,
3358                 .offset         = GLOBAL_VAR(usershare_prefix_allow_list),
3359                 .special        = NULL,
3360                 .enum_list      = NULL,
3361         },
3362         {
3363                 .label          = "usershare prefix deny list",
3364                 .type           = P_CMDLIST,
3365                 .p_class        = P_GLOBAL,
3366                 .offset         = GLOBAL_VAR(usershare_prefix_deny_list),
3367                 .special        = NULL,
3368                 .enum_list      = NULL,
3369         },
3370         {
3371                 .label          = "usershare template share",
3372                 .type           = P_STRING,
3373                 .p_class        = P_GLOBAL,
3374                 .offset         = GLOBAL_VAR(usershare_template_share),
3375                 .special        = NULL,
3376                 .enum_list      = NULL,
3377         },
3378         {
3379                 .label          = "volume",
3380                 .type           = P_STRING,
3381                 .p_class        = P_LOCAL,
3382                 .offset         = LOCAL_VAR(volume),
3383                 .special        = NULL,
3384                 .enum_list      = NULL,
3385         },
3386         {
3387                 .label          = "fstype",
3388                 .type           = P_STRING,
3389                 .p_class        = P_LOCAL,
3390                 .offset         = LOCAL_VAR(fstype),
3391                 .special        = NULL,
3392                 .enum_list      = NULL,
3393         },
3394         {
3395                 .label          = "allow insecure wide links",
3396                 .type           = P_BOOL,
3397                 .p_class        = P_GLOBAL,
3398                 .offset         = GLOBAL_VAR(allow_insecure_wide_links),
3399                 .special        = NULL,
3400                 .enum_list      = NULL,
3401         },
3402         {
3403                 .label          = "wide links",
3404                 .type           = P_BOOL,
3405                 .p_class        = P_LOCAL,
3406                 .offset         = LOCAL_VAR(wide_links),
3407                 .special        = NULL,
3408                 .enum_list      = NULL,
3409         },
3410         {
3411                 .label          = "follow symlinks",
3412                 .type           = P_BOOL,
3413                 .p_class        = P_LOCAL,
3414                 .offset         = LOCAL_VAR(follow_symlinks),
3415                 .special        = NULL,
3416                 .enum_list      = NULL,
3417         },
3418         {
3419                 .label          = "dont descend",
3420                 .type           = P_STRING,
3421                 .p_class        = P_LOCAL,
3422                 .offset         = LOCAL_VAR(dont_descend),
3423                 .special        = NULL,
3424                 .enum_list      = NULL,
3425         },
3426         {
3427                 .label          = "magic script",
3428                 .type           = P_STRING,
3429                 .p_class        = P_LOCAL,
3430                 .offset         = LOCAL_VAR(magic_script),
3431                 .special        = NULL,
3432                 .enum_list      = NULL,
3433         },
3434         {
3435                 .label          = "magic output",
3436                 .type           = P_STRING,
3437                 .p_class        = P_LOCAL,
3438                 .offset         = LOCAL_VAR(magic_output),
3439                 .special        = NULL,
3440                 .enum_list      = NULL,
3441         },
3442         {
3443                 .label          = "delete readonly",
3444                 .type           = P_BOOL,
3445                 .p_class        = P_LOCAL,
3446                 .offset         = LOCAL_VAR(delete_readonly),
3447                 .special        = NULL,
3448                 .enum_list      = NULL,
3449         },
3450         {
3451                 .label          = "dos filemode",
3452                 .type           = P_BOOL,
3453                 .p_class        = P_LOCAL,
3454                 .offset         = LOCAL_VAR(dos_filemode),
3455                 .special        = NULL,
3456                 .enum_list      = NULL,
3457         },
3458         {
3459                 .label          = "dos filetimes",
3460                 .type           = P_BOOL,
3461                 .p_class        = P_LOCAL,
3462                 .offset         = LOCAL_VAR(dos_filetimes),
3463                 .special        = NULL,
3464                 .enum_list      = NULL,
3465         },
3466         {
3467                 .label          = "dos filetime resolution",
3468                 .type           = P_BOOL,
3469                 .p_class        = P_LOCAL,
3470                 .offset         = LOCAL_VAR(dos_filetime_resolution),
3471                 .special        = NULL,
3472                 .enum_list      = NULL,
3473         },
3474         {
3475                 .label          = "fake directory create times",
3476                 .type           = P_BOOL,
3477                 .p_class        = P_LOCAL,
3478                 .offset         = LOCAL_VAR(fake_directory_create_times),
3479                 .special        = NULL,
3480                 .enum_list      = NULL,
3481         },
3482         {
3483                 .label          = "async smb echo handler",
3484                 .type           = P_BOOL,
3485                 .p_class        = P_GLOBAL,
3486                 .offset         = GLOBAL_VAR(async_smb_echo_handler),
3487                 .special        = NULL,
3488                 .enum_list      = NULL,
3489         },
3490         {
3491                 .label          = "panic action",
3492                 .type           = P_STRING,
3493                 .p_class        = P_GLOBAL,
3494                 .offset         = GLOBAL_VAR(panic_action),
3495                 .special        = NULL,
3496                 .enum_list      = NULL,
3497         },
3498         {
3499                 .label          = "perfcount module",
3500                 .type           = P_STRING,
3501                 .p_class        = P_GLOBAL,
3502                 .offset         = GLOBAL_VAR(perfcount_module),
3503                 .special        = NULL,
3504                 .enum_list      = NULL,
3505         },
3506         {
3507                 .label          = "vfs objects",
3508                 .type           = P_CMDLIST,
3509                 .p_class        = P_LOCAL,
3510                 .offset         = LOCAL_VAR(vfs_objects),
3511                 .special        = NULL,
3512                 .enum_list      = NULL,
3513         },
3514         {
3515                 .label          = "vfs object",
3516                 .type           = P_CMDLIST,
3517                 .p_class        = P_LOCAL,
3518                 .offset         = LOCAL_VAR(vfs_objects),
3519                 .special        = NULL,
3520                 .enum_list      = NULL,
3521                 .flags          = FLAG_SYNONYM,
3522         },
3523         {
3524                 .label          = "msdfs root",
3525                 .type           = P_BOOL,
3526                 .p_class        = P_LOCAL,
3527                 .offset         = LOCAL_VAR(msdfs_root),
3528                 .special        = NULL,
3529                 .enum_list      = NULL,
3530         },
3531         {
3532                 .label          = "msdfs proxy",
3533                 .type           = P_STRING,
3534                 .p_class        = P_LOCAL,
3535                 .offset         = LOCAL_VAR(msdfs_proxy),
3536                 .special        = NULL,
3537                 .enum_list      = NULL,
3538         },
3539         {
3540                 .label          = "msdfs shuffle referrals",
3541                 .type           = P_BOOL,
3542                 .p_class        = P_LOCAL,
3543                 .offset         = LOCAL_VAR(msdfs_shuffle_referrals),
3544                 .special        = NULL,
3545                 .enum_list      = NULL,
3546         },
3547         {
3548                 .label          = "host msdfs",
3549                 .type           = P_BOOL,
3550                 .p_class        = P_GLOBAL,
3551                 .offset         = GLOBAL_VAR(host_msdfs),
3552                 .special        = NULL,
3553                 .enum_list      = NULL,
3554         },
3555         {
3556                 .label          = "passdb expand explicit",
3557                 .type           = P_BOOL,
3558                 .p_class        = P_GLOBAL,
3559                 .offset         = GLOBAL_VAR(passdb_expand_explicit),
3560                 .special        = NULL,
3561                 .enum_list      = NULL,
3562         },
3563         {
3564                 .label          = "idmap backend",
3565                 .type           = P_STRING,
3566                 .p_class        = P_GLOBAL,
3567                 .offset         = GLOBAL_VAR(szIdmapBackend),
3568                 .special        = handle_idmap_backend,
3569                 .enum_list      = NULL,
3570                 .flags          = FLAG_DEPRECATED,
3571         },
3572         {
3573                 .label          = "idmap cache time",
3574                 .type           = P_INTEGER,
3575                 .p_class        = P_GLOBAL,
3576                 .offset         = GLOBAL_VAR(idmap_cache_time),
3577                 .special        = NULL,
3578                 .enum_list      = NULL,
3579         },
3580         {
3581                 .label          = "idmap negative cache time",
3582                 .type           = P_INTEGER,
3583                 .p_class        = P_GLOBAL,
3584                 .offset         = GLOBAL_VAR(idmap_negative_cache_time),
3585                 .special        = NULL,
3586                 .enum_list      = NULL,
3587         },
3588         {
3589                 .label          = "idmap uid",
3590                 .type           = P_STRING,
3591                 .p_class        = P_GLOBAL,
3592                 .offset         = GLOBAL_VAR(szIdmapUID),
3593                 .special        = handle_idmap_uid,
3594                 .enum_list      = NULL,
3595                 .flags          = FLAG_DEPRECATED,
3596         },
3597         {
3598                 .label          = "winbind uid",
3599                 .type           = P_STRING,
3600                 .p_class        = P_GLOBAL,
3601                 .offset         = GLOBAL_VAR(szIdmapUID),
3602                 .special        = handle_idmap_uid,
3603                 .enum_list      = NULL,
3604                 .flags          = FLAG_SYNONYM,
3605         },
3606         {
3607                 .label          = "idmap gid",
3608                 .type           = P_STRING,
3609                 .p_class        = P_GLOBAL,
3610                 .offset         = GLOBAL_VAR(szIdmapGID),
3611                 .special        = handle_idmap_gid,
3612                 .enum_list      = NULL,
3613                 .flags          = FLAG_DEPRECATED,
3614         },
3615         {
3616                 .label          = "winbind gid",
3617                 .type           = P_STRING,
3618                 .p_class        = P_GLOBAL,
3619                 .offset         = GLOBAL_VAR(szIdmapGID),
3620                 .special        = handle_idmap_gid,
3621                 .enum_list      = NULL,
3622                 .flags          = FLAG_SYNONYM,
3623         },
3624         {
3625                 .label          = "template homedir",
3626                 .type           = P_STRING,
3627                 .p_class        = P_GLOBAL,
3628                 .offset         = GLOBAL_VAR(template_homedir),
3629                 .special        = NULL,
3630                 .enum_list      = NULL,
3631         },
3632         {
3633                 .label          = "template shell",
3634                 .type           = P_STRING,
3635                 .p_class        = P_GLOBAL,
3636                 .offset         = GLOBAL_VAR(template_shell),
3637                 .special        = NULL,
3638                 .enum_list      = NULL,
3639         },
3640         {
3641                 .label          = "winbind separator",
3642                 .type           = P_STRING,
3643                 .p_class        = P_GLOBAL,
3644                 .offset         = GLOBAL_VAR(winbind_separator),
3645                 .special        = NULL,
3646                 .enum_list      = NULL,
3647         },
3648         {
3649                 .label          = "winbind cache time",
3650                 .type           = P_INTEGER,
3651                 .p_class        = P_GLOBAL,
3652                 .offset         = GLOBAL_VAR(winbind_cache_time),
3653                 .special        = NULL,
3654                 .enum_list      = NULL,
3655         },
3656         {
3657                 .label          = "winbind reconnect delay",
3658                 .type           = P_INTEGER,
3659                 .p_class        = P_GLOBAL,
3660                 .offset         = GLOBAL_VAR(winbind_reconnect_delay),
3661                 .special        = NULL,
3662                 .enum_list      = NULL,
3663         },
3664         {
3665                 .label          = "winbind request timeout",
3666                 .type           = P_INTEGER,
3667                 .p_class        = P_GLOBAL,
3668                 .offset         = GLOBAL_VAR(winbind_request_timeout),
3669                 .special        = NULL,
3670                 .enum_list      = NULL,
3671         },
3672         {
3673                 .label          = "winbind max clients",
3674                 .type           = P_INTEGER,
3675                 .p_class        = P_GLOBAL,
3676                 .offset         = GLOBAL_VAR(winbind_max_clients),
3677                 .special        = NULL,
3678                 .enum_list      = NULL,
3679         },
3680         {
3681                 .label          = "winbind enum users",
3682                 .type           = P_BOOL,
3683                 .p_class        = P_GLOBAL,
3684                 .offset         = GLOBAL_VAR(winbind_enum_users),
3685                 .special        = NULL,
3686                 .enum_list      = NULL,
3687         },
3688         {
3689                 .label          = "winbind enum groups",
3690                 .type           = P_BOOL,
3691                 .p_class        = P_GLOBAL,
3692                 .offset         = GLOBAL_VAR(winbind_enum_groups),
3693                 .special        = NULL,
3694                 .enum_list      = NULL,
3695         },
3696         {
3697                 .label          = "winbind use default domain",
3698                 .type           = P_BOOL,
3699                 .p_class        = P_GLOBAL,
3700                 .offset         = GLOBAL_VAR(winbind_use_default_domain),
3701                 .special        = NULL,
3702                 .enum_list      = NULL,
3703         },
3704         {
3705                 .label          = "winbind trusted domains only",
3706                 .type           = P_BOOL,
3707                 .p_class        = P_GLOBAL,
3708                 .offset         = GLOBAL_VAR(winbind_trusted_domains_only),
3709                 .special        = NULL,
3710                 .enum_list      = NULL,
3711         },
3712         {
3713                 .label          = "winbind nested groups",
3714                 .type           = P_BOOL,
3715                 .p_class        = P_GLOBAL,
3716                 .offset         = GLOBAL_VAR(winbind_nested_groups),
3717                 .special        = NULL,
3718                 .enum_list      = NULL,
3719         },
3720         {
3721                 .label          = "winbind expand groups",
3722                 .type           = P_INTEGER,
3723                 .p_class        = P_GLOBAL,
3724                 .offset         = GLOBAL_VAR(winbind_expand_groups),
3725                 .special        = NULL,
3726                 .enum_list      = NULL,
3727         },
3728         {
3729                 .label          = "winbind nss info",
3730                 .type           = P_CMDLIST,
3731                 .p_class        = P_GLOBAL,
3732                 .offset         = GLOBAL_VAR(winbind_nss_info),
3733                 .special        = NULL,
3734                 .enum_list      = NULL,
3735         },
3736         {
3737                 .label          = "winbind refresh tickets",
3738                 .type           = P_BOOL,
3739                 .p_class        = P_GLOBAL,
3740                 .offset         = GLOBAL_VAR(winbind_refresh_tickets),
3741                 .special        = NULL,
3742                 .enum_list      = NULL,
3743         },
3744         {
3745                 .label          = "winbind offline logon",
3746                 .type           = P_BOOL,
3747                 .p_class        = P_GLOBAL,
3748                 .offset         = GLOBAL_VAR(winbind_offline_logon),
3749                 .special        = NULL,
3750                 .enum_list      = NULL,
3751         },
3752         {
3753                 .label          = "winbind normalize names",
3754                 .type           = P_BOOL,
3755                 .p_class        = P_GLOBAL,
3756                 .offset         = GLOBAL_VAR(winbind_normalize_names),
3757                 .special        = NULL,
3758                 .enum_list      = NULL,
3759         },
3760         {
3761                 .label          = "winbind rpc only",
3762                 .type           = P_BOOL,
3763                 .p_class        = P_GLOBAL,
3764                 .offset         = GLOBAL_VAR(winbind_rpc_only),
3765                 .special        = NULL,
3766                 .enum_list      = NULL,
3767         },
3768         {
3769                 .label          = "create krb5 conf",
3770                 .type           = P_BOOL,
3771                 .p_class        = P_GLOBAL,
3772                 .offset         = GLOBAL_VAR(create_krb5_conf),
3773                 .special        = NULL,
3774                 .enum_list      = NULL,
3775         },
3776         {
3777                 .label          = "ncalrpc dir",
3778                 .type           = P_STRING,
3779                 .p_class        = P_GLOBAL,
3780                 .offset         = GLOBAL_VAR(ncalrpc_dir),
3781                 .special        = NULL,
3782                 .enum_list      = NULL,
3783         },
3784         {
3785                 .label          = "winbind max domain connections",
3786                 .type           = P_INTEGER,
3787                 .p_class        = P_GLOBAL,
3788                 .offset         = GLOBAL_VAR(_winbind_max_domain_connections),
3789                 .special        = NULL,
3790                 .enum_list      = NULL,
3791         },
3792         {
3793                 .label          = "winbindd socket directory",
3794                 .type           = P_STRING,
3795                 .p_class        = P_GLOBAL,
3796                 .offset         = GLOBAL_VAR(winbindd_socket_directory),
3797                 .special        = NULL,
3798                 .enum_list      = NULL,
3799         },
3800         {
3801                 .label          = "winbindd privileged socket directory",
3802                 .type           = P_STRING,
3803                 .p_class        = P_GLOBAL,
3804                 .offset         = GLOBAL_VAR(winbindd_privileged_socket_directory),
3805                 .special        = NULL,
3806                 .enum_list      = NULL,
3807         },
3808         {
3809                 .label          = "winbind sealed pipes",
3810                 .type           = P_BOOL,
3811                 .p_class        = P_GLOBAL,
3812                 .offset         = GLOBAL_VAR(winbind_sealed_pipes),
3813                 .special        = NULL,
3814                 .enum_list      = NULL,
3815         },
3816         {
3817                 .label          = "neutralize nt4 emulation",
3818                 .type           = P_BOOL,
3819                 .p_class        = P_GLOBAL,
3820                 .offset         = GLOBAL_VAR(neutralize_nt4_emulation),
3821                 .special        = NULL,
3822                 .enum_list      = NULL,
3823         },
3824         {
3825                 .label          = "reject md5 servers",
3826                 .type           = P_BOOL,
3827                 .p_class        = P_GLOBAL,
3828                 .offset         = GLOBAL_VAR(reject_md5_servers),
3829                 .special        = NULL,
3830                 .enum_list      = NULL,
3831         },
3832         {
3833                 .label          = "require strong key",
3834                 .type           = P_BOOL,
3835                 .p_class        = P_GLOBAL,
3836                 .offset         = GLOBAL_VAR(require_strong_key),
3837                 .special        = NULL,
3838                 .enum_list      = NULL,
3839         },
3840         {
3841                 .label          = "allow dns updates",
3842                 .type           = P_ENUM,
3843                 .p_class        = P_GLOBAL,
3844                 .offset         = GLOBAL_VAR(allow_dns_updates),
3845                 .special        = NULL,
3846                 .enum_list      = enum_dns_update_settings,
3847         },
3848         {
3849                 .label          = "dns forwarder",
3850                 .type           = P_STRING,
3851                 .p_class        = P_GLOBAL,
3852                 .offset         = GLOBAL_VAR(dns_forwarder),
3853                 .special        = NULL,
3854                 .enum_list      = NULL,
3855         },
3856         {
3857                 .label          = "dns update command",
3858                 .type           = P_CMDLIST,
3859                 .p_class        = P_GLOBAL,
3860                 .offset         = GLOBAL_VAR(dns_update_command),
3861                 .special        = NULL,
3862                 .enum_list      = NULL,
3863         },
3864         {
3865                 .label          = "nsupdate command",
3866                 .type           = P_CMDLIST,
3867                 .p_class        = P_GLOBAL,
3868                 .offset         = GLOBAL_VAR(nsupdate_command),
3869                 .special        = NULL,
3870                 .enum_list      = NULL,
3871         },
3872         {
3873                 .label          = "rndc command",
3874                 .type           = P_CMDLIST,
3875                 .p_class        = P_GLOBAL,
3876                 .offset         = GLOBAL_VAR(rndc_command),
3877                 .special        = NULL,
3878                 .enum_list      = NULL,
3879         },
3880         {
3881                 .label          = "multicast dns register",
3882                 .type           = P_BOOL,
3883                 .p_class        = P_GLOBAL,
3884                 .offset         = GLOBAL_VAR(multicast_dns_register),
3885                 .special        = NULL,
3886                 .enum_list      = NULL,
3887         },
3888         {
3889                 .label          = "samba kcc command",
3890                 .type           = P_CMDLIST,
3891                 .p_class        = P_GLOBAL,
3892                 .offset         = GLOBAL_VAR(samba_kcc_command),
3893                 .special        = NULL,
3894                 .enum_list      = NULL,
3895         },
3896         {
3897                 .label          = "server services",
3898                 .type           = P_LIST,
3899                 .p_class        = P_GLOBAL,
3900                 .offset         = GLOBAL_VAR(server_services),
3901                 .special        = NULL,
3902                 .enum_list      = NULL
3903         },
3904         {
3905                 .label          = "dcerpc endpoint servers",
3906                 .type           = P_LIST,
3907                 .p_class        = P_GLOBAL,
3908                 .offset         = GLOBAL_VAR(dcerpc_endpoint_servers),
3909                 .special        = NULL,
3910                 .enum_list      = NULL
3911         },
3912         {
3913                 .label          = "spn update command",
3914                 .type           = P_CMDLIST,
3915                 .p_class        = P_GLOBAL,
3916                 .offset         = GLOBAL_VAR(spn_update_command),
3917                 .special        = NULL,
3918                 .enum_list      = NULL,
3919         },
3920         {
3921                 .label          = "share backend",
3922                 .type           = P_STRING,
3923                 .p_class        = P_GLOBAL,
3924                 .offset         = GLOBAL_VAR(share_backend),
3925                 .special        = NULL,
3926                 .enum_list      = NULL
3927         },
3928         {
3929                 .label          = "ntvfs handler",
3930                 .type           = P_LIST,
3931                 .p_class        = P_LOCAL,
3932                 .offset         = LOCAL_VAR(ntvfs_handler),
3933                 .special        = NULL,
3934                 .enum_list      = NULL
3935         },
3936         {
3937                 .label          = "allow nt4 crypto",
3938                 .type           = P_BOOL,
3939                 .p_class        = P_GLOBAL,
3940                 .offset         = GLOBAL_VAR(allow_nt4_crypto),
3941                 .special        = NULL,
3942                 .enum_list      = NULL,
3943         },
3944         {
3945                 .label          = "reject md5 clients",
3946                 .type           = P_BOOL,
3947                 .p_class        = P_GLOBAL,
3948                 .offset         = GLOBAL_VAR(reject_md5_clients),
3949                 .special        = NULL,
3950                 .enum_list      = NULL,
3951         },
3952         {
3953                 .label          = "tls enabled",
3954                 .type           = P_BOOL,
3955                 .p_class        = P_GLOBAL,
3956                 .offset         = GLOBAL_VAR(tls_enabled),
3957                 .special        = NULL,
3958                 .enum_list      = NULL
3959         },
3960         {
3961                 .label          = "tls keyfile",
3962                 .type           = P_STRING,
3963                 .p_class        = P_GLOBAL,
3964                 .offset         = GLOBAL_VAR(_tls_keyfile),
3965                 .special        = NULL,
3966                 .enum_list      = NULL
3967         },
3968         {
3969                 .label          = "tls certfile",
3970                 .type           = P_STRING,
3971                 .p_class        = P_GLOBAL,
3972                 .offset         = GLOBAL_VAR(_tls_certfile),
3973                 .special        = NULL,
3974                 .enum_list      = NULL
3975         },
3976         {
3977                 .label          = "tls cafile",
3978                 .type           = P_STRING,
3979                 .p_class        = P_GLOBAL,
3980                 .offset         = GLOBAL_VAR(_tls_cafile),
3981                 .special        = NULL,
3982                 .enum_list      = NULL
3983         },
3984         {
3985                 .label          = "tls crlfile",
3986                 .type           = P_STRING,
3987                 .p_class        = P_GLOBAL,
3988                 .offset         = GLOBAL_VAR(_tls_crlfile),
3989                 .special        = NULL,
3990                 .enum_list      = NULL
3991         },
3992         {
3993                 .label          = "tls dh params file",
3994                 .type           = P_STRING,
3995                 .p_class        = P_GLOBAL,
3996                 .offset         = GLOBAL_VAR(_tls_dhpfile),
3997                 .special        = NULL,
3998                 .enum_list      = NULL
3999         },
4000         {
4001                 .label          = "tls priority",
4002                 .type           = P_STRING,
4003                 .p_class        = P_GLOBAL,
4004                 .offset         = GLOBAL_VAR(tls_priority),
4005                 .special        = NULL,
4006                 .enum_list      = NULL
4007         },
4008
4009         {NULL,  P_BOOL,  P_NONE,  0,  NULL,  NULL,  0}
4010 };
4011
4012 int num_parameters(void)
4013 {
4014         return (sizeof(parm_table) / sizeof(struct parm_struct));
4015 }