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