lib/param: Remove unused "paranoid server security"
[obnox/samba/samba-obnox.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 static const struct enum_list enum_protocol[] = {
31         {PROTOCOL_SMB2_10, "SMB2"}, /* for now keep PROTOCOL_SMB2_10 */
32         {PROTOCOL_SMB3_00, "SMB3"}, /* for now keep PROTOCOL_SMB3_00 */
33         {PROTOCOL_SMB3_00, "SMB3_00"},
34         {PROTOCOL_SMB2_24, "SMB2_24"},
35         {PROTOCOL_SMB2_22, "SMB2_22"},
36         {PROTOCOL_SMB2_10, "SMB2_10"},
37         {PROTOCOL_SMB2_02, "SMB2_02"},
38         {PROTOCOL_NT1, "NT1"},
39         {PROTOCOL_LANMAN2, "LANMAN2"},
40         {PROTOCOL_LANMAN1, "LANMAN1"},
41         {PROTOCOL_CORE, "CORE"},
42         {PROTOCOL_COREPLUS, "COREPLUS"},
43         {PROTOCOL_COREPLUS, "CORE+"},
44         {-1, NULL}
45 };
46
47 static const struct enum_list enum_security[] = {
48         {SEC_AUTO, "AUTO"},
49         {SEC_USER, "USER"},
50         {SEC_DOMAIN, "DOMAIN"},
51 #if (defined(HAVE_ADS) || _SAMBA_BUILD_ >= 4)
52         {SEC_ADS, "ADS"},
53 #endif
54         {-1, NULL}
55 };
56
57 static const struct enum_list enum_bool_auto[] = {
58         {false, "No"},
59         {false, "False"},
60         {false, "0"},
61         {true, "Yes"},
62         {true, "True"},
63         {true, "1"},
64         {Auto, "Auto"},
65         {-1, NULL}
66 };
67
68 static const struct enum_list enum_csc_policy[] = {
69         {CSC_POLICY_MANUAL, "manual"},
70         {CSC_POLICY_DOCUMENTS, "documents"},
71         {CSC_POLICY_PROGRAMS, "programs"},
72         {CSC_POLICY_DISABLE, "disable"},
73         {-1, NULL}
74 };
75
76 /* Server role options */
77 static const struct enum_list enum_server_role[] = {
78         {ROLE_AUTO, "auto"},
79         {ROLE_STANDALONE, "standalone server"},
80         {ROLE_STANDALONE, "standalone"},
81         {ROLE_DOMAIN_MEMBER, "member server"},
82         {ROLE_DOMAIN_MEMBER, "member"},
83         {ROLE_DOMAIN_PDC, "classic primary domain controller"},
84         {ROLE_DOMAIN_BDC, "classic backup domain controller"},
85         {ROLE_ACTIVE_DIRECTORY_DC, "active directory domain controller"},
86         {ROLE_ACTIVE_DIRECTORY_DC, "domain controller"},
87         {ROLE_ACTIVE_DIRECTORY_DC, "dc"},
88         {-1, NULL}
89 };
90
91 /* SMB signing types. */
92 static const struct enum_list enum_smb_signing_vals[] = {
93         {SMB_SIGNING_DEFAULT, "default"},
94         {SMB_SIGNING_OFF, "No"},
95         {SMB_SIGNING_OFF, "False"},
96         {SMB_SIGNING_OFF, "0"},
97         {SMB_SIGNING_OFF, "Off"},
98         {SMB_SIGNING_OFF, "disabled"},
99         {SMB_SIGNING_IF_REQUIRED, "if_required"},
100         {SMB_SIGNING_IF_REQUIRED, "Yes"},
101         {SMB_SIGNING_IF_REQUIRED, "True"},
102         {SMB_SIGNING_IF_REQUIRED, "1"},
103         {SMB_SIGNING_IF_REQUIRED, "On"},
104         {SMB_SIGNING_IF_REQUIRED, "enabled"},
105         {SMB_SIGNING_IF_REQUIRED, "auto"},
106         {SMB_SIGNING_REQUIRED, "required"},
107         {SMB_SIGNING_REQUIRED, "mandatory"},
108         {SMB_SIGNING_REQUIRED, "force"},
109         {SMB_SIGNING_REQUIRED, "forced"},
110         {SMB_SIGNING_REQUIRED, "enforced"},
111         {-1, NULL}
112 };
113
114 /* DNS update options. */
115 static const struct enum_list enum_dns_update_settings[] = {
116         {DNS_UPDATE_OFF, "False"},
117         {DNS_UPDATE_ON, "True"},
118         {DNS_UPDATE_SIGNED, "signed"},
119         {-1, NULL}
120 };
121
122 /*
123    Do you want session setups at user level security with a invalid
124    password to be rejected or allowed in as guest? WinNT rejects them
125    but it can be a pain as it means "net view" needs to use a password
126
127    You have 3 choices in the setting of map_to_guest:
128
129    "Never" means session setups with an invalid password
130    are rejected. This is the default.
131
132    "Bad User" means session setups with an invalid password
133    are rejected, unless the username does not exist, in which case it
134    is treated as a guest login
135
136    "Bad Password" means session setups with an invalid password
137    are treated as a guest login
138
139    Note that map_to_guest only has an effect in user or server
140    level security.
141 */
142
143 static const struct enum_list enum_map_to_guest[] = {
144         {NEVER_MAP_TO_GUEST, "Never"},
145         {MAP_TO_GUEST_ON_BAD_USER, "Bad User"},
146         {MAP_TO_GUEST_ON_BAD_PASSWORD, "Bad Password"},
147         {MAP_TO_GUEST_ON_BAD_UID, "Bad Uid"},
148         {-1, NULL}
149 };
150
151 /* Config backend options */
152
153 static const struct enum_list enum_config_backend[] = {
154         {CONFIG_BACKEND_FILE, "file"},
155         {CONFIG_BACKEND_REGISTRY, "registry"},
156         {-1, NULL}
157 };
158
159
160 /* ADS kerberos ticket verification options */
161
162 static const struct enum_list enum_kerberos_method[] = {
163         {KERBEROS_VERIFY_SECRETS, "default"},
164         {KERBEROS_VERIFY_SECRETS, "secrets only"},
165         {KERBEROS_VERIFY_SYSTEM_KEYTAB, "system keytab"},
166         {KERBEROS_VERIFY_DEDICATED_KEYTAB, "dedicated keytab"},
167         {KERBEROS_VERIFY_SECRETS_AND_KEYTAB, "secrets and keytab"},
168         {-1, NULL}
169 };
170
171
172 /* ACL compatibility options. */
173 static const struct enum_list enum_acl_compat_vals[] = {
174     { ACL_COMPAT_AUTO, "auto" },
175     { ACL_COMPAT_WINNT, "winnt" },
176     { ACL_COMPAT_WIN2K, "win2k" },
177     { -1, NULL}
178 };
179
180
181 static const struct enum_list enum_printing[] = {
182         {PRINT_SYSV, "sysv"},
183         {PRINT_AIX, "aix"},
184         {PRINT_HPUX, "hpux"},
185         {PRINT_BSD, "bsd"},
186         {PRINT_QNX, "qnx"},
187         {PRINT_PLP, "plp"},
188         {PRINT_LPRNG, "lprng"},
189         {PRINT_CUPS, "cups"},
190         {PRINT_IPRINT, "iprint"},
191         {PRINT_LPRNT, "nt"},
192         {PRINT_LPROS2, "os2"},
193 #if defined(DEVELOPER) || defined(ENABLE_BUILD_FARM_HACKS)
194         {PRINT_TEST, "test"},
195         {PRINT_VLP, "vlp"},
196 #endif /* DEVELOPER */
197         {-1, NULL}
198 };
199
200 static const struct enum_list enum_ldap_sasl_wrapping[] = {
201         {0, "plain"},
202         {ADS_AUTH_SASL_SIGN, "sign"},
203         {ADS_AUTH_SASL_SEAL, "seal"},
204         {-1, NULL}
205 };
206
207 static const struct enum_list enum_ldap_ssl[] = {
208         {LDAP_SSL_OFF, "no"},
209         {LDAP_SSL_OFF, "off"},
210         {LDAP_SSL_START_TLS, "start tls"},
211         {LDAP_SSL_START_TLS, "start_tls"},
212         {-1, NULL}
213 };
214
215 /* LDAP Dereferencing Alias types */
216 #define SAMBA_LDAP_DEREF_NEVER          0
217 #define SAMBA_LDAP_DEREF_SEARCHING      1
218 #define SAMBA_LDAP_DEREF_FINDING        2
219 #define SAMBA_LDAP_DEREF_ALWAYS         3
220
221 static const struct enum_list enum_ldap_deref[] = {
222         {SAMBA_LDAP_DEREF_NEVER, "never"},
223         {SAMBA_LDAP_DEREF_SEARCHING, "searching"},
224         {SAMBA_LDAP_DEREF_FINDING, "finding"},
225         {SAMBA_LDAP_DEREF_ALWAYS, "always"},
226         {-1, "auto"}
227 };
228
229 static const struct enum_list enum_ldap_passwd_sync[] = {
230         {LDAP_PASSWD_SYNC_OFF, "no"},
231         {LDAP_PASSWD_SYNC_OFF, "off"},
232         {LDAP_PASSWD_SYNC_ON, "yes"},
233         {LDAP_PASSWD_SYNC_ON, "on"},
234         {LDAP_PASSWD_SYNC_ONLY, "only"},
235         {-1, NULL}
236 };
237
238 static const struct enum_list enum_map_readonly[] = {
239         {MAP_READONLY_NO, "no"},
240         {MAP_READONLY_NO, "false"},
241         {MAP_READONLY_NO, "0"},
242         {MAP_READONLY_YES, "yes"},
243         {MAP_READONLY_YES, "true"},
244         {MAP_READONLY_YES, "1"},
245         {MAP_READONLY_PERMISSIONS, "permissions"},
246         {MAP_READONLY_PERMISSIONS, "perms"},
247         {-1, NULL}
248 };
249
250 static const struct enum_list enum_case[] = {
251         {CASE_LOWER, "lower"},
252         {CASE_UPPER, "upper"},
253         {-1, NULL}
254 };
255
256
257 /* Note: We do not initialise the defaults union - it is not allowed in ANSI C
258  *
259  * The FLAG_HIDE is explicit. Parameters set this way do NOT appear in any edit
260  * screen in SWAT. This is used to exclude parameters as well as to squash all
261  * parameters that have been duplicated by pseudonyms.
262  *
263  * NOTE: To display a parameter in BASIC view set FLAG_BASIC
264  *       Any parameter that does NOT have FLAG_ADVANCED will not disply at all
265  *       Set FLAG_SHARE and FLAG_PRINT to specifically display parameters in
266  *        respective views.
267  *
268  * NOTE2: Handling of duplicated (synonym) parameters:
269  *      Only the first occurance of a parameter should be enabled by FLAG_BASIC
270  *      and/or FLAG_ADVANCED. All duplicates following the first mention should be
271  *      set to FLAG_HIDE. ie: Make you must place the parameter that has the preferred
272  *      name first, and all synonyms must follow it with the FLAG_HIDE attribute.
273  */
274
275 #define GLOBAL_VAR(name) offsetof(struct loadparm_global, name)
276 #define LOCAL_VAR(name) offsetof(struct loadparm_service, name)
277
278
279 static struct parm_struct parm_table[] = {
280         {N_("Base Options"), P_SEP, P_SEPARATOR},
281
282         {
283                 .label          = "dos charset",
284                 .type           = P_STRING,
285                 .p_class        = P_GLOBAL,
286                 .offset         = GLOBAL_VAR(dos_charset),
287                 .special        = handle_dos_charset,
288                 .enum_list      = NULL,
289                 .flags          = FLAG_ADVANCED
290         },
291         {
292                 .label          = "unix charset",
293                 .type           = P_STRING,
294                 .p_class        = P_GLOBAL,
295                 .offset         = GLOBAL_VAR(unix_charset),
296                 .special        = handle_charset,
297                 .enum_list      = NULL,
298                 .flags          = FLAG_ADVANCED
299         },
300         {
301                 .label          = "comment",
302                 .type           = P_STRING,
303                 .p_class        = P_LOCAL,
304                 .offset         = LOCAL_VAR(comment),
305                 .special        = NULL,
306                 .enum_list      = NULL,
307                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT
308         },
309         {
310                 .label          = "path",
311                 .type           = P_STRING,
312                 .p_class        = P_LOCAL,
313                 .offset         = LOCAL_VAR(szPath),
314                 .special        = NULL,
315                 .enum_list      = NULL,
316                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
317         },
318         {
319                 .label          = "directory",
320                 .type           = P_STRING,
321                 .p_class        = P_LOCAL,
322                 .offset         = LOCAL_VAR(szPath),
323                 .special        = NULL,
324                 .enum_list      = NULL,
325                 .flags          = FLAG_HIDE,
326         },
327         {
328                 .label          = "workgroup",
329                 .type           = P_USTRING,
330                 .p_class        = P_GLOBAL,
331                 .offset         = GLOBAL_VAR(szWorkgroup),
332                 .special        = NULL,
333                 .enum_list      = NULL,
334                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
335         },
336         {
337                 .label          = "realm",
338                 .type           = P_STRING,
339                 .p_class        = P_GLOBAL,
340                 .offset         = GLOBAL_VAR(szRealm),
341                 .special        = handle_realm,
342                 .enum_list      = NULL,
343                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
344         },
345         {
346                 .label          = "netbios name",
347                 .type           = P_USTRING,
348                 .p_class        = P_GLOBAL,
349                 .offset         = GLOBAL_VAR(szNetbiosName),
350                 .special        = NULL,
351                 .enum_list      = NULL,
352                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
353         },
354         {
355                 .label          = "netbios aliases",
356                 .type           = P_LIST,
357                 .p_class        = P_GLOBAL,
358                 .offset         = GLOBAL_VAR(szNetbiosAliases),
359                 .special        = handle_netbios_aliases,
360                 .enum_list      = NULL,
361                 .flags          = FLAG_ADVANCED,
362         },
363         {
364                 .label          = "netbios scope",
365                 .type           = P_USTRING,
366                 .p_class        = P_GLOBAL,
367                 .offset         = GLOBAL_VAR(szNetbiosScope),
368                 .special        = NULL,
369                 .enum_list      = NULL,
370                 .flags          = FLAG_ADVANCED,
371         },
372         {
373                 .label          = "server string",
374                 .type           = P_STRING,
375                 .p_class        = P_GLOBAL,
376                 .offset         = GLOBAL_VAR(szServerString),
377                 .special        = NULL,
378                 .enum_list      = NULL,
379                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
380         },
381         {
382                 .label          = "interfaces",
383                 .type           = P_LIST,
384                 .p_class        = P_GLOBAL,
385                 .offset         = GLOBAL_VAR(szInterfaces),
386                 .special        = NULL,
387                 .enum_list      = NULL,
388                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
389         },
390         {
391                 .label          = "bind interfaces only",
392                 .type           = P_BOOL,
393                 .p_class        = P_GLOBAL,
394                 .offset         = GLOBAL_VAR(bBindInterfacesOnly),
395                 .special        = NULL,
396                 .enum_list      = NULL,
397                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
398         },
399         {
400                 .label          = "config backend",
401                 .type           = P_ENUM,
402                 .p_class        = P_GLOBAL,
403                 .offset         = GLOBAL_VAR(ConfigBackend),
404                 .special        = NULL,
405                 .enum_list      = enum_config_backend,
406                 .flags          = FLAG_HIDE|FLAG_ADVANCED|FLAG_META,
407         },
408         {
409                 .label          = "server role",
410                 .type           = P_ENUM,
411                 .p_class        = P_GLOBAL,
412                 .offset         = GLOBAL_VAR(server_role),
413                 .special        = NULL,
414                 .enum_list      = enum_server_role,
415                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
416         },
417
418         {N_("Security Options"), P_SEP, P_SEPARATOR},
419
420         {
421                 .label          = "security",
422                 .type           = P_ENUM,
423                 .p_class        = P_GLOBAL,
424                 .offset         = GLOBAL_VAR(security),
425                 .special        = NULL,
426                 .enum_list      = enum_security,
427                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
428         },
429         {
430                 .label          = "auth methods",
431                 .type           = P_LIST,
432                 .p_class        = P_GLOBAL,
433                 .offset         = GLOBAL_VAR(AuthMethods),
434                 .special        = NULL,
435                 .enum_list      = NULL,
436                 .flags          = FLAG_ADVANCED,
437         },
438         {
439                 .label          = "encrypt passwords",
440                 .type           = P_BOOL,
441                 .p_class        = P_GLOBAL,
442                 .offset         = GLOBAL_VAR(bEncryptPasswords),
443                 .special        = NULL,
444                 .enum_list      = NULL,
445                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
446         },
447         {
448                 .label          = "client schannel",
449                 .type           = P_ENUM,
450                 .p_class        = P_GLOBAL,
451                 .offset         = GLOBAL_VAR(clientSchannel),
452                 .special        = NULL,
453                 .enum_list      = enum_bool_auto,
454                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
455         },
456         {
457                 .label          = "server schannel",
458                 .type           = P_ENUM,
459                 .p_class        = P_GLOBAL,
460                 .offset         = GLOBAL_VAR(serverSchannel),
461                 .special        = NULL,
462                 .enum_list      = enum_bool_auto,
463                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
464         },
465         {
466                 .label          = "allow trusted domains",
467                 .type           = P_BOOL,
468                 .p_class        = P_GLOBAL,
469                 .offset         = GLOBAL_VAR(bAllowTrustedDomains),
470                 .special        = NULL,
471                 .enum_list      = NULL,
472                 .flags          = FLAG_ADVANCED,
473         },
474         {
475                 .label          = "map to guest",
476                 .type           = P_ENUM,
477                 .p_class        = P_GLOBAL,
478                 .offset         = GLOBAL_VAR(map_to_guest),
479                 .special        = NULL,
480                 .enum_list      = enum_map_to_guest,
481                 .flags          = FLAG_ADVANCED,
482         },
483         {
484                 .label          = "null passwords",
485                 .type           = P_BOOL,
486                 .p_class        = P_GLOBAL,
487                 .offset         = GLOBAL_VAR(bNullPasswords),
488                 .special        = NULL,
489                 .enum_list      = NULL,
490                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
491         },
492         {
493                 .label          = "obey pam restrictions",
494                 .type           = P_BOOL,
495                 .p_class        = P_GLOBAL,
496                 .offset         = GLOBAL_VAR(bObeyPamRestrictions),
497                 .special        = NULL,
498                 .enum_list      = NULL,
499                 .flags          = FLAG_ADVANCED,
500         },
501         {
502                 .label          = "password server",
503                 .type           = P_STRING,
504                 .p_class        = P_GLOBAL,
505                 .offset         = GLOBAL_VAR(szPasswordServer),
506                 .special        = NULL,
507                 .enum_list      = NULL,
508                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
509         },
510         {
511                 .label          = "smb passwd file",
512                 .type           = P_STRING,
513                 .p_class        = P_GLOBAL,
514                 .offset         = GLOBAL_VAR(szSMBPasswdFile),
515                 .special        = NULL,
516                 .enum_list      = NULL,
517                 .flags          = FLAG_ADVANCED,
518         },
519         {
520                 .label          = "private dir",
521                 .type           = P_STRING,
522                 .p_class        = P_GLOBAL,
523                 .offset         = GLOBAL_VAR(szPrivateDir),
524                 .special        = NULL,
525                 .enum_list      = NULL,
526                 .flags          = FLAG_ADVANCED,
527         },
528         {
529                 .label          = "private directory",
530                 .type           = P_STRING,
531                 .p_class        = P_GLOBAL,
532                 .offset         = GLOBAL_VAR(szPrivateDir),
533                 .special        = NULL,
534                 .enum_list      = NULL,
535                 .flags          = FLAG_HIDE,
536         },
537         {
538                 .label          = "passdb backend",
539                 .type           = P_STRING,
540                 .p_class        = P_GLOBAL,
541                 .offset         = GLOBAL_VAR(passdb_backend),
542                 .special        = NULL,
543                 .enum_list      = NULL,
544                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
545         },
546         {
547                 .label          = "algorithmic rid base",
548                 .type           = P_INTEGER,
549                 .p_class        = P_GLOBAL,
550                 .offset         = GLOBAL_VAR(AlgorithmicRidBase),
551                 .special        = NULL,
552                 .enum_list      = NULL,
553                 .flags          = FLAG_ADVANCED,
554         },
555         {
556                 .label          = "root directory",
557                 .type           = P_STRING,
558                 .p_class        = P_GLOBAL,
559                 .offset         = GLOBAL_VAR(szRootdir),
560                 .special        = NULL,
561                 .enum_list      = NULL,
562                 .flags          = FLAG_ADVANCED,
563         },
564         {
565                 .label          = "root dir",
566                 .type           = P_STRING,
567                 .p_class        = P_GLOBAL,
568                 .offset         = GLOBAL_VAR(szRootdir),
569                 .special        = NULL,
570                 .enum_list      = NULL,
571                 .flags          = FLAG_HIDE,
572         },
573         {
574                 .label          = "root",
575                 .type           = P_STRING,
576                 .p_class        = P_GLOBAL,
577                 .offset         = GLOBAL_VAR(szRootdir),
578                 .special        = NULL,
579                 .enum_list      = NULL,
580                 .flags          = FLAG_HIDE,
581         },
582         {
583                 .label          = "guest account",
584                 .type           = P_STRING,
585                 .p_class        = P_GLOBAL,
586                 .offset         = GLOBAL_VAR(szGuestaccount),
587                 .special        = NULL,
588                 .enum_list      = NULL,
589                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
590         },
591         {
592                 .label          = "enable privileges",
593                 .type           = P_BOOL,
594                 .p_class        = P_GLOBAL,
595                 .offset         = GLOBAL_VAR(bEnablePrivileges),
596                 .special        = NULL,
597                 .enum_list      = NULL,
598                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
599         },
600
601         {
602                 .label          = "pam password change",
603                 .type           = P_BOOL,
604                 .p_class        = P_GLOBAL,
605                 .offset         = GLOBAL_VAR(bPamPasswordChange),
606                 .special        = NULL,
607                 .enum_list      = NULL,
608                 .flags          = FLAG_ADVANCED,
609         },
610         {
611                 .label          = "passwd program",
612                 .type           = P_STRING,
613                 .p_class        = P_GLOBAL,
614                 .offset         = GLOBAL_VAR(szPasswdProgram),
615                 .special        = NULL,
616                 .enum_list      = NULL,
617                 .flags          = FLAG_ADVANCED,
618         },
619         {
620                 .label          = "passwd chat",
621                 .type           = P_STRING,
622                 .p_class        = P_GLOBAL,
623                 .offset         = GLOBAL_VAR(szPasswdChat),
624                 .special        = NULL,
625                 .enum_list      = NULL,
626                 .flags          = FLAG_ADVANCED,
627         },
628         {
629                 .label          = "passwd chat debug",
630                 .type           = P_BOOL,
631                 .p_class        = P_GLOBAL,
632                 .offset         = GLOBAL_VAR(bPasswdChatDebug),
633                 .special        = NULL,
634                 .enum_list      = NULL,
635                 .flags          = FLAG_ADVANCED,
636         },
637         {
638                 .label          = "passwd chat timeout",
639                 .type           = P_INTEGER,
640                 .p_class        = P_GLOBAL,
641                 .offset         = GLOBAL_VAR(iPasswdChatTimeout),
642                 .special        = NULL,
643                 .enum_list      = NULL,
644                 .flags          = FLAG_ADVANCED,
645         },
646         {
647                 .label          = "check password script",
648                 .type           = P_STRING,
649                 .p_class        = P_GLOBAL,
650                 .offset         = GLOBAL_VAR(szCheckPasswordScript),
651                 .special        = NULL,
652                 .enum_list      = NULL,
653                 .flags          = FLAG_ADVANCED,
654         },
655         {
656                 .label          = "username map",
657                 .type           = P_STRING,
658                 .p_class        = P_GLOBAL,
659                 .offset         = GLOBAL_VAR(szUsernameMap),
660                 .special        = NULL,
661                 .enum_list      = NULL,
662                 .flags          = FLAG_ADVANCED,
663         },
664         {
665                 .label          = "password level",
666                 .type           = P_INTEGER,
667                 .p_class        = P_GLOBAL,
668                 .offset         = GLOBAL_VAR(pwordlevel),
669                 .special        = NULL,
670                 .enum_list      = NULL,
671                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
672         },
673         {
674                 .label          = "username level",
675                 .type           = P_INTEGER,
676                 .p_class        = P_GLOBAL,
677                 .offset         = GLOBAL_VAR(unamelevel),
678                 .special        = NULL,
679                 .enum_list      = NULL,
680                 .flags          = FLAG_ADVANCED,
681         },
682         {
683                 .label          = "unix password sync",
684                 .type           = P_BOOL,
685                 .p_class        = P_GLOBAL,
686                 .offset         = GLOBAL_VAR(bUnixPasswdSync),
687                 .special        = NULL,
688                 .enum_list      = NULL,
689                 .flags          = FLAG_ADVANCED,
690         },
691         {
692                 .label          = "restrict anonymous",
693                 .type           = P_INTEGER,
694                 .p_class        = P_GLOBAL,
695                 .offset         = GLOBAL_VAR(restrict_anonymous),
696                 .special        = NULL,
697                 .enum_list      = NULL,
698                 .flags          = FLAG_ADVANCED,
699         },
700         {
701                 .label          = "lanman auth",
702                 .type           = P_BOOL,
703                 .p_class        = P_GLOBAL,
704                 .offset         = GLOBAL_VAR(bLanmanAuth),
705                 .special        = NULL,
706                 .enum_list      = NULL,
707                 .flags          = FLAG_ADVANCED,
708         },
709         {
710                 .label          = "ntlm auth",
711                 .type           = P_BOOL,
712                 .p_class        = P_GLOBAL,
713                 .offset         = GLOBAL_VAR(bNTLMAuth),
714                 .special        = NULL,
715                 .enum_list      = NULL,
716                 .flags          = FLAG_ADVANCED,
717         },
718         {
719                 .label          = "client NTLMv2 auth",
720                 .type           = P_BOOL,
721                 .p_class        = P_GLOBAL,
722                 .offset         = GLOBAL_VAR(bClientNTLMv2Auth),
723                 .special        = NULL,
724                 .enum_list      = NULL,
725                 .flags          = FLAG_ADVANCED,
726         },
727         {
728                 .label          = "client lanman auth",
729                 .type           = P_BOOL,
730                 .p_class        = P_GLOBAL,
731                 .offset         = GLOBAL_VAR(bClientLanManAuth),
732                 .special        = NULL,
733                 .enum_list      = NULL,
734                 .flags          = FLAG_ADVANCED,
735         },
736         {
737                 .label          = "client plaintext auth",
738                 .type           = P_BOOL,
739                 .p_class        = P_GLOBAL,
740                 .offset         = GLOBAL_VAR(bClientPlaintextAuth),
741                 .special        = NULL,
742                 .enum_list      = NULL,
743                 .flags          = FLAG_ADVANCED,
744         },
745         {
746                 .label          = "client use spnego principal",
747                 .type           = P_BOOL,
748                 .p_class        = P_GLOBAL,
749                 .offset         = GLOBAL_VAR(client_use_spnego_principal),
750                 .special        = NULL,
751                 .enum_list      = NULL,
752                 .flags          = FLAG_ADVANCED,
753         },
754         {
755                 .label          = "username",
756                 .type           = P_STRING,
757                 .p_class        = P_LOCAL,
758                 .offset         = LOCAL_VAR(szUsername),
759                 .special        = NULL,
760                 .enum_list      = NULL,
761                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE | FLAG_DEPRECATED,
762         },
763         {
764                 .label          = "user",
765                 .type           = P_STRING,
766                 .p_class        = P_LOCAL,
767                 .offset         = LOCAL_VAR(szUsername),
768                 .special        = NULL,
769                 .enum_list      = NULL,
770                 .flags          = FLAG_HIDE,
771         },
772         {
773                 .label          = "users",
774                 .type           = P_STRING,
775                 .p_class        = P_LOCAL,
776                 .offset         = LOCAL_VAR(szUsername),
777                 .special        = NULL,
778                 .enum_list      = NULL,
779                 .flags          = FLAG_HIDE,
780         },
781         {
782                 .label          = "invalid users",
783                 .type           = P_LIST,
784                 .p_class        = P_LOCAL,
785                 .offset         = LOCAL_VAR(szInvalidUsers),
786                 .special        = NULL,
787                 .enum_list      = NULL,
788                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
789         },
790         {
791                 .label          = "valid users",
792                 .type           = P_LIST,
793                 .p_class        = P_LOCAL,
794                 .offset         = LOCAL_VAR(szValidUsers),
795                 .special        = NULL,
796                 .enum_list      = NULL,
797                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
798         },
799         {
800                 .label          = "admin users",
801                 .type           = P_LIST,
802                 .p_class        = P_LOCAL,
803                 .offset         = LOCAL_VAR(szAdminUsers),
804                 .special        = NULL,
805                 .enum_list      = NULL,
806                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
807         },
808         {
809                 .label          = "read list",
810                 .type           = P_LIST,
811                 .p_class        = P_LOCAL,
812                 .offset         = LOCAL_VAR(readlist),
813                 .special        = NULL,
814                 .enum_list      = NULL,
815                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
816         },
817         {
818                 .label          = "write list",
819                 .type           = P_LIST,
820                 .p_class        = P_LOCAL,
821                 .offset         = LOCAL_VAR(writelist),
822                 .special        = NULL,
823                 .enum_list      = NULL,
824                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
825         },
826         {
827                 .label          = "force user",
828                 .type           = P_STRING,
829                 .p_class        = P_LOCAL,
830                 .offset         = LOCAL_VAR(force_user),
831                 .special        = NULL,
832                 .enum_list      = NULL,
833                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
834         },
835         {
836                 .label          = "force group",
837                 .type           = P_STRING,
838                 .p_class        = P_LOCAL,
839                 .offset         = LOCAL_VAR(force_group),
840                 .special        = NULL,
841                 .enum_list      = NULL,
842                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
843         },
844         {
845                 .label          = "group",
846                 .type           = P_STRING,
847                 .p_class        = P_LOCAL,
848                 .offset         = LOCAL_VAR(force_group),
849                 .special        = NULL,
850                 .enum_list      = NULL,
851                 .flags          = FLAG_ADVANCED,
852         },
853         {
854                 .label          = "read only",
855                 .type           = P_BOOL,
856                 .p_class        = P_LOCAL,
857                 .offset         = LOCAL_VAR(bRead_only),
858                 .special        = NULL,
859                 .enum_list      = NULL,
860                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE,
861         },
862         {
863                 .label          = "write ok",
864                 .type           = P_BOOLREV,
865                 .p_class        = P_LOCAL,
866                 .offset         = LOCAL_VAR(bRead_only),
867                 .special        = NULL,
868                 .enum_list      = NULL,
869                 .flags          = FLAG_HIDE,
870         },
871         {
872                 .label          = "writeable",
873                 .type           = P_BOOLREV,
874                 .p_class        = P_LOCAL,
875                 .offset         = LOCAL_VAR(bRead_only),
876                 .special        = NULL,
877                 .enum_list      = NULL,
878                 .flags          = FLAG_HIDE,
879         },
880         {
881                 .label          = "writable",
882                 .type           = P_BOOLREV,
883                 .p_class        = P_LOCAL,
884                 .offset         = LOCAL_VAR(bRead_only),
885                 .special        = NULL,
886                 .enum_list      = NULL,
887                 .flags          = FLAG_HIDE,
888         },
889         {
890                 .label          = "acl check permissions",
891                 .type           = P_BOOL,
892                 .p_class        = P_LOCAL,
893                 .offset         = LOCAL_VAR(bAclCheckPermissions),
894                 .special        = NULL,
895                 .enum_list      = NULL,
896                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE | FLAG_DEPRECATED,
897         },
898         {
899                 .label          = "acl group control",
900                 .type           = P_BOOL,
901                 .p_class        = P_LOCAL,
902                 .offset         = LOCAL_VAR(bAclGroupControl),
903                 .special        = NULL,
904                 .enum_list      = NULL,
905                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
906         },
907         {
908                 .label          = "acl map full control",
909                 .type           = P_BOOL,
910                 .p_class        = P_LOCAL,
911                 .offset         = LOCAL_VAR(bAclMapFullControl),
912                 .special        = NULL,
913                 .enum_list      = NULL,
914                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
915         },
916         {
917                 .label          = "create mask",
918                 .type           = P_OCTAL,
919                 .p_class        = P_LOCAL,
920                 .offset         = LOCAL_VAR(iCreate_mask),
921                 .special        = NULL,
922                 .enum_list      = NULL,
923                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
924         },
925         {
926                 .label          = "create mode",
927                 .type           = P_OCTAL,
928                 .p_class        = P_LOCAL,
929                 .offset         = LOCAL_VAR(iCreate_mask),
930                 .special        = NULL,
931                 .enum_list      = NULL,
932                 .flags          = FLAG_HIDE,
933         },
934         {
935                 .label          = "force create mode",
936                 .type           = P_OCTAL,
937                 .p_class        = P_LOCAL,
938                 .offset         = LOCAL_VAR(iCreate_force_mode),
939                 .special        = NULL,
940                 .enum_list      = NULL,
941                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
942         },
943         {
944                 .label          = "security mask",
945                 .type           = P_OCTAL,
946                 .p_class        = P_LOCAL,
947                 .offset         = LOCAL_VAR(iSecurity_mask),
948                 .special        = NULL,
949                 .enum_list      = NULL,
950                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
951         },
952         {
953                 .label          = "force security mode",
954                 .type           = P_OCTAL,
955                 .p_class        = P_LOCAL,
956                 .offset         = LOCAL_VAR(iSecurity_force_mode),
957                 .special        = NULL,
958                 .enum_list      = NULL,
959                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
960         },
961         {
962                 .label          = "directory mask",
963                 .type           = P_OCTAL,
964                 .p_class        = P_LOCAL,
965                 .offset         = LOCAL_VAR(iDir_mask),
966                 .special        = NULL,
967                 .enum_list      = NULL,
968                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
969         },
970         {
971                 .label          = "directory mode",
972                 .type           = P_OCTAL,
973                 .p_class        = P_LOCAL,
974                 .offset         = LOCAL_VAR(iDir_mask),
975                 .special        = NULL,
976                 .enum_list      = NULL,
977                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
978         },
979         {
980                 .label          = "force directory mode",
981                 .type           = P_OCTAL,
982                 .p_class        = P_LOCAL,
983                 .offset         = LOCAL_VAR(iDir_force_mode),
984                 .special        = NULL,
985                 .enum_list      = NULL,
986                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
987         },
988         {
989                 .label          = "directory security mask",
990                 .type           = P_OCTAL,
991                 .p_class        = P_LOCAL,
992                 .offset         = LOCAL_VAR(iDir_Security_mask),
993                 .special        = NULL,
994                 .enum_list      = NULL,
995                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
996         },
997         {
998                 .label          = "force directory security mode",
999                 .type           = P_OCTAL,
1000                 .p_class        = P_LOCAL,
1001                 .offset         = LOCAL_VAR(iDir_Security_force_mode),
1002                 .special        = NULL,
1003                 .enum_list      = NULL,
1004                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1005         },
1006         {
1007                 .label          = "force unknown acl user",
1008                 .type           = P_BOOL,
1009                 .p_class        = P_LOCAL,
1010                 .offset         = LOCAL_VAR(bForceUnknownAclUser),
1011                 .special        = NULL,
1012                 .enum_list      = NULL,
1013                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1014         },
1015         {
1016                 .label          = "inherit permissions",
1017                 .type           = P_BOOL,
1018                 .p_class        = P_LOCAL,
1019                 .offset         = LOCAL_VAR(bInheritPerms),
1020                 .special        = NULL,
1021                 .enum_list      = NULL,
1022                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1023         },
1024         {
1025                 .label          = "inherit acls",
1026                 .type           = P_BOOL,
1027                 .p_class        = P_LOCAL,
1028                 .offset         = LOCAL_VAR(bInheritACLS),
1029                 .special        = NULL,
1030                 .enum_list      = NULL,
1031                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1032         },
1033         {
1034                 .label          = "inherit owner",
1035                 .type           = P_BOOL,
1036                 .p_class        = P_LOCAL,
1037                 .offset         = LOCAL_VAR(bInheritOwner),
1038                 .special        = NULL,
1039                 .enum_list      = NULL,
1040                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1041         },
1042         {
1043                 .label          = "guest only",
1044                 .type           = P_BOOL,
1045                 .p_class        = P_LOCAL,
1046                 .offset         = LOCAL_VAR(bGuest_only),
1047                 .special        = NULL,
1048                 .enum_list      = NULL,
1049                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1050         },
1051         {
1052                 .label          = "only guest",
1053                 .type           = P_BOOL,
1054                 .p_class        = P_LOCAL,
1055                 .offset         = LOCAL_VAR(bGuest_only),
1056                 .special        = NULL,
1057                 .enum_list      = NULL,
1058                 .flags          = FLAG_HIDE,
1059         },
1060         {
1061                 .label          = "administrative share",
1062                 .type           = P_BOOL,
1063                 .p_class        = P_LOCAL,
1064                 .offset         = LOCAL_VAR(bAdministrative_share),
1065                 .special        = NULL,
1066                 .enum_list      = NULL,
1067                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1068         },
1069
1070         {
1071                 .label          = "guest ok",
1072                 .type           = P_BOOL,
1073                 .p_class        = P_LOCAL,
1074                 .offset         = LOCAL_VAR(bGuest_ok),
1075                 .special        = NULL,
1076                 .enum_list      = NULL,
1077                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1078         },
1079         {
1080                 .label          = "public",
1081                 .type           = P_BOOL,
1082                 .p_class        = P_LOCAL,
1083                 .offset         = LOCAL_VAR(bGuest_ok),
1084                 .special        = NULL,
1085                 .enum_list      = NULL,
1086                 .flags          = FLAG_HIDE,
1087         },
1088         {
1089                 .label          = "only user",
1090                 .type           = P_BOOL,
1091                 .p_class        = P_LOCAL,
1092                 .offset         = LOCAL_VAR(bOnlyUser),
1093                 .special        = NULL,
1094                 .enum_list      = NULL,
1095                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_DEPRECATED,
1096         },
1097         {
1098                 .label          = "hosts allow",
1099                 .type           = P_LIST,
1100                 .p_class        = P_LOCAL,
1101                 .offset         = LOCAL_VAR(szHostsallow),
1102                 .special        = NULL,
1103                 .enum_list      = NULL,
1104                 .flags          = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1105         },
1106         {
1107                 .label          = "allow hosts",
1108                 .type           = P_LIST,
1109                 .p_class        = P_LOCAL,
1110                 .offset         = LOCAL_VAR(szHostsallow),
1111                 .special        = NULL,
1112                 .enum_list      = NULL,
1113                 .flags          = FLAG_HIDE,
1114         },
1115         {
1116                 .label          = "hosts deny",
1117                 .type           = P_LIST,
1118                 .p_class        = P_LOCAL,
1119                 .offset         = LOCAL_VAR(szHostsdeny),
1120                 .special        = NULL,
1121                 .enum_list      = NULL,
1122                 .flags          = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1123         },
1124         {
1125                 .label          = "deny hosts",
1126                 .type           = P_LIST,
1127                 .p_class        = P_LOCAL,
1128                 .offset         = LOCAL_VAR(szHostsdeny),
1129                 .special        = NULL,
1130                 .enum_list      = NULL,
1131                 .flags          = FLAG_HIDE,
1132         },
1133         {
1134                 .label          = "preload modules",
1135                 .type           = P_LIST,
1136                 .p_class        = P_GLOBAL,
1137                 .offset         = GLOBAL_VAR(szPreloadModules),
1138                 .special        = NULL,
1139                 .enum_list      = NULL,
1140                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1141         },
1142         {
1143                 .label          = "dedicated keytab file",
1144                 .type           = P_STRING,
1145                 .p_class        = P_GLOBAL,
1146                 .offset         = GLOBAL_VAR(szDedicatedKeytabFile),
1147                 .special        = NULL,
1148                 .enum_list      = NULL,
1149                 .flags          = FLAG_ADVANCED,
1150         },
1151         {
1152                 .label          = "kerberos method",
1153                 .type           = P_ENUM,
1154                 .p_class        = P_GLOBAL,
1155                 .offset         = GLOBAL_VAR(iKerberosMethod),
1156                 .special        = NULL,
1157                 .enum_list      = enum_kerberos_method,
1158                 .flags          = FLAG_ADVANCED,
1159         },
1160         {
1161                 .label          = "map untrusted to domain",
1162                 .type           = P_BOOL,
1163                 .p_class        = P_GLOBAL,
1164                 .offset         = GLOBAL_VAR(bMapUntrustedToDomain),
1165                 .special        = NULL,
1166                 .enum_list      = NULL,
1167                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1168         },
1169
1170
1171         {N_("Logging Options"), P_SEP, P_SEPARATOR},
1172
1173         {
1174                 .label          = "log level",
1175                 .type           = P_STRING,
1176                 .p_class        = P_GLOBAL,
1177                 .offset         = GLOBAL_VAR(loglevel),
1178                 .special        = handle_debug_list,
1179                 .enum_list      = NULL,
1180                 .flags          = FLAG_ADVANCED,
1181         },
1182         {
1183                 .label          = "debuglevel",
1184                 .type           = P_STRING,
1185                 .p_class        = P_GLOBAL,
1186                 .offset         = GLOBAL_VAR(loglevel),
1187                 .special        = handle_debug_list,
1188                 .enum_list      = NULL,
1189                 .flags          = FLAG_HIDE,
1190         },
1191         {
1192                 .label          = "syslog",
1193                 .type           = P_INTEGER,
1194                 .p_class        = P_GLOBAL,
1195                 .offset         = GLOBAL_VAR(syslog),
1196                 .special        = NULL,
1197                 .enum_list      = NULL,
1198                 .flags          = FLAG_ADVANCED,
1199         },
1200         {
1201                 .label          = "syslog only",
1202                 .type           = P_BOOL,
1203                 .p_class        = P_GLOBAL,
1204                 .offset         = GLOBAL_VAR(bSyslogOnly),
1205                 .special        = NULL,
1206                 .enum_list      = NULL,
1207                 .flags          = FLAG_ADVANCED,
1208         },
1209         {
1210                 .label          = "log file",
1211                 .type           = P_STRING,
1212                 .p_class        = P_GLOBAL,
1213                 .offset         = GLOBAL_VAR(logfile),
1214                 .special        = handle_logfile,
1215                 .enum_list      = NULL,
1216                 .flags          = FLAG_ADVANCED,
1217         },
1218         {
1219                 .label          = "max log size",
1220                 .type           = P_BYTES,
1221                 .p_class        = P_GLOBAL,
1222                 .offset         = GLOBAL_VAR(max_log_size),
1223                 .special        = NULL,
1224                 .enum_list      = NULL,
1225                 .flags          = FLAG_ADVANCED,
1226         },
1227         {
1228                 .label          = "debug timestamp",
1229                 .type           = P_BOOL,
1230                 .p_class        = P_GLOBAL,
1231                 .offset         = GLOBAL_VAR(bTimestampLogs),
1232                 .special        = NULL,
1233                 .enum_list      = NULL,
1234                 .flags          = FLAG_ADVANCED,
1235         },
1236         {
1237                 .label          = "timestamp logs",
1238                 .type           = P_BOOL,
1239                 .p_class        = P_GLOBAL,
1240                 .offset         = GLOBAL_VAR(bTimestampLogs),
1241                 .special        = NULL,
1242                 .enum_list      = NULL,
1243                 .flags          = FLAG_ADVANCED,
1244         },
1245         {
1246                 .label          = "debug prefix timestamp",
1247                 .type           = P_BOOL,
1248                 .p_class        = P_GLOBAL,
1249                 .offset         = GLOBAL_VAR(bDebugPrefixTimestamp),
1250                 .special        = NULL,
1251                 .enum_list      = NULL,
1252                 .flags          = FLAG_ADVANCED,
1253         },
1254         {
1255                 .label          = "debug hires timestamp",
1256                 .type           = P_BOOL,
1257                 .p_class        = P_GLOBAL,
1258                 .offset         = GLOBAL_VAR(bDebugHiresTimestamp),
1259                 .special        = NULL,
1260                 .enum_list      = NULL,
1261                 .flags          = FLAG_ADVANCED,
1262         },
1263         {
1264                 .label          = "debug pid",
1265                 .type           = P_BOOL,
1266                 .p_class        = P_GLOBAL,
1267                 .offset         = GLOBAL_VAR(bDebugPid),
1268                 .special        = NULL,
1269                 .enum_list      = NULL,
1270                 .flags          = FLAG_ADVANCED,
1271         },
1272         {
1273                 .label          = "debug uid",
1274                 .type           = P_BOOL,
1275                 .p_class        = P_GLOBAL,
1276                 .offset         = GLOBAL_VAR(bDebugUid),
1277                 .special        = NULL,
1278                 .enum_list      = NULL,
1279                 .flags          = FLAG_ADVANCED,
1280         },
1281         {
1282                 .label          = "debug class",
1283                 .type           = P_BOOL,
1284                 .p_class        = P_GLOBAL,
1285                 .offset         = GLOBAL_VAR(bDebugClass),
1286                 .special        = NULL,
1287                 .enum_list      = NULL,
1288                 .flags          = FLAG_ADVANCED,
1289         },
1290         {
1291                 .label          = "enable core files",
1292                 .type           = P_BOOL,
1293                 .p_class        = P_GLOBAL,
1294                 .offset         = GLOBAL_VAR(bEnableCoreFiles),
1295                 .special        = NULL,
1296                 .enum_list      = NULL,
1297                 .flags          = FLAG_ADVANCED,
1298         },
1299
1300         {N_("Protocol Options"), P_SEP, P_SEPARATOR},
1301
1302         {
1303                 .label          = "allocation roundup size",
1304                 .type           = P_BYTES,
1305                 .p_class        = P_LOCAL,
1306                 .offset         = LOCAL_VAR(iallocation_roundup_size),
1307                 .special        = NULL,
1308                 .enum_list      = NULL,
1309                 .flags          = FLAG_ADVANCED,
1310         },
1311         {
1312                 .label          = "aio read size",
1313                 .type           = P_BYTES,
1314                 .p_class        = P_LOCAL,
1315                 .offset         = LOCAL_VAR(iAioReadSize),
1316                 .special        = NULL,
1317                 .enum_list      = NULL,
1318                 .flags          = FLAG_ADVANCED,
1319         },
1320         {
1321                 .label          = "aio write size",
1322                 .type           = P_BYTES,
1323                 .p_class        = P_LOCAL,
1324                 .offset         = LOCAL_VAR(iAioWriteSize),
1325                 .special        = NULL,
1326                 .enum_list      = NULL,
1327                 .flags          = FLAG_ADVANCED,
1328         },
1329         {
1330                 .label          = "aio write behind",
1331                 .type           = P_STRING,
1332                 .p_class        = P_LOCAL,
1333                 .offset         = LOCAL_VAR(szAioWriteBehind),
1334                 .special        = NULL,
1335                 .enum_list      = NULL,
1336                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1337         },
1338         {
1339                 .label          = "smb ports",
1340                 .type           = P_LIST,
1341                 .p_class        = P_GLOBAL,
1342                 .offset         = GLOBAL_VAR(smb_ports),
1343                 .special        = NULL,
1344                 .enum_list      = NULL,
1345                 .flags          = FLAG_ADVANCED,
1346         },
1347         {
1348                 .label          = "large readwrite",
1349                 .type           = P_BOOL,
1350                 .p_class        = P_GLOBAL,
1351                 .offset         = GLOBAL_VAR(bLargeReadwrite),
1352                 .special        = NULL,
1353                 .enum_list      = NULL,
1354                 .flags          = FLAG_ADVANCED,
1355         },
1356         {
1357                 .label          = "server max protocol",
1358                 .type           = P_ENUM,
1359                 .p_class        = P_GLOBAL,
1360                 .offset         = GLOBAL_VAR(srv_maxprotocol),
1361                 .special        = NULL,
1362                 .enum_list      = enum_protocol,
1363                 .flags          = FLAG_ADVANCED,
1364         },
1365         {
1366                 .label          = "max protocol",
1367                 .type           = P_ENUM,
1368                 .p_class        = P_GLOBAL,
1369                 .offset         = GLOBAL_VAR(srv_maxprotocol),
1370                 .special        = NULL,
1371                 .enum_list      = enum_protocol,
1372                 .flags          = FLAG_ADVANCED,
1373         },
1374         {
1375                 .label          = "protocol",
1376                 .type           = P_ENUM,
1377                 .p_class        = P_GLOBAL,
1378                 .offset         = GLOBAL_VAR(srv_maxprotocol),
1379                 .special        = NULL,
1380                 .enum_list      = enum_protocol,
1381                 .flags          = FLAG_ADVANCED,
1382         },
1383         {
1384                 .label          = "server min protocol",
1385                 .type           = P_ENUM,
1386                 .p_class        = P_GLOBAL,
1387                 .offset         = GLOBAL_VAR(srv_minprotocol),
1388                 .special        = NULL,
1389                 .enum_list      = enum_protocol,
1390                 .flags          = FLAG_ADVANCED,
1391         },
1392         {
1393                 .label          = "min protocol",
1394                 .type           = P_ENUM,
1395                 .p_class        = P_GLOBAL,
1396                 .offset         = GLOBAL_VAR(srv_minprotocol),
1397                 .special        = NULL,
1398                 .enum_list      = enum_protocol,
1399                 .flags          = FLAG_ADVANCED,
1400         },
1401         {
1402                 .label          = "client max protocol",
1403                 .type           = P_ENUM,
1404                 .p_class        = P_GLOBAL,
1405                 .offset         = GLOBAL_VAR(cli_maxprotocol),
1406                 .special        = NULL,
1407                 .enum_list      = enum_protocol,
1408                 .flags          = FLAG_ADVANCED,
1409         },
1410         {
1411                 .label          = "client min protocol",
1412                 .type           = P_ENUM,
1413                 .p_class        = P_GLOBAL,
1414                 .offset         = GLOBAL_VAR(cli_minprotocol),
1415                 .special        = NULL,
1416                 .enum_list      = enum_protocol,
1417                 .flags          = FLAG_ADVANCED,
1418         },
1419         {
1420                 .label          = "unicode",
1421                 .type           = P_BOOL,
1422                 .p_class        = P_GLOBAL,
1423                 .offset         = GLOBAL_VAR(bUnicode),
1424                 .special        = NULL,
1425                 .enum_list      = NULL
1426         },
1427         {
1428                 .label          = "min receivefile size",
1429                 .type           = P_BYTES,
1430                 .p_class        = P_GLOBAL,
1431                 .offset         = GLOBAL_VAR(iminreceivefile),
1432                 .special        = NULL,
1433                 .enum_list      = NULL,
1434                 .flags          = FLAG_ADVANCED,
1435         },
1436         {
1437                 .label          = "read raw",
1438                 .type           = P_BOOL,
1439                 .p_class        = P_GLOBAL,
1440                 .offset         = GLOBAL_VAR(bReadRaw),
1441                 .special        = NULL,
1442                 .enum_list      = NULL,
1443                 .flags          = FLAG_ADVANCED,
1444         },
1445         {
1446                 .label          = "write raw",
1447                 .type           = P_BOOL,
1448                 .p_class        = P_GLOBAL,
1449                 .offset         = GLOBAL_VAR(bWriteRaw),
1450                 .special        = NULL,
1451                 .enum_list      = NULL,
1452                 .flags          = FLAG_ADVANCED,
1453         },
1454         {
1455                 .label          = "disable netbios",
1456                 .type           = P_BOOL,
1457                 .p_class        = P_GLOBAL,
1458                 .offset         = GLOBAL_VAR(bDisableNetbios),
1459                 .special        = NULL,
1460                 .enum_list      = NULL,
1461                 .flags          = FLAG_ADVANCED,
1462         },
1463         {
1464                 .label          = "reset on zero vc",
1465                 .type           = P_BOOL,
1466                 .p_class        = P_GLOBAL,
1467                 .offset         = GLOBAL_VAR(bResetOnZeroVC),
1468                 .special        = NULL,
1469                 .enum_list      = NULL,
1470                 .flags          = FLAG_ADVANCED,
1471         },
1472         {
1473                 .label          = "log writeable files on exit",
1474                 .type           = P_BOOL,
1475                 .p_class        = P_GLOBAL,
1476                 .offset         = GLOBAL_VAR(bLogWriteableFilesOnExit),
1477                 .special        = NULL,
1478                 .enum_list      = NULL,
1479                 .flags          = FLAG_ADVANCED,
1480         },
1481         {
1482                 .label          = "acl compatibility",
1483                 .type           = P_ENUM,
1484                 .p_class        = P_GLOBAL,
1485                 .offset         = GLOBAL_VAR(iAclCompat),
1486                 .special        = NULL,
1487                 .enum_list      = enum_acl_compat_vals,
1488                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1489         },
1490         {
1491                 .label          = "defer sharing violations",
1492                 .type           = P_BOOL,
1493                 .p_class        = P_GLOBAL,
1494                 .offset         = GLOBAL_VAR(bDeferSharingViolations),
1495                 .special        = NULL,
1496                 .enum_list      = NULL,
1497                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1498         },
1499         {
1500                 .label          = "ea support",
1501                 .type           = P_BOOL,
1502                 .p_class        = P_LOCAL,
1503                 .offset         = LOCAL_VAR(bEASupport),
1504                 .special        = NULL,
1505                 .enum_list      = NULL,
1506                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1507         },
1508         {
1509                 .label          = "nt acl support",
1510                 .type           = P_BOOL,
1511                 .p_class        = P_LOCAL,
1512                 .offset         = LOCAL_VAR(bNTAclSupport),
1513                 .special        = NULL,
1514                 .enum_list      = NULL,
1515                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1516         },
1517         {
1518                 .label          = "nt pipe support",
1519                 .type           = P_BOOL,
1520                 .p_class        = P_GLOBAL,
1521                 .offset         = GLOBAL_VAR(bNTPipeSupport),
1522                 .special        = NULL,
1523                 .enum_list      = NULL,
1524                 .flags          = FLAG_ADVANCED,
1525         },
1526         {
1527                 .label          = "nt status support",
1528                 .type           = P_BOOL,
1529                 .p_class        = P_GLOBAL,
1530                 .offset         = GLOBAL_VAR(bNTStatusSupport),
1531                 .special        = NULL,
1532                 .enum_list      = NULL,
1533                 .flags          = FLAG_ADVANCED,
1534         },
1535         {
1536                 .label          = "profile acls",
1537                 .type           = P_BOOL,
1538                 .p_class        = P_LOCAL,
1539                 .offset         = LOCAL_VAR(bProfileAcls),
1540                 .special        = NULL,
1541                 .enum_list      = NULL,
1542                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1543         },
1544         {
1545                 .label          = "map acl inherit",
1546                 .type           = P_BOOL,
1547                 .p_class        = P_LOCAL,
1548                 .offset         = LOCAL_VAR(bMap_acl_inherit),
1549                 .special        = NULL,
1550                 .enum_list      = NULL,
1551                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1552         },
1553         {
1554                 .label          = "afs share",
1555                 .type           = P_BOOL,
1556                 .p_class        = P_LOCAL,
1557                 .offset         = LOCAL_VAR(bAfs_Share),
1558                 .special        = NULL,
1559                 .enum_list      = NULL,
1560                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1561         },
1562         {
1563                 .label          = "max mux",
1564                 .type           = P_INTEGER,
1565                 .p_class        = P_GLOBAL,
1566                 .offset         = GLOBAL_VAR(max_mux),
1567                 .special        = NULL,
1568                 .enum_list      = NULL,
1569                 .flags          = FLAG_ADVANCED,
1570         },
1571         {
1572                 .label          = "max xmit",
1573                 .type           = P_BYTES,
1574                 .p_class        = P_GLOBAL,
1575                 .offset         = GLOBAL_VAR(max_xmit),
1576                 .special        = NULL,
1577                 .enum_list      = NULL,
1578                 .flags          = FLAG_ADVANCED,
1579         },
1580         {
1581                 .label          = "name resolve order",
1582                 .type           = P_LIST,
1583                 .p_class        = P_GLOBAL,
1584                 .offset         = GLOBAL_VAR(szNameResolveOrder),
1585                 .special        = NULL,
1586                 .enum_list      = NULL,
1587                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
1588         },
1589         {
1590                 .label          = "max ttl",
1591                 .type           = P_INTEGER,
1592                 .p_class        = P_GLOBAL,
1593                 .offset         = GLOBAL_VAR(max_ttl),
1594                 .special        = NULL,
1595                 .enum_list      = NULL,
1596                 .flags          = FLAG_ADVANCED,
1597         },
1598         {
1599                 .label          = "max wins ttl",
1600                 .type           = P_INTEGER,
1601                 .p_class        = P_GLOBAL,
1602                 .offset         = GLOBAL_VAR(max_wins_ttl),
1603                 .special        = NULL,
1604                 .enum_list      = NULL,
1605                 .flags          = FLAG_ADVANCED,
1606         },
1607         {
1608                 .label          = "min wins ttl",
1609                 .type           = P_INTEGER,
1610                 .p_class        = P_GLOBAL,
1611                 .offset         = GLOBAL_VAR(min_wins_ttl),
1612                 .special        = NULL,
1613                 .enum_list      = NULL,
1614                 .flags          = FLAG_ADVANCED,
1615         },
1616         {
1617                 .label          = "time server",
1618                 .type           = P_BOOL,
1619                 .p_class        = P_GLOBAL,
1620                 .offset         = GLOBAL_VAR(bTimeServer),
1621                 .special        = NULL,
1622                 .enum_list      = NULL,
1623                 .flags          = FLAG_ADVANCED,
1624         },
1625         {
1626                 .label          = "unix extensions",
1627                 .type           = P_BOOL,
1628                 .p_class        = P_GLOBAL,
1629                 .offset         = GLOBAL_VAR(bUnixExtensions),
1630                 .special        = NULL,
1631                 .enum_list      = NULL,
1632                 .flags          = FLAG_ADVANCED,
1633         },
1634         {
1635                 .label          = "use spnego",
1636                 .type           = P_BOOL,
1637                 .p_class        = P_GLOBAL,
1638                 .offset         = GLOBAL_VAR(bUseSpnego),
1639                 .special        = NULL,
1640                 .enum_list      = NULL,
1641                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
1642         },
1643         {
1644                 .label          = "client signing",
1645                 .type           = P_ENUM,
1646                 .p_class        = P_GLOBAL,
1647                 .offset         = GLOBAL_VAR(client_signing),
1648                 .special        = NULL,
1649                 .enum_list      = enum_smb_signing_vals,
1650                 .flags          = FLAG_ADVANCED,
1651         },
1652         {
1653                 .label          = "server signing",
1654                 .type           = P_ENUM,
1655                 .p_class        = P_GLOBAL,
1656                 .offset         = GLOBAL_VAR(server_signing),
1657                 .special        = NULL,
1658                 .enum_list      = enum_smb_signing_vals,
1659                 .flags          = FLAG_ADVANCED,
1660         },
1661         {
1662                 .label          = "smb encrypt",
1663                 .type           = P_ENUM,
1664                 .p_class        = P_LOCAL,
1665                 .offset         = LOCAL_VAR(ismb_encrypt),
1666                 .special        = NULL,
1667                 .enum_list      = enum_smb_signing_vals,
1668                 .flags          = FLAG_ADVANCED,
1669         },
1670         {
1671                 .label          = "client use spnego",
1672                 .type           = P_BOOL,
1673                 .p_class        = P_GLOBAL,
1674                 .offset         = GLOBAL_VAR(bClientUseSpnego),
1675                 .special        = NULL,
1676                 .enum_list      = NULL,
1677                 .flags          = FLAG_ADVANCED,
1678         },
1679         {
1680                 .label          = "client ldap sasl wrapping",
1681                 .type           = P_ENUM,
1682                 .p_class        = P_GLOBAL,
1683                 .offset         = GLOBAL_VAR(client_ldap_sasl_wrapping),
1684                 .special        = NULL,
1685                 .enum_list      = enum_ldap_sasl_wrapping,
1686                 .flags          = FLAG_ADVANCED,
1687         },
1688         {
1689                 .label          = "enable asu support",
1690                 .type           = P_BOOL,
1691                 .p_class        = P_GLOBAL,
1692                 .offset         = GLOBAL_VAR(bASUSupport),
1693                 .special        = NULL,
1694                 .enum_list      = NULL,
1695                 .flags          = FLAG_ADVANCED,
1696         },
1697         {
1698                 .label          = "svcctl list",
1699                 .type           = P_LIST,
1700                 .p_class        = P_GLOBAL,
1701                 .offset         = GLOBAL_VAR(szServicesList),
1702                 .special        = NULL,
1703                 .enum_list      = NULL,
1704                 .flags          = FLAG_ADVANCED,
1705         },
1706         {
1707                 .label          = "cldap port",
1708                 .type           = P_INTEGER,
1709                 .p_class        = P_GLOBAL,
1710                 .offset         = GLOBAL_VAR(cldap_port),
1711                 .special        = NULL,
1712                 .enum_list      = NULL
1713         },
1714         {
1715                 .label          = "dgram port",
1716                 .type           = P_INTEGER,
1717                 .p_class        = P_GLOBAL,
1718                 .offset         = GLOBAL_VAR(dgram_port),
1719                 .special        = NULL,
1720                 .enum_list      = NULL
1721         },
1722         {
1723                 .label          = "nbt port",
1724                 .type           = P_INTEGER,
1725                 .p_class        = P_GLOBAL,
1726                 .offset         = GLOBAL_VAR(nbt_port),
1727                 .special        = NULL,
1728                 .enum_list      = NULL
1729         },
1730         {
1731                 .label          = "krb5 port",
1732                 .type           = P_INTEGER,
1733                 .p_class        = P_GLOBAL,
1734                 .offset         = GLOBAL_VAR(krb5_port),
1735                 .special        = NULL,
1736                 .enum_list      = NULL
1737         },
1738         {
1739                 .label          = "kpasswd port",
1740                 .type           = P_INTEGER,
1741                 .p_class        = P_GLOBAL,
1742                 .offset         = GLOBAL_VAR(kpasswd_port),
1743                 .special        = NULL,
1744                 .enum_list      = NULL
1745         },
1746         {
1747                 .label          = "web port",
1748                 .type           = P_INTEGER,
1749                 .p_class        = P_GLOBAL,
1750                 .offset         = GLOBAL_VAR(web_port),
1751                 .special        = NULL,
1752                 .enum_list      = NULL
1753         },
1754         {
1755                 .label          = "rpc big endian",
1756                 .type           = P_BOOL,
1757                 .p_class        = P_GLOBAL,
1758                 .offset         = GLOBAL_VAR(bRpcBigEndian),
1759                 .special        = NULL,
1760                 .enum_list      = NULL
1761         },
1762
1763         {N_("Tuning Options"), P_SEP, P_SEPARATOR},
1764
1765         {
1766                 .label          = "block size",
1767                 .type           = P_BYTES,
1768                 .p_class        = P_LOCAL,
1769                 .offset         = LOCAL_VAR(iBlock_size),
1770                 .special        = NULL,
1771                 .enum_list      = NULL,
1772                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1773         },
1774         {
1775                 .label          = "deadtime",
1776                 .type           = P_INTEGER,
1777                 .p_class        = P_GLOBAL,
1778                 .offset         = GLOBAL_VAR(deadtime),
1779                 .special        = NULL,
1780                 .enum_list      = NULL,
1781                 .flags          = FLAG_ADVANCED,
1782         },
1783         {
1784                 .label          = "getwd cache",
1785                 .type           = P_BOOL,
1786                 .p_class        = P_GLOBAL,
1787                 .offset         = GLOBAL_VAR(getwd_cache),
1788                 .special        = NULL,
1789                 .enum_list      = NULL,
1790                 .flags          = FLAG_ADVANCED,
1791         },
1792         {
1793                 .label          = "keepalive",
1794                 .type           = P_INTEGER,
1795                 .p_class        = P_GLOBAL,
1796                 .offset         = GLOBAL_VAR(iKeepalive),
1797                 .special        = NULL,
1798                 .enum_list      = NULL,
1799                 .flags          = FLAG_ADVANCED,
1800         },
1801         {
1802                 .label          = "change notify",
1803                 .type           = P_BOOL,
1804                 .p_class        = P_LOCAL,
1805                 .offset         = LOCAL_VAR(bChangeNotify),
1806                 .special        = NULL,
1807                 .enum_list      = NULL,
1808                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1809         },
1810         {
1811                 .label          = "directory name cache size",
1812                 .type           = P_INTEGER,
1813                 .p_class        = P_LOCAL,
1814                 .offset         = LOCAL_VAR(iDirectoryNameCacheSize),
1815                 .special        = NULL,
1816                 .enum_list      = NULL,
1817                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1818         },
1819         {
1820                 .label          = "kernel change notify",
1821                 .type           = P_BOOL,
1822                 .p_class        = P_LOCAL,
1823                 .offset         = LOCAL_VAR(bKernelChangeNotify),
1824                 .special        = NULL,
1825                 .enum_list      = NULL,
1826                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1827         },
1828         {
1829                 .label          = "lpq cache time",
1830                 .type           = P_INTEGER,
1831                 .p_class        = P_GLOBAL,
1832                 .offset         = GLOBAL_VAR(lpqcachetime),
1833                 .special        = NULL,
1834                 .enum_list      = NULL,
1835                 .flags          = FLAG_ADVANCED,
1836         },
1837         {
1838                 .label          = "max smbd processes",
1839                 .type           = P_INTEGER,
1840                 .p_class        = P_GLOBAL,
1841                 .offset         = GLOBAL_VAR(iMaxSmbdProcesses),
1842                 .special        = NULL,
1843                 .enum_list      = NULL,
1844                 .flags          = FLAG_ADVANCED,
1845         },
1846         {
1847                 .label          = "max connections",
1848                 .type           = P_INTEGER,
1849                 .p_class        = P_LOCAL,
1850                 .offset         = LOCAL_VAR(iMaxConnections),
1851                 .special        = NULL,
1852                 .enum_list      = NULL,
1853                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1854         },
1855         {
1856                 .label          = "max disk size",
1857                 .type           = P_BYTES,
1858                 .p_class        = P_GLOBAL,
1859                 .offset         = GLOBAL_VAR(maxdisksize),
1860                 .special        = NULL,
1861                 .enum_list      = NULL,
1862                 .flags          = FLAG_ADVANCED,
1863         },
1864         {
1865                 .label          = "max open files",
1866                 .type           = P_INTEGER,
1867                 .p_class        = P_GLOBAL,
1868                 .offset         = GLOBAL_VAR(max_open_files),
1869                 .special        = NULL,
1870                 .enum_list      = NULL,
1871                 .flags          = FLAG_ADVANCED,
1872         },
1873         {
1874                 .label          = "min print space",
1875                 .type           = P_INTEGER,
1876                 .p_class        = P_LOCAL,
1877                 .offset         = LOCAL_VAR(iMinPrintSpace),
1878                 .special        = NULL,
1879                 .enum_list      = NULL,
1880                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
1881         },
1882         {
1883                 .label          = "socket options",
1884                 .type           = P_STRING,
1885                 .p_class        = P_GLOBAL,
1886                 .offset         = GLOBAL_VAR(socket_options),
1887                 .special        = NULL,
1888                 .enum_list      = NULL,
1889                 .flags          = FLAG_ADVANCED,
1890         },
1891         {
1892                 .label          = "strict allocate",
1893                 .type           = P_BOOL,
1894                 .p_class        = P_LOCAL,
1895                 .offset         = LOCAL_VAR(bStrictAllocate),
1896                 .special        = NULL,
1897                 .enum_list      = NULL,
1898                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1899         },
1900         {
1901                 .label          = "strict sync",
1902                 .type           = P_BOOL,
1903                 .p_class        = P_LOCAL,
1904                 .offset         = LOCAL_VAR(bStrictSync),
1905                 .special        = NULL,
1906                 .enum_list      = NULL,
1907                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1908         },
1909         {
1910                 .label          = "sync always",
1911                 .type           = P_BOOL,
1912                 .p_class        = P_LOCAL,
1913                 .offset         = LOCAL_VAR(bSyncAlways),
1914                 .special        = NULL,
1915                 .enum_list      = NULL,
1916                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1917         },
1918         {
1919                 .label          = "use mmap",
1920                 .type           = P_BOOL,
1921                 .p_class        = P_GLOBAL,
1922                 .offset         = GLOBAL_VAR(bUseMmap),
1923                 .special        = NULL,
1924                 .enum_list      = NULL,
1925                 .flags          = FLAG_ADVANCED,
1926         },
1927         {
1928                 .label          = "use sendfile",
1929                 .type           = P_BOOL,
1930                 .p_class        = P_LOCAL,
1931                 .offset         = LOCAL_VAR(bUseSendfile),
1932                 .special        = NULL,
1933                 .enum_list      = NULL,
1934                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1935         },
1936         {
1937                 .label          = "hostname lookups",
1938                 .type           = P_BOOL,
1939                 .p_class        = P_GLOBAL,
1940                 .offset         = GLOBAL_VAR(bHostnameLookups),
1941                 .special        = NULL,
1942                 .enum_list      = NULL,
1943                 .flags          = FLAG_ADVANCED,
1944         },
1945         {
1946                 .label          = "write cache size",
1947                 .type           = P_BYTES,
1948                 .p_class        = P_LOCAL,
1949                 .offset         = LOCAL_VAR(iWriteCacheSize),
1950                 .special        = NULL,
1951                 .enum_list      = NULL,
1952                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1953         },
1954         {
1955                 .label          = "name cache timeout",
1956                 .type           = P_INTEGER,
1957                 .p_class        = P_GLOBAL,
1958                 .offset         = GLOBAL_VAR(name_cache_timeout),
1959                 .special        = NULL,
1960                 .enum_list      = NULL,
1961                 .flags          = FLAG_ADVANCED,
1962         },
1963         {
1964                 .label          = "ctdbd socket",
1965                 .type           = P_STRING,
1966                 .p_class        = P_GLOBAL,
1967                 .offset         = GLOBAL_VAR(ctdbdSocket),
1968                 .special        = NULL,
1969                 .enum_list      = NULL,
1970                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1971         },
1972         {
1973                 .label          = "cluster addresses",
1974                 .type           = P_LIST,
1975                 .p_class        = P_GLOBAL,
1976                 .offset         = GLOBAL_VAR(szClusterAddresses),
1977                 .special        = NULL,
1978                 .enum_list      = NULL,
1979                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1980         },
1981         {
1982                 .label          = "clustering",
1983                 .type           = P_BOOL,
1984                 .p_class        = P_GLOBAL,
1985                 .offset         = GLOBAL_VAR(clustering),
1986                 .special        = NULL,
1987                 .enum_list      = NULL,
1988                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1989         },
1990         {
1991                 .label          = "ctdb timeout",
1992                 .type           = P_INTEGER,
1993                 .p_class        = P_GLOBAL,
1994                 .offset         = GLOBAL_VAR(ctdb_timeout),
1995                 .special        = NULL,
1996                 .enum_list      = NULL,
1997                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1998         },
1999         {
2000                 .label          = "ctdb locktime warn threshold",
2001                 .type           = P_INTEGER,
2002                 .p_class        = P_GLOBAL,
2003                 .offset         = GLOBAL_VAR(ctdb_locktime_warn_threshold),
2004                 .special        = NULL,
2005                 .enum_list      = NULL,
2006                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
2007         },
2008         {
2009                 .label          = "smb2 max read",
2010                 .type           = P_BYTES,
2011                 .p_class        = P_GLOBAL,
2012                 .offset         = GLOBAL_VAR(ismb2_max_read),
2013                 .special        = NULL,
2014                 .enum_list      = NULL,
2015                 .flags          = FLAG_ADVANCED,
2016         },
2017         {
2018                 .label          = "smb2 max write",
2019                 .type           = P_BYTES,
2020                 .p_class        = P_GLOBAL,
2021                 .offset         = GLOBAL_VAR(ismb2_max_write),
2022                 .special        = NULL,
2023                 .enum_list      = NULL,
2024                 .flags          = FLAG_ADVANCED,
2025         },
2026         {
2027                 .label          = "smb2 max trans",
2028                 .type           = P_BYTES,
2029                 .p_class        = P_GLOBAL,
2030                 .offset         = GLOBAL_VAR(ismb2_max_trans),
2031                 .special        = NULL,
2032                 .enum_list      = NULL,
2033                 .flags          = FLAG_ADVANCED,
2034         },
2035         {
2036                 .label          = "smb2 max credits",
2037                 .type           = P_INTEGER,
2038                 .p_class        = P_GLOBAL,
2039                 .offset         = GLOBAL_VAR(ismb2_max_credits),
2040                 .special        = NULL,
2041                 .enum_list      = NULL,
2042                 .flags          = FLAG_ADVANCED,
2043         },
2044
2045         {N_("Printing Options"), P_SEP, P_SEPARATOR},
2046
2047         {
2048                 .label          = "max reported print jobs",
2049                 .type           = P_INTEGER,
2050                 .p_class        = P_LOCAL,
2051                 .offset         = LOCAL_VAR(iMaxReportedPrintJobs),
2052                 .special        = NULL,
2053                 .enum_list      = NULL,
2054                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2055         },
2056         {
2057                 .label          = "max print jobs",
2058                 .type           = P_INTEGER,
2059                 .p_class        = P_LOCAL,
2060                 .offset         = LOCAL_VAR(iMaxPrintJobs),
2061                 .special        = NULL,
2062                 .enum_list      = NULL,
2063                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2064         },
2065         {
2066                 .label          = "load printers",
2067                 .type           = P_BOOL,
2068                 .p_class        = P_GLOBAL,
2069                 .offset         = GLOBAL_VAR(bLoadPrinters),
2070                 .special        = NULL,
2071                 .enum_list      = NULL,
2072                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2073         },
2074         {
2075                 .label          = "printcap cache time",
2076                 .type           = P_INTEGER,
2077                 .p_class        = P_GLOBAL,
2078                 .offset         = GLOBAL_VAR(PrintcapCacheTime),
2079                 .special        = NULL,
2080                 .enum_list      = NULL,
2081                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2082         },
2083         {
2084                 .label          = "printcap name",
2085                 .type           = P_STRING,
2086                 .p_class        = P_GLOBAL,
2087                 .offset         = GLOBAL_VAR(szPrintcapname),
2088                 .special        = NULL,
2089                 .enum_list      = NULL,
2090                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2091         },
2092         {
2093                 .label          = "printcap",
2094                 .type           = P_STRING,
2095                 .p_class        = P_GLOBAL,
2096                 .offset         = GLOBAL_VAR(szPrintcapname),
2097                 .special        = NULL,
2098                 .enum_list      = NULL,
2099                 .flags          = FLAG_HIDE,
2100         },
2101         {
2102                 .label          = "printable",
2103                 .type           = P_BOOL,
2104                 .p_class        = P_LOCAL,
2105                 .offset         = LOCAL_VAR(bPrint_ok),
2106                 .special        = NULL,
2107                 .enum_list      = NULL,
2108                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2109         },
2110         {
2111                 .label          = "print notify backchannel",
2112                 .type           = P_BOOL,
2113                 .p_class        = P_LOCAL,
2114                 .offset         = LOCAL_VAR(bPrintNotifyBackchannel),
2115                 .special        = NULL,
2116                 .enum_list      = NULL,
2117                 .flags          = FLAG_ADVANCED,
2118         },
2119         {
2120                 .label          = "print ok",
2121                 .type           = P_BOOL,
2122                 .p_class        = P_LOCAL,
2123                 .offset         = LOCAL_VAR(bPrint_ok),
2124                 .special        = NULL,
2125                 .enum_list      = NULL,
2126                 .flags          = FLAG_HIDE,
2127         },
2128         {
2129                 .label          = "printing",
2130                 .type           = P_ENUM,
2131                 .p_class        = P_LOCAL,
2132                 .offset         = LOCAL_VAR(iPrinting),
2133                 .special        = handle_printing,
2134                 .enum_list      = enum_printing,
2135                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2136         },
2137         {
2138                 .label          = "cups options",
2139                 .type           = P_STRING,
2140                 .p_class        = P_LOCAL,
2141                 .offset         = LOCAL_VAR(szCupsOptions),
2142                 .special        = NULL,
2143                 .enum_list      = NULL,
2144                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2145         },
2146         {
2147                 .label          = "cups server",
2148                 .type           = P_STRING,
2149                 .p_class        = P_GLOBAL,
2150                 .offset         = GLOBAL_VAR(szCupsServer),
2151                 .special        = NULL,
2152                 .enum_list      = NULL,
2153                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2154         },
2155         {
2156                 .label          = "cups encrypt",
2157                 .type           = P_ENUM,
2158                 .p_class        = P_GLOBAL,
2159                 .offset         = GLOBAL_VAR(CupsEncrypt),
2160                 .special        = NULL,
2161                 .enum_list      = enum_bool_auto,
2162                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2163         },
2164         {
2165
2166                 .label          = "cups connection timeout",
2167                 .type           = P_INTEGER,
2168                 .p_class        = P_GLOBAL,
2169                 .offset         = GLOBAL_VAR(cups_connection_timeout),
2170                 .special        = NULL,
2171                 .enum_list      = NULL,
2172                 .flags          = FLAG_ADVANCED,
2173         },
2174         {
2175                 .label          = "iprint server",
2176                 .type           = P_STRING,
2177                 .p_class        = P_GLOBAL,
2178                 .offset         = GLOBAL_VAR(szIPrintServer),
2179                 .special        = NULL,
2180                 .enum_list      = NULL,
2181                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2182         },
2183         {
2184                 .label          = "print command",
2185                 .type           = P_STRING,
2186                 .p_class        = P_LOCAL,
2187                 .offset         = LOCAL_VAR(szPrintcommand),
2188                 .special        = NULL,
2189                 .enum_list      = NULL,
2190                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2191         },
2192         {
2193                 .label          = "disable spoolss",
2194                 .type           = P_BOOL,
2195                 .p_class        = P_GLOBAL,
2196                 .offset         = GLOBAL_VAR(bDisableSpoolss),
2197                 .special        = NULL,
2198                 .enum_list      = NULL,
2199                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2200         },
2201         {
2202                 .label          = "enable spoolss",
2203                 .type           = P_BOOLREV,
2204                 .p_class        = P_GLOBAL,
2205                 .offset         = GLOBAL_VAR(bDisableSpoolss),
2206                 .special        = NULL,
2207                 .enum_list      = NULL,
2208                 .flags          = FLAG_HIDE,
2209         },
2210         {
2211                 .label          = "lpq command",
2212                 .type           = P_STRING,
2213                 .p_class        = P_LOCAL,
2214                 .offset         = LOCAL_VAR(szLpqcommand),
2215                 .special        = NULL,
2216                 .enum_list      = NULL,
2217                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2218         },
2219         {
2220                 .label          = "lprm command",
2221                 .type           = P_STRING,
2222                 .p_class        = P_LOCAL,
2223                 .offset         = LOCAL_VAR(szLprmcommand),
2224                 .special        = NULL,
2225                 .enum_list      = NULL,
2226                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2227         },
2228         {
2229                 .label          = "lppause command",
2230                 .type           = P_STRING,
2231                 .p_class        = P_LOCAL,
2232                 .offset         = LOCAL_VAR(szLppausecommand),
2233                 .special        = NULL,
2234                 .enum_list      = NULL,
2235                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2236         },
2237         {
2238                 .label          = "lpresume command",
2239                 .type           = P_STRING,
2240                 .p_class        = P_LOCAL,
2241                 .offset         = LOCAL_VAR(szLpresumecommand),
2242                 .special        = NULL,
2243                 .enum_list      = NULL,
2244                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2245         },
2246         {
2247                 .label          = "queuepause command",
2248                 .type           = P_STRING,
2249                 .p_class        = P_LOCAL,
2250                 .offset         = LOCAL_VAR(szQueuepausecommand),
2251                 .special        = NULL,
2252                 .enum_list      = NULL,
2253                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2254         },
2255         {
2256                 .label          = "queueresume command",
2257                 .type           = P_STRING,
2258                 .p_class        = P_LOCAL,
2259                 .offset         = LOCAL_VAR(szQueueresumecommand),
2260                 .special        = NULL,
2261                 .enum_list      = NULL,
2262                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2263         },
2264         {
2265                 .label          = "addport command",
2266                 .type           = P_STRING,
2267                 .p_class        = P_GLOBAL,
2268                 .offset         = GLOBAL_VAR(szAddPortCommand),
2269                 .special        = NULL,
2270                 .enum_list      = NULL,
2271                 .flags          = FLAG_ADVANCED,
2272         },
2273         {
2274                 .label          = "enumports command",
2275                 .type           = P_STRING,
2276                 .p_class        = P_GLOBAL,
2277                 .offset         = GLOBAL_VAR(szEnumPortsCommand),
2278                 .special        = NULL,
2279                 .enum_list      = NULL,
2280                 .flags          = FLAG_ADVANCED,
2281         },
2282         {
2283                 .label          = "addprinter command",
2284                 .type           = P_STRING,
2285                 .p_class        = P_GLOBAL,
2286                 .offset         = GLOBAL_VAR(szAddPrinterCommand),
2287                 .special        = NULL,
2288                 .enum_list      = NULL,
2289                 .flags          = FLAG_ADVANCED,
2290         },
2291         {
2292                 .label          = "deleteprinter command",
2293                 .type           = P_STRING,
2294                 .p_class        = P_GLOBAL,
2295                 .offset         = GLOBAL_VAR(szDeletePrinterCommand),
2296                 .special        = NULL,
2297                 .enum_list      = NULL,
2298                 .flags          = FLAG_ADVANCED,
2299         },
2300         {
2301                 .label          = "show add printer wizard",
2302                 .type           = P_BOOL,
2303                 .p_class        = P_GLOBAL,
2304                 .offset         = GLOBAL_VAR(bMsAddPrinterWizard),
2305                 .special        = NULL,
2306                 .enum_list      = NULL,
2307                 .flags          = FLAG_ADVANCED,
2308         },
2309         {
2310                 .label          = "os2 driver map",
2311                 .type           = P_STRING,
2312                 .p_class        = P_GLOBAL,
2313                 .offset         = GLOBAL_VAR(szOs2DriverMap),
2314                 .special        = NULL,
2315                 .enum_list      = NULL,
2316                 .flags          = FLAG_ADVANCED,
2317         },
2318
2319         {
2320                 .label          = "printer name",
2321                 .type           = P_STRING,
2322                 .p_class        = P_LOCAL,
2323                 .offset         = LOCAL_VAR(szPrintername),
2324                 .special        = NULL,
2325                 .enum_list      = NULL,
2326                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2327         },
2328         {
2329                 .label          = "printer",
2330                 .type           = P_STRING,
2331                 .p_class        = P_LOCAL,
2332                 .offset         = LOCAL_VAR(szPrintername),
2333                 .special        = NULL,
2334                 .enum_list      = NULL,
2335                 .flags          = FLAG_HIDE,
2336         },
2337         {
2338                 .label          = "use client driver",
2339                 .type           = P_BOOL,
2340                 .p_class        = P_LOCAL,
2341                 .offset         = LOCAL_VAR(bUseClientDriver),
2342                 .special        = NULL,
2343                 .enum_list      = NULL,
2344                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2345         },
2346         {
2347                 .label          = "default devmode",
2348                 .type           = P_BOOL,
2349                 .p_class        = P_LOCAL,
2350                 .offset         = LOCAL_VAR(bDefaultDevmode),
2351                 .special        = NULL,
2352                 .enum_list      = NULL,
2353                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2354         },
2355         {
2356                 .label          = "force printername",
2357                 .type           = P_BOOL,
2358                 .p_class        = P_LOCAL,
2359                 .offset         = LOCAL_VAR(bForcePrintername),
2360                 .special        = NULL,
2361                 .enum_list      = NULL,
2362                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2363         },
2364         {
2365                 .label          = "printjob username",
2366                 .type           = P_STRING,
2367                 .p_class        = P_LOCAL,
2368                 .offset         = LOCAL_VAR(szPrintjobUsername),
2369                 .special        = NULL,
2370                 .enum_list      = NULL,
2371                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2372         },
2373
2374         {N_("Filename Handling"), P_SEP, P_SEPARATOR},
2375
2376         {
2377                 .label          = "mangling method",
2378                 .type           = P_STRING,
2379                 .p_class        = P_GLOBAL,
2380                 .offset         = GLOBAL_VAR(szManglingMethod),
2381                 .special        = NULL,
2382                 .enum_list      = NULL,
2383                 .flags          = FLAG_ADVANCED,
2384         },
2385         {
2386                 .label          = "mangle prefix",
2387                 .type           = P_INTEGER,
2388                 .p_class        = P_GLOBAL,
2389                 .offset         = GLOBAL_VAR(mangle_prefix),
2390                 .special        = NULL,
2391                 .enum_list      = NULL,
2392                 .flags          = FLAG_ADVANCED,
2393         },
2394
2395         {
2396                 .label          = "default case",
2397                 .type           = P_ENUM,
2398                 .p_class        = P_LOCAL,
2399                 .offset         = LOCAL_VAR(iDefaultCase),
2400                 .special        = NULL,
2401                 .enum_list      = enum_case,
2402                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
2403         },
2404         {
2405                 .label          = "case sensitive",
2406                 .type           = P_ENUM,
2407                 .p_class        = P_LOCAL,
2408                 .offset         = LOCAL_VAR(iCaseSensitive),
2409                 .special        = NULL,
2410                 .enum_list      = enum_bool_auto,
2411                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2412         },
2413         {
2414                 .label          = "casesignames",
2415                 .type           = P_ENUM,
2416                 .p_class        = P_LOCAL,
2417                 .offset         = LOCAL_VAR(iCaseSensitive),
2418                 .special        = NULL,
2419                 .enum_list      = enum_bool_auto,
2420                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL | FLAG_HIDE,
2421         },
2422         {
2423                 .label          = "preserve case",
2424                 .type           = P_BOOL,
2425                 .p_class        = P_LOCAL,
2426                 .offset         = LOCAL_VAR(bCasePreserve),
2427                 .special        = NULL,
2428                 .enum_list      = NULL,
2429                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2430         },
2431         {
2432                 .label          = "short preserve case",
2433                 .type           = P_BOOL,
2434                 .p_class        = P_LOCAL,
2435                 .offset         = LOCAL_VAR(bShortCasePreserve),
2436                 .special        = NULL,
2437                 .enum_list      = NULL,
2438                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2439         },
2440         {
2441                 .label          = "mangling char",
2442                 .type           = P_CHAR,
2443                 .p_class        = P_LOCAL,
2444                 .offset         = LOCAL_VAR(magic_char),
2445                 .special        = NULL,
2446                 .enum_list      = NULL,
2447                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2448         },
2449         {
2450                 .label          = "hide dot files",
2451                 .type           = P_BOOL,
2452                 .p_class        = P_LOCAL,
2453                 .offset         = LOCAL_VAR(bHideDotFiles),
2454                 .special        = NULL,
2455                 .enum_list      = NULL,
2456                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2457         },
2458         {
2459                 .label          = "hide special files",
2460                 .type           = P_BOOL,
2461                 .p_class        = P_LOCAL,
2462                 .offset         = LOCAL_VAR(bHideSpecialFiles),
2463                 .special        = NULL,
2464                 .enum_list      = NULL,
2465                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2466         },
2467         {
2468                 .label          = "hide unreadable",
2469                 .type           = P_BOOL,
2470                 .p_class        = P_LOCAL,
2471                 .offset         = LOCAL_VAR(bHideUnReadable),
2472                 .special        = NULL,
2473                 .enum_list      = NULL,
2474                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2475         },
2476         {
2477                 .label          = "hide unwriteable files",
2478                 .type           = P_BOOL,
2479                 .p_class        = P_LOCAL,
2480                 .offset         = LOCAL_VAR(bHideUnWriteableFiles),
2481                 .special        = NULL,
2482                 .enum_list      = NULL,
2483                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2484         },
2485         {
2486                 .label          = "delete veto files",
2487                 .type           = P_BOOL,
2488                 .p_class        = P_LOCAL,
2489                 .offset         = LOCAL_VAR(bDeleteVetoFiles),
2490                 .special        = NULL,
2491                 .enum_list      = NULL,
2492                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2493         },
2494         {
2495                 .label          = "veto files",
2496                 .type           = P_STRING,
2497                 .p_class        = P_LOCAL,
2498                 .offset         = LOCAL_VAR(szVetoFiles),
2499                 .special        = NULL,
2500                 .enum_list      = NULL,
2501                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2502         },
2503         {
2504                 .label          = "hide files",
2505                 .type           = P_STRING,
2506                 .p_class        = P_LOCAL,
2507                 .offset         = LOCAL_VAR(szHideFiles),
2508                 .special        = NULL,
2509                 .enum_list      = NULL,
2510                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2511         },
2512         {
2513                 .label          = "veto oplock files",
2514                 .type           = P_STRING,
2515                 .p_class        = P_LOCAL,
2516                 .offset         = LOCAL_VAR(szVetoOplockFiles),
2517                 .special        = NULL,
2518                 .enum_list      = NULL,
2519                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2520         },
2521         {
2522                 .label          = "map archive",
2523                 .type           = P_BOOL,
2524                 .p_class        = P_LOCAL,
2525                 .offset         = LOCAL_VAR(bMap_archive),
2526                 .special        = NULL,
2527                 .enum_list      = NULL,
2528                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2529         },
2530         {
2531                 .label          = "map hidden",
2532                 .type           = P_BOOL,
2533                 .p_class        = P_LOCAL,
2534                 .offset         = LOCAL_VAR(bMap_hidden),
2535                 .special        = NULL,
2536                 .enum_list      = NULL,
2537                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2538         },
2539         {
2540                 .label          = "map system",
2541                 .type           = P_BOOL,
2542                 .p_class        = P_LOCAL,
2543                 .offset         = LOCAL_VAR(bMap_system),
2544                 .special        = NULL,
2545                 .enum_list      = NULL,
2546                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2547         },
2548         {
2549                 .label          = "map readonly",
2550                 .type           = P_ENUM,
2551                 .p_class        = P_LOCAL,
2552                 .offset         = LOCAL_VAR(iMap_readonly),
2553                 .special        = NULL,
2554                 .enum_list      = enum_map_readonly,
2555                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2556         },
2557         {
2558                 .label          = "mangled names",
2559                 .type           = P_BOOL,
2560                 .p_class        = P_LOCAL,
2561                 .offset         = LOCAL_VAR(bMangledNames),
2562                 .special        = NULL,
2563                 .enum_list      = NULL,
2564                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2565         },
2566         {
2567                 .label          = "max stat cache size",
2568                 .type           = P_INTEGER,
2569                 .p_class        = P_GLOBAL,
2570                 .offset         = GLOBAL_VAR(iMaxStatCacheSize),
2571                 .special        = NULL,
2572                 .enum_list      = NULL,
2573                 .flags          = FLAG_ADVANCED,
2574         },
2575         {
2576                 .label          = "stat cache",
2577                 .type           = P_BOOL,
2578                 .p_class        = P_GLOBAL,
2579                 .offset         = GLOBAL_VAR(bStatCache),
2580                 .special        = NULL,
2581                 .enum_list      = NULL,
2582                 .flags          = FLAG_ADVANCED,
2583         },
2584         {
2585                 .label          = "store dos attributes",
2586                 .type           = P_BOOL,
2587                 .p_class        = P_LOCAL,
2588                 .offset         = LOCAL_VAR(bStoreDosAttributes),
2589                 .special        = NULL,
2590                 .enum_list      = NULL,
2591                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2592         },
2593         {
2594                 .label          = "dmapi support",
2595                 .type           = P_BOOL,
2596                 .p_class        = P_LOCAL,
2597                 .offset         = LOCAL_VAR(bDmapiSupport),
2598                 .special        = NULL,
2599                 .enum_list      = NULL,
2600                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2601         },
2602
2603
2604         {N_("Domain Options"), P_SEP, P_SEPARATOR},
2605
2606         {
2607                 .label          = "machine password timeout",
2608                 .type           = P_INTEGER,
2609                 .p_class        = P_GLOBAL,
2610                 .offset         = GLOBAL_VAR(machine_password_timeout),
2611                 .special        = NULL,
2612                 .enum_list      = NULL,
2613                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
2614         },
2615
2616         {N_("Logon Options"), P_SEP, P_SEPARATOR},
2617
2618         {
2619                 .label          = "add user script",
2620                 .type           = P_STRING,
2621                 .p_class        = P_GLOBAL,
2622                 .offset         = GLOBAL_VAR(szAddUserScript),
2623                 .special        = NULL,
2624                 .enum_list      = NULL,
2625                 .flags          = FLAG_ADVANCED,
2626         },
2627         {
2628                 .label          = "rename user script",
2629                 .type           = P_STRING,
2630                 .p_class        = P_GLOBAL,
2631                 .offset         = GLOBAL_VAR(szRenameUserScript),
2632                 .special        = NULL,
2633                 .enum_list      = NULL,
2634                 .flags          = FLAG_ADVANCED,
2635         },
2636         {
2637                 .label          = "delete user script",
2638                 .type           = P_STRING,
2639                 .p_class        = P_GLOBAL,
2640                 .offset         = GLOBAL_VAR(szDelUserScript),
2641                 .special        = NULL,
2642                 .enum_list      = NULL,
2643                 .flags          = FLAG_ADVANCED,
2644         },
2645         {
2646                 .label          = "add group script",
2647                 .type           = P_STRING,
2648                 .p_class        = P_GLOBAL,
2649                 .offset         = GLOBAL_VAR(szAddGroupScript),
2650                 .special        = NULL,
2651                 .enum_list      = NULL,
2652                 .flags          = FLAG_ADVANCED,
2653         },
2654         {
2655                 .label          = "delete group script",
2656                 .type           = P_STRING,
2657                 .p_class        = P_GLOBAL,
2658                 .offset         = GLOBAL_VAR(szDelGroupScript),
2659                 .special        = NULL,
2660                 .enum_list      = NULL,
2661                 .flags          = FLAG_ADVANCED,
2662         },
2663         {
2664                 .label          = "add user to group script",
2665                 .type           = P_STRING,
2666                 .p_class        = P_GLOBAL,
2667                 .offset         = GLOBAL_VAR(szAddUserToGroupScript),
2668                 .special        = NULL,
2669                 .enum_list      = NULL,
2670                 .flags          = FLAG_ADVANCED,
2671         },
2672         {
2673                 .label          = "delete user from group script",
2674                 .type           = P_STRING,
2675                 .p_class        = P_GLOBAL,
2676                 .offset         = GLOBAL_VAR(szDelUserFromGroupScript),
2677                 .special        = NULL,
2678                 .enum_list      = NULL,
2679                 .flags          = FLAG_ADVANCED,
2680         },
2681         {
2682                 .label          = "set primary group script",
2683                 .type           = P_STRING,
2684                 .p_class        = P_GLOBAL,
2685                 .offset         = GLOBAL_VAR(szSetPrimaryGroupScript),
2686                 .special        = NULL,
2687                 .enum_list      = NULL,
2688                 .flags          = FLAG_ADVANCED,
2689         },
2690         {
2691                 .label          = "add machine script",
2692                 .type           = P_STRING,
2693                 .p_class        = P_GLOBAL,
2694                 .offset         = GLOBAL_VAR(szAddMachineScript),
2695                 .special        = NULL,
2696                 .enum_list      = NULL,
2697                 .flags          = FLAG_ADVANCED,
2698         },
2699         {
2700                 .label          = "shutdown script",
2701                 .type           = P_STRING,
2702                 .p_class        = P_GLOBAL,
2703                 .offset         = GLOBAL_VAR(szShutdownScript),
2704                 .special        = NULL,
2705                 .enum_list      = NULL,
2706                 .flags          = FLAG_ADVANCED,
2707         },
2708         {
2709                 .label          = "abort shutdown script",
2710                 .type           = P_STRING,
2711                 .p_class        = P_GLOBAL,
2712                 .offset         = GLOBAL_VAR(szAbortShutdownScript),
2713                 .special        = NULL,
2714                 .enum_list      = NULL,
2715                 .flags          = FLAG_ADVANCED,
2716         },
2717         {
2718                 .label          = "username map script",
2719                 .type           = P_STRING,
2720                 .p_class        = P_GLOBAL,
2721                 .offset         = GLOBAL_VAR(szUsernameMapScript),
2722                 .special        = NULL,
2723                 .enum_list      = NULL,
2724                 .flags          = FLAG_ADVANCED,
2725         },
2726         {
2727                 .label          = "username map cache time",
2728                 .type           = P_INTEGER,
2729                 .p_class        = P_GLOBAL,
2730                 .offset         = GLOBAL_VAR(iUsernameMapCacheTime),
2731                 .special        = NULL,
2732                 .enum_list      = NULL,
2733                 .flags          = FLAG_ADVANCED,
2734         },
2735         {
2736                 .label          = "logon script",
2737                 .type           = P_STRING,
2738                 .p_class        = P_GLOBAL,
2739                 .offset         = GLOBAL_VAR(szLogonScript),
2740                 .special        = NULL,
2741                 .enum_list      = NULL,
2742                 .flags          = FLAG_ADVANCED,
2743         },
2744         {
2745                 .label          = "logon path",
2746                 .type           = P_STRING,
2747                 .p_class        = P_GLOBAL,
2748                 .offset         = GLOBAL_VAR(szLogonPath),
2749                 .special        = NULL,
2750                 .enum_list      = NULL,
2751                 .flags          = FLAG_ADVANCED,
2752         },
2753         {
2754                 .label          = "logon drive",
2755                 .type           = P_STRING,
2756                 .p_class        = P_GLOBAL,
2757                 .offset         = GLOBAL_VAR(szLogonDrive),
2758                 .special        = NULL,
2759                 .enum_list      = NULL,
2760                 .flags          = FLAG_ADVANCED,
2761         },
2762         {
2763                 .label          = "logon home",
2764                 .type           = P_STRING,
2765                 .p_class        = P_GLOBAL,
2766                 .offset         = GLOBAL_VAR(szLogonHome),
2767                 .special        = NULL,
2768                 .enum_list      = NULL,
2769                 .flags          = FLAG_ADVANCED,
2770         },
2771         {
2772                 .label          = "domain logons",
2773                 .type           = P_BOOL,
2774                 .p_class        = P_GLOBAL,
2775                 .offset         = GLOBAL_VAR(bDomainLogons),
2776                 .special        = NULL,
2777                 .enum_list      = NULL,
2778                 .flags          = FLAG_ADVANCED,
2779         },
2780
2781         {
2782                 .label          = "init logon delayed hosts",
2783                 .type           = P_LIST,
2784                 .p_class        = P_GLOBAL,
2785                 .offset         = GLOBAL_VAR(szInitLogonDelayedHosts),
2786                 .special        = NULL,
2787                 .enum_list      = NULL,
2788                 .flags          = FLAG_ADVANCED,
2789         },
2790
2791         {
2792                 .label          = "init logon delay",
2793                 .type           = P_INTEGER,
2794                 .p_class        = P_GLOBAL,
2795                 .offset         = GLOBAL_VAR(InitLogonDelay),
2796                 .special        = NULL,
2797                 .enum_list      = NULL,
2798                 .flags          = FLAG_ADVANCED,
2799
2800         },
2801
2802         {N_("Browse Options"), P_SEP, P_SEPARATOR},
2803
2804         {
2805                 .label          = "os level",
2806                 .type           = P_INTEGER,
2807                 .p_class        = P_GLOBAL,
2808                 .offset         = GLOBAL_VAR(os_level),
2809                 .special        = NULL,
2810                 .enum_list      = NULL,
2811                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2812         },
2813         {
2814                 .label          = "lm announce",
2815                 .type           = P_ENUM,
2816                 .p_class        = P_GLOBAL,
2817                 .offset         = GLOBAL_VAR(lm_announce),
2818                 .special        = NULL,
2819                 .enum_list      = enum_bool_auto,
2820                 .flags          = FLAG_ADVANCED,
2821         },
2822         {
2823                 .label          = "lm interval",
2824                 .type           = P_INTEGER,
2825                 .p_class        = P_GLOBAL,
2826                 .offset         = GLOBAL_VAR(lm_interval),
2827                 .special        = NULL,
2828                 .enum_list      = NULL,
2829                 .flags          = FLAG_ADVANCED,
2830         },
2831         {
2832                 .label          = "preferred master",
2833                 .type           = P_ENUM,
2834                 .p_class        = P_GLOBAL,
2835                 .offset         = GLOBAL_VAR(iPreferredMaster),
2836                 .special        = NULL,
2837                 .enum_list      = enum_bool_auto,
2838                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2839         },
2840         {
2841                 .label          = "prefered master",
2842                 .type           = P_ENUM,
2843                 .p_class        = P_GLOBAL,
2844                 .offset         = GLOBAL_VAR(iPreferredMaster),
2845                 .special        = NULL,
2846                 .enum_list      = enum_bool_auto,
2847                 .flags          = FLAG_HIDE,
2848         },
2849         {
2850                 .label          = "local master",
2851                 .type           = P_BOOL,
2852                 .p_class        = P_GLOBAL,
2853                 .offset         = GLOBAL_VAR(bLocalMaster),
2854                 .special        = NULL,
2855                 .enum_list      = NULL,
2856                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2857         },
2858         {
2859                 .label          = "domain master",
2860                 .type           = P_ENUM,
2861                 .p_class        = P_GLOBAL,
2862                 .offset         = GLOBAL_VAR(domain_master),
2863                 .special        = NULL,
2864                 .enum_list      = enum_bool_auto,
2865                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2866         },
2867         {
2868                 .label          = "browse list",
2869                 .type           = P_BOOL,
2870                 .p_class        = P_GLOBAL,
2871                 .offset         = GLOBAL_VAR(bBrowseList),
2872                 .special        = NULL,
2873                 .enum_list      = NULL,
2874                 .flags          = FLAG_ADVANCED,
2875         },
2876         {
2877                 .label          = "browseable",
2878                 .type           = P_BOOL,
2879                 .p_class        = P_LOCAL,
2880                 .offset         = LOCAL_VAR(bBrowseable),
2881                 .special        = NULL,
2882                 .enum_list      = NULL,
2883                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
2884         },
2885         {
2886                 .label          = "browsable",
2887                 .type           = P_BOOL,
2888                 .p_class        = P_LOCAL,
2889                 .offset         = LOCAL_VAR(bBrowseable),
2890                 .special        = NULL,
2891                 .enum_list      = NULL,
2892                 .flags          = FLAG_HIDE,
2893         },
2894         {
2895                 .label          = "access based share enum",
2896                 .type           = P_BOOL,
2897                 .p_class        = P_LOCAL,
2898                 .offset         = LOCAL_VAR(bAccessBasedShareEnum),
2899                 .special        = NULL,
2900                 .enum_list      = NULL,
2901                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE
2902         },
2903         {
2904                 .label          = "enhanced browsing",
2905                 .type           = P_BOOL,
2906                 .p_class        = P_GLOBAL,
2907                 .offset         = GLOBAL_VAR(enhanced_browsing),
2908                 .special        = NULL,
2909                 .enum_list      = NULL,
2910                 .flags          = FLAG_ADVANCED,
2911         },
2912
2913         {N_("WINS Options"), P_SEP, P_SEPARATOR},
2914
2915         {
2916                 .label          = "dns proxy",
2917                 .type           = P_BOOL,
2918                 .p_class        = P_GLOBAL,
2919                 .offset         = GLOBAL_VAR(bWINSdnsProxy),
2920                 .special        = NULL,
2921                 .enum_list      = NULL,
2922                 .flags          = FLAG_ADVANCED,
2923         },
2924         {
2925                 .label          = "wins proxy",
2926                 .type           = P_BOOL,
2927                 .p_class        = P_GLOBAL,
2928                 .offset         = GLOBAL_VAR(bWINSproxy),
2929                 .special        = NULL,
2930                 .enum_list      = NULL,
2931                 .flags          = FLAG_ADVANCED,
2932         },
2933         {
2934                 .label          = "wins server",
2935                 .type           = P_LIST,
2936                 .p_class        = P_GLOBAL,
2937                 .offset         = GLOBAL_VAR(szWINSservers),
2938                 .special        = NULL,
2939                 .enum_list      = NULL,
2940                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2941         },
2942         {
2943                 .label          = "wins support",
2944                 .type           = P_BOOL,
2945                 .p_class        = P_GLOBAL,
2946                 .offset         = GLOBAL_VAR(bWINSsupport),
2947                 .special        = NULL,
2948                 .enum_list      = NULL,
2949                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2950         },
2951         {
2952                 .label          = "wins hook",
2953                 .type           = P_STRING,
2954                 .p_class        = P_GLOBAL,
2955                 .offset         = GLOBAL_VAR(szWINSHook),
2956                 .special        = NULL,
2957                 .enum_list      = NULL,
2958                 .flags          = FLAG_ADVANCED,
2959         },
2960
2961         {N_("Locking Options"), P_SEP, P_SEPARATOR},
2962
2963         {
2964                 .label          = "blocking locks",
2965                 .type           = P_BOOL,
2966                 .p_class        = P_LOCAL,
2967                 .offset         = LOCAL_VAR(bBlockingLocks),
2968                 .special        = NULL,
2969                 .enum_list      = NULL,
2970                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2971         },
2972         {
2973                 .label          = "csc policy",
2974                 .type           = P_ENUM,
2975                 .p_class        = P_LOCAL,
2976                 .offset         = LOCAL_VAR(iCSCPolicy),
2977                 .special        = NULL,
2978                 .enum_list      = enum_csc_policy,
2979                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2980         },
2981         {
2982                 .label          = "fake oplocks",
2983                 .type           = P_BOOL,
2984                 .p_class        = P_LOCAL,
2985                 .offset         = LOCAL_VAR(bFakeOplocks),
2986                 .special        = NULL,
2987                 .enum_list      = NULL,
2988                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
2989         },
2990         {
2991                 .label          = "kernel oplocks",
2992                 .type           = P_BOOL,
2993                 .p_class        = P_LOCAL,
2994                 .offset         = LOCAL_VAR(bKernelOplocks),
2995                 .special        = NULL,
2996                 .enum_list      = NULL,
2997                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2998         },
2999         {
3000                 .label          = "locking",
3001                 .type           = P_BOOL,
3002                 .p_class        = P_LOCAL,
3003                 .offset         = LOCAL_VAR(bLocking),
3004                 .special        = NULL,
3005                 .enum_list      = NULL,
3006                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3007         },
3008         {
3009                 .label          = "lock spin time",
3010                 .type           = P_INTEGER,
3011                 .p_class        = P_GLOBAL,
3012                 .offset         = GLOBAL_VAR(iLockSpinTime),
3013                 .special        = NULL,
3014                 .enum_list      = NULL,
3015                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3016         },
3017         {
3018                 .label          = "oplocks",
3019                 .type           = P_BOOL,
3020                 .p_class        = P_LOCAL,
3021                 .offset         = LOCAL_VAR(bOpLocks),
3022                 .special        = NULL,
3023                 .enum_list      = NULL,
3024                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3025         },
3026         {
3027                 .label          = "level2 oplocks",
3028                 .type           = P_BOOL,
3029                 .p_class        = P_LOCAL,
3030                 .offset         = LOCAL_VAR(bLevel2OpLocks),
3031                 .special        = NULL,
3032                 .enum_list      = NULL,
3033                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3034         },
3035         {
3036                 .label          = "oplock break wait time",
3037                 .type           = P_INTEGER,
3038                 .p_class        = P_GLOBAL,
3039                 .offset         = GLOBAL_VAR(oplock_break_wait_time),
3040                 .special        = NULL,
3041                 .enum_list      = NULL,
3042                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3043         },
3044         {
3045                 .label          = "oplock contention limit",
3046                 .type           = P_INTEGER,
3047                 .p_class        = P_LOCAL,
3048                 .offset         = LOCAL_VAR(iOplockContentionLimit),
3049                 .special        = NULL,
3050                 .enum_list      = NULL,
3051                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3052         },
3053         {
3054                 .label          = "posix locking",
3055                 .type           = P_BOOL,
3056                 .p_class        = P_LOCAL,
3057                 .offset         = LOCAL_VAR(bPosixLocking),
3058                 .special        = NULL,
3059                 .enum_list      = NULL,
3060                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3061         },
3062         {
3063                 .label          = "strict locking",
3064                 .type           = P_ENUM,
3065                 .p_class        = P_LOCAL,
3066                 .offset         = LOCAL_VAR(iStrictLocking),
3067                 .special        = NULL,
3068                 .enum_list      = enum_bool_auto,
3069                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3070         },
3071
3072         {N_("Ldap Options"), P_SEP, P_SEPARATOR},
3073
3074         {
3075                 .label          = "ldap admin dn",
3076                 .type           = P_STRING,
3077                 .p_class        = P_GLOBAL,
3078                 .offset         = GLOBAL_VAR(szLdapAdminDn),
3079                 .special        = NULL,
3080                 .enum_list      = NULL,
3081                 .flags          = FLAG_ADVANCED,
3082         },
3083         {
3084                 .label          = "ldap delete dn",
3085                 .type           = P_BOOL,
3086                 .p_class        = P_GLOBAL,
3087                 .offset         = GLOBAL_VAR(ldap_delete_dn),
3088                 .special        = NULL,
3089                 .enum_list      = NULL,
3090                 .flags          = FLAG_ADVANCED,
3091         },
3092         {
3093                 .label          = "ldap group suffix",
3094                 .type           = P_STRING,
3095                 .p_class        = P_GLOBAL,
3096                 .offset         = GLOBAL_VAR(szLdapGroupSuffix),
3097                 .special        = NULL,
3098                 .enum_list      = NULL,
3099                 .flags          = FLAG_ADVANCED,
3100         },
3101         {
3102                 .label          = "ldap idmap suffix",
3103                 .type           = P_STRING,
3104                 .p_class        = P_GLOBAL,
3105                 .offset         = GLOBAL_VAR(szLdapIdmapSuffix),
3106                 .special        = NULL,
3107                 .enum_list      = NULL,
3108                 .flags          = FLAG_ADVANCED,
3109         },
3110         {
3111                 .label          = "ldap machine suffix",
3112                 .type           = P_STRING,
3113                 .p_class        = P_GLOBAL,
3114                 .offset         = GLOBAL_VAR(szLdapMachineSuffix),
3115                 .special        = NULL,
3116                 .enum_list      = NULL,
3117                 .flags          = FLAG_ADVANCED,
3118         },
3119         {
3120                 .label          = "ldap passwd sync",
3121                 .type           = P_ENUM,
3122                 .p_class        = P_GLOBAL,
3123                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
3124                 .special        = NULL,
3125                 .enum_list      = enum_ldap_passwd_sync,
3126                 .flags          = FLAG_ADVANCED,
3127         },
3128         {
3129                 .label          = "ldap password sync",
3130                 .type           = P_ENUM,
3131                 .p_class        = P_GLOBAL,
3132                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
3133                 .special        = NULL,
3134                 .enum_list      = enum_ldap_passwd_sync,
3135                 .flags          = FLAG_HIDE,
3136         },
3137         {
3138                 .label          = "ldap replication sleep",
3139                 .type           = P_INTEGER,
3140                 .p_class        = P_GLOBAL,
3141                 .offset         = GLOBAL_VAR(ldap_replication_sleep),
3142                 .special        = NULL,
3143                 .enum_list      = NULL,
3144                 .flags          = FLAG_ADVANCED,
3145         },
3146         {
3147                 .label          = "ldap suffix",
3148                 .type           = P_STRING,
3149                 .p_class        = P_GLOBAL,
3150                 .offset         = GLOBAL_VAR(szLdapSuffix),
3151                 .special        = NULL,
3152                 .enum_list      = NULL,
3153                 .flags          = FLAG_ADVANCED,
3154         },
3155         {
3156                 .label          = "ldap ssl",
3157                 .type           = P_ENUM,
3158                 .p_class        = P_GLOBAL,
3159                 .offset         = GLOBAL_VAR(ldap_ssl),
3160                 .special        = NULL,
3161                 .enum_list      = enum_ldap_ssl,
3162                 .flags          = FLAG_ADVANCED,
3163         },
3164         {
3165                 .label          = "ldap ssl ads",
3166                 .type           = P_BOOL,
3167                 .p_class        = P_GLOBAL,
3168                 .offset         = GLOBAL_VAR(ldap_ssl_ads),
3169                 .special        = NULL,
3170                 .enum_list      = NULL,
3171                 .flags          = FLAG_ADVANCED,
3172         },
3173         {
3174                 .label          = "ldap deref",
3175                 .type           = P_ENUM,
3176                 .p_class        = P_GLOBAL,
3177                 .offset         = GLOBAL_VAR(ldap_deref),
3178                 .special        = NULL,
3179                 .enum_list      = enum_ldap_deref,
3180                 .flags          = FLAG_ADVANCED,
3181         },
3182         {
3183                 .label          = "ldap follow referral",
3184                 .type           = P_ENUM,
3185                 .p_class        = P_GLOBAL,
3186                 .offset         = GLOBAL_VAR(ldap_follow_referral),
3187                 .special        = NULL,
3188                 .enum_list      = enum_bool_auto,
3189                 .flags          = FLAG_ADVANCED,
3190         },
3191         {
3192                 .label          = "ldap timeout",
3193                 .type           = P_INTEGER,
3194                 .p_class        = P_GLOBAL,
3195                 .offset         = GLOBAL_VAR(ldap_timeout),
3196                 .special        = NULL,
3197                 .enum_list      = NULL,
3198                 .flags          = FLAG_ADVANCED,
3199         },
3200         {
3201                 .label          = "ldap connection timeout",
3202                 .type           = P_INTEGER,
3203                 .p_class        = P_GLOBAL,
3204                 .offset         = GLOBAL_VAR(ldap_connection_timeout),
3205                 .special        = NULL,
3206                 .enum_list      = NULL,
3207                 .flags          = FLAG_ADVANCED,
3208         },
3209         {
3210                 .label          = "ldap page size",
3211                 .type           = P_INTEGER,
3212                 .p_class        = P_GLOBAL,
3213                 .offset         = GLOBAL_VAR(ldap_page_size),
3214                 .special        = NULL,
3215                 .enum_list      = NULL,
3216                 .flags          = FLAG_ADVANCED,
3217         },
3218         {
3219                 .label          = "ldap user suffix",
3220                 .type           = P_STRING,
3221                 .p_class        = P_GLOBAL,
3222                 .offset         = GLOBAL_VAR(szLdapUserSuffix),
3223                 .special        = NULL,
3224                 .enum_list      = NULL,
3225                 .flags          = FLAG_ADVANCED,
3226         },
3227         {
3228                 .label          = "ldap debug level",
3229                 .type           = P_INTEGER,
3230                 .p_class        = P_GLOBAL,
3231                 .offset         = GLOBAL_VAR(ldap_debug_level),
3232                 .special        = handle_ldap_debug_level,
3233                 .enum_list      = NULL,
3234                 .flags          = FLAG_ADVANCED,
3235         },
3236         {
3237                 .label          = "ldap debug threshold",
3238                 .type           = P_INTEGER,
3239                 .p_class        = P_GLOBAL,
3240                 .offset         = GLOBAL_VAR(ldap_debug_threshold),
3241                 .special        = NULL,
3242                 .enum_list      = NULL,
3243                 .flags          = FLAG_ADVANCED,
3244         },
3245
3246         {N_("EventLog Options"), P_SEP, P_SEPARATOR},
3247
3248         {
3249                 .label          = "eventlog list",
3250                 .type           = P_LIST,
3251                 .p_class        = P_GLOBAL,
3252                 .offset         = GLOBAL_VAR(szEventLogs),
3253                 .special        = NULL,
3254                 .enum_list      = NULL,
3255                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
3256         },
3257
3258         {N_("Miscellaneous Options"), P_SEP, P_SEPARATOR},
3259
3260         {
3261                 .label          = "add share command",
3262                 .type           = P_STRING,
3263                 .p_class        = P_GLOBAL,
3264                 .offset         = GLOBAL_VAR(szAddShareCommand),
3265                 .special        = NULL,
3266                 .enum_list      = NULL,
3267                 .flags          = FLAG_ADVANCED,
3268         },
3269         {
3270                 .label          = "change share command",
3271                 .type           = P_STRING,
3272                 .p_class        = P_GLOBAL,
3273                 .offset         = GLOBAL_VAR(szChangeShareCommand),
3274                 .special        = NULL,
3275                 .enum_list      = NULL,
3276                 .flags          = FLAG_ADVANCED,
3277         },
3278         {
3279                 .label          = "delete share command",
3280                 .type           = P_STRING,
3281                 .p_class        = P_GLOBAL,
3282                 .offset         = GLOBAL_VAR(szDeleteShareCommand),
3283                 .special        = NULL,
3284                 .enum_list      = NULL,
3285                 .flags          = FLAG_ADVANCED,
3286         },
3287         {
3288                 .label          = "config file",
3289                 .type           = P_STRING,
3290                 .p_class        = P_GLOBAL,
3291                 .offset         = GLOBAL_VAR(szConfigFile),
3292                 .special        = NULL,
3293                 .enum_list      = NULL,
3294                 .flags          = FLAG_HIDE|FLAG_META,
3295         },
3296         {
3297                 .label          = "preload",
3298                 .type           = P_STRING,
3299                 .p_class        = P_GLOBAL,
3300                 .offset         = GLOBAL_VAR(szAutoServices),
3301                 .special        = NULL,
3302                 .enum_list      = NULL,
3303                 .flags          = FLAG_ADVANCED,
3304         },
3305         {
3306                 .label          = "auto services",
3307                 .type           = P_STRING,
3308                 .p_class        = P_GLOBAL,
3309                 .offset         = GLOBAL_VAR(szAutoServices),
3310                 .special        = NULL,
3311                 .enum_list      = NULL,
3312                 .flags          = FLAG_ADVANCED,
3313         },
3314         {
3315                 .label          = "lock directory",
3316                 .type           = P_STRING,
3317                 .p_class        = P_GLOBAL,
3318                 .offset         = GLOBAL_VAR(szLockDir),
3319                 .special        = NULL,
3320                 .enum_list      = NULL,
3321                 .flags          = FLAG_ADVANCED,
3322         },
3323         {
3324                 .label          = "lock dir",
3325                 .type           = P_STRING,
3326                 .p_class        = P_GLOBAL,
3327                 .offset         = GLOBAL_VAR(szLockDir),
3328                 .special        = NULL,
3329                 .enum_list      = NULL,
3330                 .flags          = FLAG_HIDE,
3331         },
3332         {
3333                 .label          = "state directory",
3334                 .type           = P_STRING,
3335                 .p_class        = P_GLOBAL,
3336                 .offset         = GLOBAL_VAR(szStateDir),
3337                 .special        = NULL,
3338                 .enum_list      = NULL,
3339                 .flags          = FLAG_ADVANCED,
3340         },
3341         {
3342                 .label          = "cache directory",
3343                 .type           = P_STRING,
3344                 .p_class        = P_GLOBAL,
3345                 .offset         = GLOBAL_VAR(szCacheDir),
3346                 .special        = NULL,
3347                 .enum_list      = NULL,
3348                 .flags          = FLAG_ADVANCED,
3349         },
3350         {
3351                 .label          = "pid directory",
3352                 .type           = P_STRING,
3353                 .p_class        = P_GLOBAL,
3354                 .offset         = GLOBAL_VAR(szPidDir),
3355                 .special        = NULL,
3356                 .enum_list      = NULL,
3357                 .flags          = FLAG_ADVANCED,
3358         },
3359         {
3360                 .label          = "ntp signd socket directory",
3361                 .type           = P_STRING,
3362                 .p_class        = P_GLOBAL,
3363                 .offset         = GLOBAL_VAR(szNTPSignDSocketDirectory),
3364                 .special        = NULL,
3365                 .enum_list      = NULL,
3366                 .flags          = FLAG_ADVANCED,
3367         },
3368
3369 #ifdef WITH_UTMP
3370         {
3371                 .label          = "utmp directory",
3372                 .type           = P_STRING,
3373                 .p_class        = P_GLOBAL,
3374                 .offset         = GLOBAL_VAR(szUtmpDir),
3375                 .special        = NULL,
3376                 .enum_list      = NULL,
3377                 .flags          = FLAG_ADVANCED,
3378         },
3379         {
3380                 .label          = "wtmp directory",
3381                 .type           = P_STRING,
3382                 .p_class        = P_GLOBAL,
3383                 .offset         = GLOBAL_VAR(szWtmpDir),
3384                 .special        = NULL,
3385                 .enum_list      = NULL,
3386                 .flags          = FLAG_ADVANCED,
3387         },
3388         {
3389                 .label          = "utmp",
3390                 .type           = P_BOOL,
3391                 .p_class        = P_GLOBAL,
3392                 .offset         = GLOBAL_VAR(bUtmp),
3393                 .special        = NULL,
3394                 .enum_list      = NULL,
3395                 .flags          = FLAG_ADVANCED,
3396         },
3397 #endif
3398         {
3399                 .label          = "default service",
3400                 .type           = P_STRING,
3401                 .p_class        = P_GLOBAL,
3402                 .offset         = GLOBAL_VAR(szDefaultService),
3403                 .special        = NULL,
3404                 .enum_list      = NULL,
3405                 .flags          = FLAG_ADVANCED,
3406         },
3407         {
3408                 .label          = "default",
3409                 .type           = P_STRING,
3410                 .p_class        = P_GLOBAL,
3411                 .offset         = GLOBAL_VAR(szDefaultService),
3412                 .special        = NULL,
3413                 .enum_list      = NULL,
3414                 .flags          = FLAG_ADVANCED,
3415         },
3416         {
3417                 .label          = "message command",
3418                 .type           = P_STRING,
3419                 .p_class        = P_GLOBAL,
3420                 .offset         = GLOBAL_VAR(szMsgCommand),
3421                 .special        = NULL,
3422                 .enum_list      = NULL,
3423                 .flags          = FLAG_ADVANCED,
3424         },
3425         {
3426                 .label          = "dfree cache time",
3427                 .type           = P_INTEGER,
3428                 .p_class        = P_LOCAL,
3429                 .offset         = LOCAL_VAR(iDfreeCacheTime),
3430                 .special        = NULL,
3431                 .enum_list      = NULL,
3432                 .flags          = FLAG_ADVANCED,
3433         },
3434         {
3435                 .label          = "dfree command",
3436                 .type           = P_STRING,
3437                 .p_class        = P_LOCAL,
3438                 .offset         = LOCAL_VAR(szDfree),
3439                 .special        = NULL,
3440                 .enum_list      = NULL,
3441                 .flags          = FLAG_ADVANCED,
3442         },
3443         {
3444                 .label          = "get quota command",
3445                 .type           = P_STRING,
3446                 .p_class        = P_GLOBAL,
3447                 .offset         = GLOBAL_VAR(szGetQuota),
3448                 .special        = NULL,
3449                 .enum_list      = NULL,
3450                 .flags          = FLAG_ADVANCED,
3451         },
3452         {
3453                 .label          = "set quota command",
3454                 .type           = P_STRING,
3455                 .p_class        = P_GLOBAL,
3456                 .offset         = GLOBAL_VAR(szSetQuota),
3457                 .special        = NULL,
3458                 .enum_list      = NULL,
3459                 .flags          = FLAG_ADVANCED,
3460         },
3461         {
3462                 .label          = "remote announce",
3463                 .type           = P_STRING,
3464                 .p_class        = P_GLOBAL,
3465                 .offset         = GLOBAL_VAR(szRemoteAnnounce),
3466                 .special        = NULL,
3467                 .enum_list      = NULL,
3468                 .flags          = FLAG_ADVANCED,
3469         },
3470         {
3471                 .label          = "remote browse sync",
3472                 .type           = P_STRING,
3473                 .p_class        = P_GLOBAL,
3474                 .offset         = GLOBAL_VAR(szRemoteBrowseSync),
3475                 .special        = NULL,
3476                 .enum_list      = NULL,
3477                 .flags          = FLAG_ADVANCED,
3478         },
3479         {
3480                 .label          = "socket address",
3481                 .type           = P_STRING,
3482                 .p_class        = P_GLOBAL,
3483                 .offset         = GLOBAL_VAR(szSocketAddress),
3484                 .special        = NULL,
3485                 .enum_list      = NULL,
3486                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
3487         },
3488         {
3489                 .label          = "nmbd bind explicit broadcast",
3490                 .type           = P_BOOL,
3491                 .p_class        = P_GLOBAL,
3492                 .offset         = GLOBAL_VAR(bNmbdBindExplicitBroadcast),
3493                 .special        = NULL,
3494                 .enum_list      = NULL,
3495                 .flags          = FLAG_ADVANCED,
3496         },
3497         {
3498                 .label          = "homedir map",
3499                 .type           = P_STRING,
3500                 .p_class        = P_GLOBAL,
3501                 .offset         = GLOBAL_VAR(szNISHomeMapName),
3502                 .special        = NULL,
3503                 .enum_list      = NULL,
3504                 .flags          = FLAG_ADVANCED,
3505         },
3506         {
3507                 .label          = "afs username map",
3508                 .type           = P_STRING,
3509                 .p_class        = P_GLOBAL,
3510                 .offset         = GLOBAL_VAR(szAfsUsernameMap),
3511                 .special        = NULL,
3512                 .enum_list      = NULL,
3513                 .flags          = FLAG_ADVANCED,
3514         },
3515         {
3516                 .label          = "afs token lifetime",
3517                 .type           = P_INTEGER,
3518                 .p_class        = P_GLOBAL,
3519                 .offset         = GLOBAL_VAR(iAfsTokenLifetime),
3520                 .special        = NULL,
3521                 .enum_list      = NULL,
3522                 .flags          = FLAG_ADVANCED,
3523         },
3524         {
3525                 .label          = "log nt token command",
3526                 .type           = P_STRING,
3527                 .p_class        = P_GLOBAL,
3528                 .offset         = GLOBAL_VAR(szLogNtTokenCommand),
3529                 .special        = NULL,
3530                 .enum_list      = NULL,
3531                 .flags          = FLAG_ADVANCED,
3532         },
3533         {
3534                 .label          = "NIS homedir",
3535                 .type           = P_BOOL,
3536                 .p_class        = P_GLOBAL,
3537                 .offset         = GLOBAL_VAR(bNISHomeMap),
3538                 .special        = NULL,
3539                 .enum_list      = NULL,
3540                 .flags          = FLAG_ADVANCED,
3541         },
3542         {
3543                 .label          = "-valid",
3544                 .type           = P_BOOL,
3545                 .p_class        = P_LOCAL,
3546                 .offset         = LOCAL_VAR(valid),
3547                 .special        = NULL,
3548                 .enum_list      = NULL,
3549                 .flags          = FLAG_HIDE,
3550         },
3551         {
3552                 .label          = "copy",
3553                 .type           = P_STRING,
3554                 .p_class        = P_LOCAL,
3555                 .offset         = LOCAL_VAR(szCopy),
3556                 .special        = handle_copy,
3557                 .enum_list      = NULL,
3558                 .flags          = FLAG_HIDE,
3559         },
3560         {
3561                 .label          = "include",
3562                 .type           = P_STRING,
3563                 .p_class        = P_LOCAL,
3564                 .offset         = LOCAL_VAR(szInclude),
3565                 .special        = handle_include,
3566                 .enum_list      = NULL,
3567                 .flags          = FLAG_HIDE|FLAG_META,
3568         },
3569         {
3570                 .label          = "preexec",
3571                 .type           = P_STRING,
3572                 .p_class        = P_LOCAL,
3573                 .offset         = LOCAL_VAR(szPreExec),
3574                 .special        = NULL,
3575                 .enum_list      = NULL,
3576                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3577         },
3578         {
3579                 .label          = "exec",
3580                 .type           = P_STRING,
3581                 .p_class        = P_LOCAL,
3582                 .offset         = LOCAL_VAR(szPreExec),
3583                 .special        = NULL,
3584                 .enum_list      = NULL,
3585                 .flags          = FLAG_ADVANCED,
3586         },
3587         {
3588                 .label          = "preexec close",
3589                 .type           = P_BOOL,
3590                 .p_class        = P_LOCAL,
3591                 .offset         = LOCAL_VAR(bPreexecClose),
3592                 .special        = NULL,
3593                 .enum_list      = NULL,
3594                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3595         },
3596         {
3597                 .label          = "postexec",
3598                 .type           = P_STRING,
3599                 .p_class        = P_LOCAL,
3600                 .offset         = LOCAL_VAR(szPostExec),
3601                 .special        = NULL,
3602                 .enum_list      = NULL,
3603                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3604         },
3605         {
3606                 .label          = "root preexec",
3607                 .type           = P_STRING,
3608                 .p_class        = P_LOCAL,
3609                 .offset         = LOCAL_VAR(szRootPreExec),
3610                 .special        = NULL,
3611                 .enum_list      = NULL,
3612                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3613         },
3614         {
3615                 .label          = "root preexec close",
3616                 .type           = P_BOOL,
3617                 .p_class        = P_LOCAL,
3618                 .offset         = LOCAL_VAR(bRootpreexecClose),
3619                 .special        = NULL,
3620                 .enum_list      = NULL,
3621                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3622         },
3623         {
3624                 .label          = "root postexec",
3625                 .type           = P_STRING,
3626                 .p_class        = P_LOCAL,
3627                 .offset         = LOCAL_VAR(szRootPostExec),
3628                 .special        = NULL,
3629                 .enum_list      = NULL,
3630                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3631         },
3632         {
3633                 .label          = "available",
3634                 .type           = P_BOOL,
3635                 .p_class        = P_LOCAL,
3636                 .offset         = LOCAL_VAR(bAvailable),
3637                 .special        = NULL,
3638                 .enum_list      = NULL,
3639                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3640         },
3641         {
3642                 .label          = "registry shares",
3643                 .type           = P_BOOL,
3644                 .p_class        = P_GLOBAL,
3645                 .offset         = GLOBAL_VAR(bRegistryShares),
3646                 .special        = NULL,
3647                 .enum_list      = NULL,
3648                 .flags          = FLAG_ADVANCED,
3649         },
3650         {
3651                 .label          = "usershare allow guests",
3652                 .type           = P_BOOL,
3653                 .p_class        = P_GLOBAL,
3654                 .offset         = GLOBAL_VAR(bUsershareAllowGuests),
3655                 .special        = NULL,
3656                 .enum_list      = NULL,
3657                 .flags          = FLAG_ADVANCED,
3658         },
3659         {
3660                 .label          = "usershare max shares",
3661                 .type           = P_INTEGER,
3662                 .p_class        = P_GLOBAL,
3663                 .offset         = GLOBAL_VAR(iUsershareMaxShares),
3664                 .special        = NULL,
3665                 .enum_list      = NULL,
3666                 .flags          = FLAG_ADVANCED,
3667         },
3668         {
3669                 .label          = "usershare owner only",
3670                 .type           = P_BOOL,
3671                 .p_class        = P_GLOBAL,
3672                 .offset         = GLOBAL_VAR(bUsershareOwnerOnly),
3673                 .special        = NULL,
3674                 .enum_list      = NULL,
3675                 .flags          = FLAG_ADVANCED,
3676         },
3677         {
3678                 .label          = "usershare path",
3679                 .type           = P_STRING,
3680                 .p_class        = P_GLOBAL,
3681                 .offset         = GLOBAL_VAR(szUsersharePath),
3682                 .special        = NULL,
3683                 .enum_list      = NULL,
3684                 .flags          = FLAG_ADVANCED,
3685         },
3686         {
3687                 .label          = "usershare prefix allow list",
3688                 .type           = P_LIST,
3689                 .p_class        = P_GLOBAL,
3690                 .offset         = GLOBAL_VAR(szUsersharePrefixAllowList),
3691                 .special        = NULL,
3692                 .enum_list      = NULL,
3693                 .flags          = FLAG_ADVANCED,
3694         },
3695         {
3696                 .label          = "usershare prefix deny list",
3697                 .type           = P_LIST,
3698                 .p_class        = P_GLOBAL,
3699                 .offset         = GLOBAL_VAR(szUsersharePrefixDenyList),
3700                 .special        = NULL,
3701                 .enum_list      = NULL,
3702                 .flags          = FLAG_ADVANCED,
3703         },
3704         {
3705                 .label          = "usershare template share",
3706                 .type           = P_STRING,
3707                 .p_class        = P_GLOBAL,
3708                 .offset         = GLOBAL_VAR(szUsershareTemplateShare),
3709                 .special        = NULL,
3710                 .enum_list      = NULL,
3711                 .flags          = FLAG_ADVANCED,
3712         },
3713         {
3714                 .label          = "volume",
3715                 .type           = P_STRING,
3716                 .p_class        = P_LOCAL,
3717                 .offset         = LOCAL_VAR(volume),
3718                 .special        = NULL,
3719                 .enum_list      = NULL,
3720                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3721         },
3722         {
3723                 .label          = "fstype",
3724                 .type           = P_STRING,
3725                 .p_class        = P_LOCAL,
3726                 .offset         = LOCAL_VAR(fstype),
3727                 .special        = NULL,
3728                 .enum_list      = NULL,
3729                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3730         },
3731         {
3732                 .label          = "set directory",
3733                 .type           = P_BOOLREV,
3734                 .p_class        = P_LOCAL,
3735                 .offset         = LOCAL_VAR(bNo_set_dir),
3736                 .special        = NULL,
3737                 .enum_list      = NULL,
3738                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3739         },
3740         {
3741                 .label          = "allow insecure wide links",
3742                 .type           = P_BOOL,
3743                 .p_class        = P_GLOBAL,
3744                 .offset         = GLOBAL_VAR(bAllowInsecureWidelinks),
3745                 .special        = NULL,
3746                 .enum_list      = NULL,
3747                 .flags          = FLAG_ADVANCED,
3748         },
3749         {
3750                 .label          = "wide links",
3751                 .type           = P_BOOL,
3752                 .p_class        = P_LOCAL,
3753                 .offset         = LOCAL_VAR(bWidelinks),
3754                 .special        = NULL,
3755                 .enum_list      = NULL,
3756                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3757         },
3758         {
3759                 .label          = "follow symlinks",
3760                 .type           = P_BOOL,
3761                 .p_class        = P_LOCAL,
3762                 .offset         = LOCAL_VAR(bSymlinks),
3763                 .special        = NULL,
3764                 .enum_list      = NULL,
3765                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3766         },
3767         {
3768                 .label          = "dont descend",
3769                 .type           = P_STRING,
3770                 .p_class        = P_LOCAL,
3771                 .offset         = LOCAL_VAR(szDontdescend),
3772                 .special        = NULL,
3773                 .enum_list      = NULL,
3774                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3775         },
3776         {
3777                 .label          = "magic script",
3778                 .type           = P_STRING,
3779                 .p_class        = P_LOCAL,
3780                 .offset         = LOCAL_VAR(szMagicScript),
3781                 .special        = NULL,
3782                 .enum_list      = NULL,
3783                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3784         },
3785         {
3786                 .label          = "magic output",
3787                 .type           = P_STRING,
3788                 .p_class        = P_LOCAL,
3789                 .offset         = LOCAL_VAR(szMagicOutput),
3790                 .special        = NULL,
3791                 .enum_list      = NULL,
3792                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3793         },
3794         {
3795                 .label          = "delete readonly",
3796                 .type           = P_BOOL,
3797                 .p_class        = P_LOCAL,
3798                 .offset         = LOCAL_VAR(bDeleteReadonly),
3799                 .special        = NULL,
3800                 .enum_list      = NULL,
3801                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3802         },
3803         {
3804                 .label          = "dos filemode",
3805                 .type           = P_BOOL,
3806                 .p_class        = P_LOCAL,
3807                 .offset         = LOCAL_VAR(bDosFilemode),
3808                 .special        = NULL,
3809                 .enum_list      = NULL,
3810                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3811         },
3812         {
3813                 .label          = "dos filetimes",
3814                 .type           = P_BOOL,
3815                 .p_class        = P_LOCAL,
3816                 .offset         = LOCAL_VAR(bDosFiletimes),
3817                 .special        = NULL,
3818                 .enum_list      = NULL,
3819                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3820         },
3821         {
3822                 .label          = "dos filetime resolution",
3823                 .type           = P_BOOL,
3824                 .p_class        = P_LOCAL,
3825                 .offset         = LOCAL_VAR(bDosFiletimeResolution),
3826                 .special        = NULL,
3827                 .enum_list      = NULL,
3828                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3829         },
3830         {
3831                 .label          = "fake directory create times",
3832                 .type           = P_BOOL,
3833                 .p_class        = P_LOCAL,
3834                 .offset         = LOCAL_VAR(bFakeDirCreateTimes),
3835                 .special        = NULL,
3836                 .enum_list      = NULL,
3837                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3838         },
3839         {
3840                 .label          = "async smb echo handler",
3841                 .type           = P_BOOL,
3842                 .p_class        = P_GLOBAL,
3843                 .offset         = GLOBAL_VAR(bAsyncSMBEchoHandler),
3844                 .special        = NULL,
3845                 .enum_list      = NULL,
3846                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3847         },
3848         {
3849                 .label          = "panic action",
3850                 .type           = P_STRING,
3851                 .p_class        = P_GLOBAL,
3852                 .offset         = GLOBAL_VAR(szPanicAction),
3853                 .special        = NULL,
3854                 .enum_list      = NULL,
3855                 .flags          = FLAG_ADVANCED,
3856         },
3857         {
3858                 .label          = "perfcount module",
3859                 .type           = P_STRING,
3860                 .p_class        = P_GLOBAL,
3861                 .offset         = GLOBAL_VAR(szSMBPerfcountModule),
3862                 .special        = NULL,
3863                 .enum_list      = NULL,
3864                 .flags          = FLAG_ADVANCED,
3865         },
3866
3867         {N_("VFS module options"), P_SEP, P_SEPARATOR},
3868
3869         {
3870                 .label          = "vfs objects",
3871                 .type           = P_LIST,
3872                 .p_class        = P_LOCAL,
3873                 .offset         = LOCAL_VAR(szVfsObjects),
3874                 .special        = NULL,
3875                 .enum_list      = NULL,
3876                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3877         },
3878         {
3879                 .label          = "vfs object",
3880                 .type           = P_LIST,
3881                 .p_class        = P_LOCAL,
3882                 .offset         = LOCAL_VAR(szVfsObjects),
3883                 .special        = NULL,
3884                 .enum_list      = NULL,
3885                 .flags          = FLAG_HIDE,
3886         },
3887
3888
3889         {N_("MSDFS options"), P_SEP, P_SEPARATOR},
3890
3891         {
3892                 .label          = "msdfs root",
3893                 .type           = P_BOOL,
3894                 .p_class        = P_LOCAL,
3895                 .offset         = LOCAL_VAR(bMSDfsRoot),
3896                 .special        = NULL,
3897                 .enum_list      = NULL,
3898                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3899         },
3900         {
3901                 .label          = "msdfs proxy",
3902                 .type           = P_STRING,
3903                 .p_class        = P_LOCAL,
3904                 .offset         = LOCAL_VAR(szMSDfsProxy),
3905                 .special        = NULL,
3906                 .enum_list      = NULL,
3907                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3908         },
3909         {
3910                 .label          = "host msdfs",
3911                 .type           = P_BOOL,
3912                 .p_class        = P_GLOBAL,
3913                 .offset         = GLOBAL_VAR(bHostMSDfs),
3914                 .special        = NULL,
3915                 .enum_list      = NULL,
3916                 .flags          = FLAG_ADVANCED,
3917         },
3918
3919         {N_("Winbind options"), P_SEP, P_SEPARATOR},
3920
3921         {
3922                 .label          = "passdb expand explicit",
3923                 .type           = P_BOOL,
3924                 .p_class        = P_GLOBAL,
3925                 .offset         = GLOBAL_VAR(bPassdbExpandExplicit),
3926                 .special        = NULL,
3927                 .enum_list      = NULL,
3928                 .flags          = FLAG_ADVANCED,
3929         },
3930         {
3931                 .label          = "idmap backend",
3932                 .type           = P_STRING,
3933                 .p_class        = P_GLOBAL,
3934                 .offset         = GLOBAL_VAR(szIdmapBackend),
3935                 .special        = handle_idmap_backend,
3936                 .enum_list      = NULL,
3937                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
3938         },
3939         {
3940                 .label          = "idmap cache time",
3941                 .type           = P_INTEGER,
3942                 .p_class        = P_GLOBAL,
3943                 .offset         = GLOBAL_VAR(iIdmapCacheTime),
3944                 .special        = NULL,
3945                 .enum_list      = NULL,
3946                 .flags          = FLAG_ADVANCED,
3947         },
3948         {
3949                 .label          = "idmap negative cache time",
3950                 .type           = P_INTEGER,
3951                 .p_class        = P_GLOBAL,
3952                 .offset         = GLOBAL_VAR(iIdmapNegativeCacheTime),
3953                 .special        = NULL,
3954                 .enum_list      = NULL,
3955                 .flags          = FLAG_ADVANCED,
3956         },
3957         {
3958                 .label          = "idmap uid",
3959                 .type           = P_STRING,
3960                 .p_class        = P_GLOBAL,
3961                 .offset         = GLOBAL_VAR(szIdmapUID),
3962                 .special        = handle_idmap_uid,
3963                 .enum_list      = NULL,
3964                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
3965         },
3966         {
3967                 .label          = "winbind uid",
3968                 .type           = P_STRING,
3969                 .p_class        = P_GLOBAL,
3970                 .offset         = GLOBAL_VAR(szIdmapUID),
3971                 .special        = handle_idmap_uid,
3972                 .enum_list      = NULL,
3973                 .flags          = FLAG_HIDE,
3974         },
3975         {
3976                 .label          = "idmap gid",
3977                 .type           = P_STRING,
3978                 .p_class        = P_GLOBAL,
3979                 .offset         = GLOBAL_VAR(szIdmapGID),
3980                 .special        = handle_idmap_gid,
3981                 .enum_list      = NULL,
3982                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
3983         },
3984         {
3985                 .label          = "winbind gid",
3986                 .type           = P_STRING,
3987                 .p_class        = P_GLOBAL,
3988                 .offset         = GLOBAL_VAR(szIdmapGID),
3989                 .special        = handle_idmap_gid,
3990                 .enum_list      = NULL,
3991                 .flags          = FLAG_HIDE,
3992         },
3993         {
3994                 .label          = "template homedir",
3995                 .type           = P_STRING,
3996                 .p_class        = P_GLOBAL,
3997                 .offset         = GLOBAL_VAR(szTemplateHomedir),
3998                 .special        = NULL,
3999                 .enum_list      = NULL,
4000                 .flags          = FLAG_ADVANCED,
4001         },
4002         {
4003                 .label          = "template shell",
4004                 .type           = P_STRING,
4005                 .p_class        = P_GLOBAL,
4006                 .offset         = GLOBAL_VAR(szTemplateShell),
4007                 .special        = NULL,
4008                 .enum_list      = NULL,
4009                 .flags          = FLAG_ADVANCED,
4010         },
4011         {
4012                 .label          = "winbind separator",
4013                 .type           = P_STRING,
4014                 .p_class        = P_GLOBAL,
4015                 .offset         = GLOBAL_VAR(szWinbindSeparator),
4016                 .special        = NULL,
4017                 .enum_list      = NULL,
4018                 .flags          = FLAG_ADVANCED,
4019         },
4020         {
4021                 .label          = "winbind cache time",
4022                 .type           = P_INTEGER,
4023                 .p_class        = P_GLOBAL,
4024                 .offset         = GLOBAL_VAR(winbind_cache_time),
4025                 .special        = NULL,
4026                 .enum_list      = NULL,
4027                 .flags          = FLAG_ADVANCED,
4028         },
4029         {
4030                 .label          = "winbind reconnect delay",
4031                 .type           = P_INTEGER,
4032                 .p_class        = P_GLOBAL,
4033                 .offset         = GLOBAL_VAR(winbind_reconnect_delay),
4034                 .special        = NULL,
4035                 .enum_list      = NULL,
4036                 .flags          = FLAG_ADVANCED,
4037         },
4038         {
4039                 .label          = "winbind max clients",
4040                 .type           = P_INTEGER,
4041                 .p_class        = P_GLOBAL,
4042                 .offset         = GLOBAL_VAR(winbind_max_clients),
4043                 .special        = NULL,
4044                 .enum_list      = NULL,
4045                 .flags          = FLAG_ADVANCED,
4046         },
4047         {
4048                 .label          = "winbind enum users",
4049                 .type           = P_BOOL,
4050                 .p_class        = P_GLOBAL,
4051                 .offset         = GLOBAL_VAR(bWinbindEnumUsers),
4052                 .special        = NULL,
4053                 .enum_list      = NULL,
4054                 .flags          = FLAG_ADVANCED,
4055         },
4056         {
4057                 .label          = "winbind enum groups",
4058                 .type           = P_BOOL,
4059                 .p_class        = P_GLOBAL,
4060                 .offset         = GLOBAL_VAR(bWinbindEnumGroups),
4061                 .special        = NULL,
4062                 .enum_list      = NULL,
4063                 .flags          = FLAG_ADVANCED,
4064         },
4065         {
4066                 .label          = "winbind use default domain",
4067                 .type           = P_BOOL,
4068                 .p_class        = P_GLOBAL,
4069                 .offset         = GLOBAL_VAR(bWinbindUseDefaultDomain),
4070                 .special        = NULL,
4071                 .enum_list      = NULL,
4072                 .flags          = FLAG_ADVANCED,
4073         },
4074         {
4075                 .label          = "winbind trusted domains only",
4076                 .type           = P_BOOL,
4077                 .p_class        = P_GLOBAL,
4078                 .offset         = GLOBAL_VAR(bWinbindTrustedDomainsOnly),
4079                 .special        = NULL,
4080                 .enum_list      = NULL,
4081                 .flags          = FLAG_ADVANCED,
4082         },
4083         {
4084                 .label          = "winbind nested groups",
4085                 .type           = P_BOOL,
4086                 .p_class        = P_GLOBAL,
4087                 .offset         = GLOBAL_VAR(bWinbindNestedGroups),
4088                 .special        = NULL,
4089                 .enum_list      = NULL,
4090                 .flags          = FLAG_ADVANCED,
4091         },
4092         {
4093                 .label          = "winbind expand groups",
4094                 .type           = P_INTEGER,
4095                 .p_class        = P_GLOBAL,
4096                 .offset         = GLOBAL_VAR(winbind_expand_groups),
4097                 .special        = NULL,
4098                 .enum_list      = NULL,
4099                 .flags          = FLAG_ADVANCED,
4100         },
4101         {
4102                 .label          = "winbind nss info",
4103                 .type           = P_LIST,
4104                 .p_class        = P_GLOBAL,
4105                 .offset         = GLOBAL_VAR(szWinbindNssInfo),
4106                 .special        = NULL,
4107                 .enum_list      = NULL,
4108                 .flags          = FLAG_ADVANCED,
4109         },
4110         {
4111                 .label          = "winbind refresh tickets",
4112                 .type           = P_BOOL,
4113                 .p_class        = P_GLOBAL,
4114                 .offset         = GLOBAL_VAR(bWinbindRefreshTickets),
4115                 .special        = NULL,
4116                 .enum_list      = NULL,
4117                 .flags          = FLAG_ADVANCED,
4118         },
4119         {
4120                 .label          = "winbind offline logon",
4121                 .type           = P_BOOL,
4122                 .p_class        = P_GLOBAL,
4123                 .offset         = GLOBAL_VAR(bWinbindOfflineLogon),
4124                 .special        = NULL,
4125                 .enum_list      = NULL,
4126                 .flags          = FLAG_ADVANCED,
4127         },
4128         {
4129                 .label          = "winbind normalize names",
4130                 .type           = P_BOOL,
4131                 .p_class        = P_GLOBAL,
4132                 .offset         = GLOBAL_VAR(bWinbindNormalizeNames),
4133                 .special        = NULL,
4134                 .enum_list      = NULL,
4135                 .flags          = FLAG_ADVANCED,
4136         },
4137         {
4138                 .label          = "winbind rpc only",
4139                 .type           = P_BOOL,
4140                 .p_class        = P_GLOBAL,
4141                 .offset         = GLOBAL_VAR(bWinbindRpcOnly),
4142                 .special        = NULL,
4143                 .enum_list      = NULL,
4144                 .flags          = FLAG_ADVANCED,
4145         },
4146         {
4147                 .label          = "create krb5 conf",
4148                 .type           = P_BOOL,
4149                 .p_class        = P_GLOBAL,
4150                 .offset         = GLOBAL_VAR(bCreateKrb5Conf),
4151                 .special        = NULL,
4152                 .enum_list      = NULL,
4153                 .flags          = FLAG_ADVANCED,
4154         },
4155         {
4156                 .label          = "ncalrpc dir",
4157                 .type           = P_STRING,
4158                 .p_class        = P_GLOBAL,
4159                 .offset         = GLOBAL_VAR(ncalrpc_dir),
4160                 .special        = NULL,
4161                 .enum_list      = NULL,
4162                 .flags          = FLAG_ADVANCED,
4163         },
4164         {
4165                 .label          = "winbind max domain connections",
4166                 .type           = P_INTEGER,
4167                 .p_class        = P_GLOBAL,
4168                 .offset         = GLOBAL_VAR(winbindMaxDomainConnections),
4169                 .special        = NULL,
4170                 .enum_list      = NULL,
4171                 .flags          = FLAG_ADVANCED,
4172         },
4173         {
4174                 .label          = "winbindd socket directory",
4175                 .type           = P_STRING,
4176                 .p_class        = P_GLOBAL,
4177                 .offset         = GLOBAL_VAR(szWinbinddSocketDirectory),
4178                 .special        = NULL,
4179                 .enum_list      = NULL,
4180                 .flags          = FLAG_ADVANCED,
4181         },
4182         {
4183                 .label          = "winbindd privileged socket directory",
4184                 .type           = P_STRING,
4185                 .p_class        = P_GLOBAL,
4186                 .offset         = GLOBAL_VAR(szWinbinddPrivilegedSocketDirectory),
4187                 .special        = NULL,
4188                 .enum_list      = NULL,
4189                 .flags          = FLAG_ADVANCED,
4190         },
4191         {
4192                 .label          = "winbind sealed pipes",
4193                 .type           = P_BOOL,
4194                 .p_class        = P_GLOBAL,
4195                 .offset         = GLOBAL_VAR(bWinbindSealedPipes),
4196                 .special        = NULL,
4197                 .enum_list      = NULL,
4198                 .flags          = FLAG_ADVANCED,
4199         },
4200
4201         {N_("DNS options"), P_SEP, P_SEPARATOR},
4202         {
4203                 .label          = "allow dns updates",
4204                 .type           = P_ENUM,
4205                 .p_class        = P_GLOBAL,
4206                 .offset         = GLOBAL_VAR(allow_dns_updates),
4207                 .special        = NULL,
4208                 .enum_list      = enum_dns_update_settings,
4209                 .flags          = FLAG_ADVANCED,
4210         },
4211         {
4212                 .label          = "dns forwarder",
4213                 .type           = P_STRING,
4214                 .p_class        = P_GLOBAL,
4215                 .offset         = GLOBAL_VAR(dns_forwarder),
4216                 .special        = NULL,
4217                 .enum_list      = NULL,
4218                 .flags          = FLAG_ADVANCED,
4219         },
4220         {
4221                 .label          = "dns recursive queries",
4222                 .type           = P_BOOL,
4223                 .p_class        = P_GLOBAL,
4224                 .offset         = GLOBAL_VAR(dns_recursive_queries),
4225                 .special        = NULL,
4226                 .enum_list      = NULL
4227         },
4228         {
4229                 .label          = "dns update command",
4230                 .type           = P_CMDLIST,
4231                 .p_class        = P_GLOBAL,
4232                 .offset         = GLOBAL_VAR(szDNSUpdateCommand),
4233                 .special        = NULL,
4234                 .enum_list      = NULL,
4235                 .flags          = FLAG_ADVANCED,
4236         },
4237         {
4238                 .label          = "nsupdate command",
4239                 .type           = P_CMDLIST,
4240                 .p_class        = P_GLOBAL,
4241                 .offset         = GLOBAL_VAR(szNSUpdateCommand),
4242                 .special        = NULL,
4243                 .enum_list      = NULL,
4244                 .flags          = FLAG_ADVANCED,
4245         },
4246         {
4247                 .label          = "rndc command",
4248                 .type           = P_CMDLIST,
4249                 .p_class        = P_GLOBAL,
4250                 .offset         = GLOBAL_VAR(szRNDCCommand),
4251                 .special        = NULL,
4252                 .enum_list      = NULL,
4253                 .flags          = FLAG_ADVANCED,
4254         },
4255         {
4256                 .label          = "multicast dns register",
4257                 .type           = P_BOOL,
4258                 .p_class        = P_GLOBAL,
4259                 .offset         = GLOBAL_VAR(bMulticastDnsRegister),
4260                 .special        = NULL,
4261                 .enum_list      = NULL,
4262                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
4263         },
4264
4265         {N_("AD DC options"), P_SEP, P_SEPARATOR},
4266
4267         {
4268                 .label          = "samba kcc command",
4269                 .type           = P_CMDLIST,
4270                 .p_class        = P_GLOBAL,
4271                 .offset         = GLOBAL_VAR(szSambaKCCCommand),
4272                 .special        = NULL,
4273                 .enum_list      = NULL,
4274                 .flags          = FLAG_ADVANCED,
4275         },
4276         {
4277                 .label          = "server services",
4278                 .type           = P_LIST,
4279                 .p_class        = P_GLOBAL,
4280                 .offset         = GLOBAL_VAR(server_services),
4281                 .special        = NULL,
4282                 .enum_list      = NULL
4283         },
4284         {
4285                 .label          = "dcerpc endpoint servers",
4286                 .type           = P_LIST,
4287                 .p_class        = P_GLOBAL,
4288                 .offset         = GLOBAL_VAR(dcerpc_ep_servers),
4289                 .special        = NULL,
4290                 .enum_list      = NULL
4291         },
4292         {
4293                 .label          = "spn update command",
4294                 .type           = P_CMDLIST,
4295                 .p_class        = P_GLOBAL,
4296                 .offset         = GLOBAL_VAR(szSPNUpdateCommand),
4297                 .special        = NULL,
4298                 .enum_list      = NULL,
4299                 .flags          = FLAG_ADVANCED,
4300         },
4301         {
4302                 .label          = "share backend",
4303                 .type           = P_STRING,
4304                 .p_class        = P_GLOBAL,
4305                 .offset         = GLOBAL_VAR(szShareBackend),
4306                 .special        = NULL,
4307                 .enum_list      = NULL
4308         },
4309         {
4310                 .label          = "ntvfs handler",
4311                 .type           = P_LIST,
4312                 .p_class        = P_LOCAL,
4313                 .offset         = LOCAL_VAR(ntvfs_handler),
4314                 .special        = NULL,
4315                 .enum_list      = NULL
4316         },
4317
4318         {N_("TLS options"), P_SEP, P_SEPARATOR},
4319
4320         {
4321                 .label          = "tls enabled",
4322                 .type           = P_BOOL,
4323                 .p_class        = P_GLOBAL,
4324                 .offset         = GLOBAL_VAR(tls_enabled),
4325                 .special        = NULL,
4326                 .enum_list      = NULL
4327         },
4328         {
4329                 .label          = "tls keyfile",
4330                 .type           = P_STRING,
4331                 .p_class        = P_GLOBAL,
4332                 .offset         = GLOBAL_VAR(tls_keyfile),
4333                 .special        = NULL,
4334                 .enum_list      = NULL
4335         },
4336         {
4337                 .label          = "tls certfile",
4338                 .type           = P_STRING,
4339                 .p_class        = P_GLOBAL,
4340                 .offset         = GLOBAL_VAR(tls_certfile),
4341                 .special        = NULL,
4342                 .enum_list      = NULL
4343         },
4344         {
4345                 .label          = "tls cafile",
4346                 .type           = P_STRING,
4347                 .p_class        = P_GLOBAL,
4348                 .offset         = GLOBAL_VAR(tls_cafile),
4349                 .special        = NULL,
4350                 .enum_list      = NULL
4351         },
4352         {
4353                 .label          = "tls crlfile",
4354                 .type           = P_STRING,
4355                 .p_class        = P_GLOBAL,
4356                 .offset         = GLOBAL_VAR(tls_crlfile),
4357                 .special        = NULL,
4358                 .enum_list      = NULL
4359         },
4360         {
4361                 .label          = "tls dh params file",
4362                 .type           = P_STRING,
4363                 .p_class        = P_GLOBAL,
4364                 .offset         = GLOBAL_VAR(tls_dhpfile),
4365                 .special        = NULL,
4366                 .enum_list      = NULL
4367         },
4368
4369         {NULL,  P_BOOL,  P_NONE,  0,  NULL,  NULL,  0}
4370 };
4371