docs: Mark 'client use spnego principal' as deprecated and also a bad idea.
[sfrench/samba-autobuild/.git] / lib / param / param_table.c
1 /*
2    Unix SMB/CIFS implementation.
3    Parameter loading functions
4    Copyright (C) Karl Auer 1993-1998
5
6    Largely re-written by Andrew Tridgell, September 1994
7
8    Copyright (C) Simo Sorce 2001
9    Copyright (C) Alexander Bokovoy 2002
10    Copyright (C) Stefan (metze) Metzmacher 2002
11    Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2003
12    Copyright (C) Michael Adam 2008
13    Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
14    Copyright (C) Andrew Bartlett 2011
15
16    This program is free software; you can redistribute it and/or modify
17    it under the terms of the GNU General Public License as published by
18    the Free Software Foundation; either version 3 of the License, or
19    (at your option) any later version.
20
21    This program is distributed in the hope that it will be useful,
22    but WITHOUT ANY WARRANTY; without even the implied warranty of
23    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24    GNU General Public License for more details.
25
26    You should have received a copy of the GNU General Public License
27    along with this program.  If not, see <http://www.gnu.org/licenses/>.
28 */
29
30 #include "includes.h"
31 #include "lib/param/param.h"
32 #include "lib/param/loadparm.h"
33 #include "lib/param/param_global.h"
34 #include "libcli/smb/smb_constants.h"
35
36 #ifndef N_
37 #define N_(x) x
38 #endif
39
40 static const struct enum_list enum_protocol[] = {
41         {PROTOCOL_DEFAULT, "default"}, /* the caller decides what this means */
42         {PROTOCOL_SMB2_10, "SMB2"}, /* for now keep PROTOCOL_SMB2_10 */
43         {PROTOCOL_SMB3_00, "SMB3"}, /* for now keep PROTOCOL_SMB3_00 */
44         {PROTOCOL_SMB3_10, "SMB3_10"},
45         {PROTOCOL_SMB3_02, "SMB3_02"},
46         {PROTOCOL_SMB3_00, "SMB3_00"},
47         {PROTOCOL_SMB2_24, "SMB2_24"},
48         {PROTOCOL_SMB2_22, "SMB2_22"},
49         {PROTOCOL_SMB2_10, "SMB2_10"},
50         {PROTOCOL_SMB2_02, "SMB2_02"},
51         {PROTOCOL_NT1, "NT1"},
52         {PROTOCOL_LANMAN2, "LANMAN2"},
53         {PROTOCOL_LANMAN1, "LANMAN1"},
54         {PROTOCOL_CORE, "CORE"},
55         {PROTOCOL_COREPLUS, "COREPLUS"},
56         {PROTOCOL_COREPLUS, "CORE+"},
57         {-1, NULL}
58 };
59
60 static const struct enum_list enum_security[] = {
61         {SEC_AUTO, "AUTO"},
62         {SEC_USER, "USER"},
63         {SEC_DOMAIN, "DOMAIN"},
64         {SEC_ADS, "ADS"},
65         {-1, NULL}
66 };
67
68 static const struct enum_list enum_bool_auto[] = {
69         {false, "No"},
70         {false, "False"},
71         {false, "0"},
72         {true, "Yes"},
73         {true, "True"},
74         {true, "1"},
75         {Auto, "Auto"},
76         {-1, NULL}
77 };
78
79 static const struct enum_list enum_csc_policy[] = {
80         {CSC_POLICY_MANUAL, "manual"},
81         {CSC_POLICY_DOCUMENTS, "documents"},
82         {CSC_POLICY_PROGRAMS, "programs"},
83         {CSC_POLICY_DISABLE, "disable"},
84         {-1, NULL}
85 };
86
87 /* Server role options */
88 static const struct enum_list enum_server_role[] = {
89         {ROLE_AUTO, "auto"},
90         {ROLE_STANDALONE, "standalone server"},
91         {ROLE_STANDALONE, "standalone"},
92         {ROLE_DOMAIN_MEMBER, "member server"},
93         {ROLE_DOMAIN_MEMBER, "member"},
94         {ROLE_DOMAIN_PDC, "classic primary domain controller"},
95         {ROLE_DOMAIN_BDC, "classic backup domain controller"},
96         {ROLE_ACTIVE_DIRECTORY_DC, "active directory domain controller"},
97         {ROLE_ACTIVE_DIRECTORY_DC, "domain controller"},
98         {ROLE_ACTIVE_DIRECTORY_DC, "dc"},
99         {-1, NULL}
100 };
101
102 /* SMB signing types. */
103 static const struct enum_list enum_smb_signing_vals[] = {
104         {SMB_SIGNING_DEFAULT, "default"},
105         {SMB_SIGNING_OFF, "No"},
106         {SMB_SIGNING_OFF, "False"},
107         {SMB_SIGNING_OFF, "0"},
108         {SMB_SIGNING_OFF, "Off"},
109         {SMB_SIGNING_OFF, "disabled"},
110         {SMB_SIGNING_IF_REQUIRED, "if_required"},
111         {SMB_SIGNING_IF_REQUIRED, "Yes"},
112         {SMB_SIGNING_IF_REQUIRED, "True"},
113         {SMB_SIGNING_IF_REQUIRED, "1"},
114         {SMB_SIGNING_IF_REQUIRED, "On"},
115         {SMB_SIGNING_IF_REQUIRED, "enabled"},
116         {SMB_SIGNING_IF_REQUIRED, "auto"},
117         {SMB_SIGNING_REQUIRED, "required"},
118         {SMB_SIGNING_REQUIRED, "mandatory"},
119         {SMB_SIGNING_REQUIRED, "force"},
120         {SMB_SIGNING_REQUIRED, "forced"},
121         {SMB_SIGNING_REQUIRED, "enforced"},
122         {-1, NULL}
123 };
124
125 /* DNS update options. */
126 static const struct enum_list enum_dns_update_settings[] = {
127         {DNS_UPDATE_OFF, "disabled"},
128         {DNS_UPDATE_OFF, "No"},
129         {DNS_UPDATE_OFF, "False"},
130         {DNS_UPDATE_OFF, "0"},
131         {DNS_UPDATE_OFF, "Off"},
132         {DNS_UPDATE_ON, "nonsecure and secure"},
133         {DNS_UPDATE_ON, "nonsecure"},
134         {DNS_UPDATE_SIGNED, "secure only"},
135         {DNS_UPDATE_SIGNED, "secure"},
136         {DNS_UPDATE_SIGNED, "signed"},
137         {-1, NULL}
138 };
139
140 /*
141    Do you want session setups at user level security with a invalid
142    password to be rejected or allowed in as guest? WinNT rejects them
143    but it can be a pain as it means "net view" needs to use a password
144
145    You have 3 choices in the setting of map_to_guest:
146
147    "Never" means session setups with an invalid password
148    are rejected. This is the default.
149
150    "Bad User" means session setups with an invalid password
151    are rejected, unless the username does not exist, in which case it
152    is treated as a guest login
153
154    "Bad Password" means session setups with an invalid password
155    are treated as a guest login
156
157    Note that map_to_guest only has an effect in user or server
158    level security.
159 */
160
161 static const struct enum_list enum_map_to_guest[] = {
162         {NEVER_MAP_TO_GUEST, "Never"},
163         {MAP_TO_GUEST_ON_BAD_USER, "Bad User"},
164         {MAP_TO_GUEST_ON_BAD_PASSWORD, "Bad Password"},
165         {MAP_TO_GUEST_ON_BAD_UID, "Bad Uid"},
166         {-1, NULL}
167 };
168
169 /* Config backend options */
170
171 static const struct enum_list enum_config_backend[] = {
172         {CONFIG_BACKEND_FILE, "file"},
173         {CONFIG_BACKEND_REGISTRY, "registry"},
174         {-1, NULL}
175 };
176
177 static const struct enum_list enum_smbd_profiling_level[] = {
178         {0, "off"}, {1, "count"}, {2, "on"}, {-1, NULL}
179 };
180
181
182 /* ADS kerberos ticket verification options */
183
184 static const struct enum_list enum_kerberos_method[] = {
185         {KERBEROS_VERIFY_SECRETS, "default"},
186         {KERBEROS_VERIFY_SECRETS, "secrets only"},
187         {KERBEROS_VERIFY_SYSTEM_KEYTAB, "system keytab"},
188         {KERBEROS_VERIFY_DEDICATED_KEYTAB, "dedicated keytab"},
189         {KERBEROS_VERIFY_SECRETS_AND_KEYTAB, "secrets and keytab"},
190         {-1, NULL}
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 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(path),
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(path),
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(workgroup),
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(realm_original),
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(netbios_name),
366                 .special        = NULL,
367                 .enum_list      = NULL,
368                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
369         },
370         {
371                 .label          = "netbios aliases",
372                 .type           = P_CMDLIST,
373                 .p_class        = P_GLOBAL,
374                 .offset         = GLOBAL_VAR(netbios_aliases),
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(netbios_scope),
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(server_string),
393                 .special        = NULL,
394                 .enum_list      = NULL,
395                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
396         },
397         {
398                 .label          = "interfaces",
399                 .type           = P_CMDLIST,
400                 .p_class        = P_GLOBAL,
401                 .offset         = GLOBAL_VAR(interfaces),
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(bind_interfaces_only),
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(config_backend),
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_CMDLIST,
448                 .p_class        = P_GLOBAL,
449                 .offset         = GLOBAL_VAR(auth_methods),
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(encrypt_passwords),
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(client_schannel),
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(server_schannel),
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(allow_trusted_domains),
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(null_passwords),
504                 .special        = NULL,
505                 .enum_list      = NULL,
506                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
507         },
508         {
509                 .label          = "old password allowed period",
510                 .type           = P_INTEGER,
511                 .p_class        = P_GLOBAL,
512                 .offset         = GLOBAL_VAR(old_password_allowed_period),
513                 .special        = NULL,
514                 .enum_list      = NULL,
515                 .flags          = FLAG_ADVANCED,
516         },
517         {
518                 .label          = "obey pam restrictions",
519                 .type           = P_BOOL,
520                 .p_class        = P_GLOBAL,
521                 .offset         = GLOBAL_VAR(obey_pam_restrictions),
522                 .special        = NULL,
523                 .enum_list      = NULL,
524                 .flags          = FLAG_ADVANCED,
525         },
526         {
527                 .label          = "password server",
528                 .type           = P_STRING,
529                 .p_class        = P_GLOBAL,
530                 .offset         = GLOBAL_VAR(password_server),
531                 .special        = NULL,
532                 .enum_list      = NULL,
533                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
534         },
535         {
536                 .label          = "smb passwd file",
537                 .type           = P_STRING,
538                 .p_class        = P_GLOBAL,
539                 .offset         = GLOBAL_VAR(smb_passwd_file),
540                 .special        = NULL,
541                 .enum_list      = NULL,
542                 .flags          = FLAG_ADVANCED,
543         },
544         {
545                 .label          = "private dir",
546                 .type           = P_STRING,
547                 .p_class        = P_GLOBAL,
548                 .offset         = GLOBAL_VAR(private_dir),
549                 .special        = NULL,
550                 .enum_list      = NULL,
551                 .flags          = FLAG_ADVANCED,
552         },
553         {
554                 .label          = "private directory",
555                 .type           = P_STRING,
556                 .p_class        = P_GLOBAL,
557                 .offset         = GLOBAL_VAR(private_dir),
558                 .special        = NULL,
559                 .enum_list      = NULL,
560                 .flags          = FLAG_HIDE,
561         },
562         {
563                 .label          = "passdb backend",
564                 .type           = P_STRING,
565                 .p_class        = P_GLOBAL,
566                 .offset         = GLOBAL_VAR(passdb_backend),
567                 .special        = NULL,
568                 .enum_list      = NULL,
569                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
570         },
571         {
572                 .label          = "algorithmic rid base",
573                 .type           = P_INTEGER,
574                 .p_class        = P_GLOBAL,
575                 .offset         = GLOBAL_VAR(algorithmic_rid_base),
576                 .special        = NULL,
577                 .enum_list      = NULL,
578                 .flags          = FLAG_ADVANCED,
579         },
580         {
581                 .label          = "root directory",
582                 .type           = P_STRING,
583                 .p_class        = P_GLOBAL,
584                 .offset         = GLOBAL_VAR(root_directory),
585                 .special        = NULL,
586                 .enum_list      = NULL,
587                 .flags          = FLAG_ADVANCED,
588         },
589         {
590                 .label          = "root dir",
591                 .type           = P_STRING,
592                 .p_class        = P_GLOBAL,
593                 .offset         = GLOBAL_VAR(root_directory),
594                 .special        = NULL,
595                 .enum_list      = NULL,
596                 .flags          = FLAG_HIDE,
597         },
598         {
599                 .label          = "root",
600                 .type           = P_STRING,
601                 .p_class        = P_GLOBAL,
602                 .offset         = GLOBAL_VAR(root_directory),
603                 .special        = NULL,
604                 .enum_list      = NULL,
605                 .flags          = FLAG_HIDE,
606         },
607         {
608                 .label          = "guest account",
609                 .type           = P_STRING,
610                 .p_class        = P_GLOBAL,
611                 .offset         = GLOBAL_VAR(guest_account),
612                 .special        = NULL,
613                 .enum_list      = NULL,
614                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
615         },
616         {
617                 .label          = "enable privileges",
618                 .type           = P_BOOL,
619                 .p_class        = P_GLOBAL,
620                 .offset         = GLOBAL_VAR(enable_privileges),
621                 .special        = NULL,
622                 .enum_list      = NULL,
623                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
624         },
625
626         {
627                 .label          = "pam password change",
628                 .type           = P_BOOL,
629                 .p_class        = P_GLOBAL,
630                 .offset         = GLOBAL_VAR(pam_password_change),
631                 .special        = NULL,
632                 .enum_list      = NULL,
633                 .flags          = FLAG_ADVANCED,
634         },
635         {
636                 .label          = "passwd program",
637                 .type           = P_STRING,
638                 .p_class        = P_GLOBAL,
639                 .offset         = GLOBAL_VAR(passwd_program),
640                 .special        = NULL,
641                 .enum_list      = NULL,
642                 .flags          = FLAG_ADVANCED,
643         },
644         {
645                 .label          = "passwd chat",
646                 .type           = P_STRING,
647                 .p_class        = P_GLOBAL,
648                 .offset         = GLOBAL_VAR(passwd_chat),
649                 .special        = NULL,
650                 .enum_list      = NULL,
651                 .flags          = FLAG_ADVANCED,
652         },
653         {
654                 .label          = "passwd chat debug",
655                 .type           = P_BOOL,
656                 .p_class        = P_GLOBAL,
657                 .offset         = GLOBAL_VAR(passwd_chat_debug),
658                 .special        = NULL,
659                 .enum_list      = NULL,
660                 .flags          = FLAG_ADVANCED,
661         },
662         {
663                 .label          = "passwd chat timeout",
664                 .type           = P_INTEGER,
665                 .p_class        = P_GLOBAL,
666                 .offset         = GLOBAL_VAR(passwd_chat_timeout),
667                 .special        = NULL,
668                 .enum_list      = NULL,
669                 .flags          = FLAG_ADVANCED,
670         },
671         {
672                 .label          = "check password script",
673                 .type           = P_STRING,
674                 .p_class        = P_GLOBAL,
675                 .offset         = GLOBAL_VAR(check_password_script),
676                 .special        = NULL,
677                 .enum_list      = NULL,
678                 .flags          = FLAG_ADVANCED,
679         },
680         {
681                 .label          = "username map",
682                 .type           = P_STRING,
683                 .p_class        = P_GLOBAL,
684                 .offset         = GLOBAL_VAR(username_map),
685                 .special        = NULL,
686                 .enum_list      = NULL,
687                 .flags          = FLAG_ADVANCED,
688         },
689         {
690                 .label          = "username level",
691                 .type           = P_INTEGER,
692                 .p_class        = P_GLOBAL,
693                 .offset         = GLOBAL_VAR(username_level),
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(unix_password_sync),
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(lanman_auth),
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(ntlm_auth),
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(client_ntlmv2_auth),
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(client_lanman_auth),
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(client_plaintext_auth),
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 | FLAG_DEPRECATED,
769         },
770         {
771                 .label          = "username",
772                 .type           = P_STRING,
773                 .p_class        = P_LOCAL,
774                 .offset         = LOCAL_VAR(username),
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(username),
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(username),
793                 .special        = NULL,
794                 .enum_list      = NULL,
795                 .flags          = FLAG_HIDE,
796         },
797         {
798                 .label          = "invalid users",
799                 .type           = P_CMDLIST,
800                 .p_class        = P_LOCAL,
801                 .offset         = LOCAL_VAR(invalid_users),
802                 .special        = NULL,
803                 .enum_list      = NULL,
804                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
805         },
806         {
807                 .label          = "valid users",
808                 .type           = P_CMDLIST,
809                 .p_class        = P_LOCAL,
810                 .offset         = LOCAL_VAR(valid_users),
811                 .special        = NULL,
812                 .enum_list      = NULL,
813                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
814         },
815         {
816                 .label          = "admin users",
817                 .type           = P_CMDLIST,
818                 .p_class        = P_LOCAL,
819                 .offset         = LOCAL_VAR(admin_users),
820                 .special        = NULL,
821                 .enum_list      = NULL,
822                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
823         },
824         {
825                 .label          = "read list",
826                 .type           = P_CMDLIST,
827                 .p_class        = P_LOCAL,
828                 .offset         = LOCAL_VAR(read_list),
829                 .special        = NULL,
830                 .enum_list      = NULL,
831                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
832         },
833         {
834                 .label          = "write list",
835                 .type           = P_CMDLIST,
836                 .p_class        = P_LOCAL,
837                 .offset         = LOCAL_VAR(write_list),
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(read_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(read_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(read_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(read_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(acl_check_permissions),
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(acl_group_control),
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(acl_map_full_control),
928                 .special        = NULL,
929                 .enum_list      = NULL,
930                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
931         },
932         {
933                 .label          = "acl allow execute always",
934                 .type           = P_BOOL,
935                 .p_class        = P_LOCAL,
936                 .offset         = LOCAL_VAR(acl_allow_execute_always),
937                 .special        = NULL,
938                 .enum_list      = NULL,
939                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
940         },
941
942         {
943                 .label          = "create mask",
944                 .type           = P_OCTAL,
945                 .p_class        = P_LOCAL,
946                 .offset         = LOCAL_VAR(create_mask),
947                 .special        = NULL,
948                 .enum_list      = NULL,
949                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
950         },
951         {
952                 .label          = "create mode",
953                 .type           = P_OCTAL,
954                 .p_class        = P_LOCAL,
955                 .offset         = LOCAL_VAR(create_mask),
956                 .special        = NULL,
957                 .enum_list      = NULL,
958                 .flags          = FLAG_HIDE,
959         },
960         {
961                 .label          = "force create mode",
962                 .type           = P_OCTAL,
963                 .p_class        = P_LOCAL,
964                 .offset         = LOCAL_VAR(force_create_mode),
965                 .special        = NULL,
966                 .enum_list      = NULL,
967                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
968         },
969         {
970                 .label          = "directory mask",
971                 .type           = P_OCTAL,
972                 .p_class        = P_LOCAL,
973                 .offset         = LOCAL_VAR(directory_mask),
974                 .special        = NULL,
975                 .enum_list      = NULL,
976                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
977         },
978         {
979                 .label          = "directory mode",
980                 .type           = P_OCTAL,
981                 .p_class        = P_LOCAL,
982                 .offset         = LOCAL_VAR(directory_mask),
983                 .special        = NULL,
984                 .enum_list      = NULL,
985                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
986         },
987         {
988                 .label          = "force directory mode",
989                 .type           = P_OCTAL,
990                 .p_class        = P_LOCAL,
991                 .offset         = LOCAL_VAR(force_directory_mode),
992                 .special        = NULL,
993                 .enum_list      = NULL,
994                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
995         },
996         {
997                 .label          = "force unknown acl user",
998                 .type           = P_BOOL,
999                 .p_class        = P_LOCAL,
1000                 .offset         = LOCAL_VAR(force_unknown_acl_user),
1001                 .special        = NULL,
1002                 .enum_list      = NULL,
1003                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1004         },
1005         {
1006                 .label          = "inherit permissions",
1007                 .type           = P_BOOL,
1008                 .p_class        = P_LOCAL,
1009                 .offset         = LOCAL_VAR(inherit_permissions),
1010                 .special        = NULL,
1011                 .enum_list      = NULL,
1012                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1013         },
1014         {
1015                 .label          = "inherit acls",
1016                 .type           = P_BOOL,
1017                 .p_class        = P_LOCAL,
1018                 .offset         = LOCAL_VAR(inherit_acls),
1019                 .special        = NULL,
1020                 .enum_list      = NULL,
1021                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1022         },
1023         {
1024                 .label          = "inherit owner",
1025                 .type           = P_BOOL,
1026                 .p_class        = P_LOCAL,
1027                 .offset         = LOCAL_VAR(inherit_owner),
1028                 .special        = NULL,
1029                 .enum_list      = NULL,
1030                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1031         },
1032         {
1033                 .label          = "guest only",
1034                 .type           = P_BOOL,
1035                 .p_class        = P_LOCAL,
1036                 .offset         = LOCAL_VAR(guest_only),
1037                 .special        = NULL,
1038                 .enum_list      = NULL,
1039                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1040         },
1041         {
1042                 .label          = "only guest",
1043                 .type           = P_BOOL,
1044                 .p_class        = P_LOCAL,
1045                 .offset         = LOCAL_VAR(guest_only),
1046                 .special        = NULL,
1047                 .enum_list      = NULL,
1048                 .flags          = FLAG_HIDE,
1049         },
1050         {
1051                 .label          = "administrative share",
1052                 .type           = P_BOOL,
1053                 .p_class        = P_LOCAL,
1054                 .offset         = LOCAL_VAR(administrative_share),
1055                 .special        = NULL,
1056                 .enum_list      = NULL,
1057                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1058         },
1059
1060         {
1061                 .label          = "guest ok",
1062                 .type           = P_BOOL,
1063                 .p_class        = P_LOCAL,
1064                 .offset         = LOCAL_VAR(guest_ok),
1065                 .special        = NULL,
1066                 .enum_list      = NULL,
1067                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1068         },
1069         {
1070                 .label          = "public",
1071                 .type           = P_BOOL,
1072                 .p_class        = P_LOCAL,
1073                 .offset         = LOCAL_VAR(guest_ok),
1074                 .special        = NULL,
1075                 .enum_list      = NULL,
1076                 .flags          = FLAG_HIDE,
1077         },
1078         {
1079                 .label          = "only user",
1080                 .type           = P_BOOL,
1081                 .p_class        = P_LOCAL,
1082                 .offset         = LOCAL_VAR(only_user),
1083                 .special        = NULL,
1084                 .enum_list      = NULL,
1085                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_DEPRECATED,
1086         },
1087         {
1088                 .label          = "hosts allow",
1089                 .type           = P_CMDLIST,
1090                 .p_class        = P_LOCAL,
1091                 .offset         = LOCAL_VAR(hosts_allow),
1092                 .special        = NULL,
1093                 .enum_list      = NULL,
1094                 .flags          = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1095         },
1096         {
1097                 .label          = "allow hosts",
1098                 .type           = P_CMDLIST,
1099                 .p_class        = P_LOCAL,
1100                 .offset         = LOCAL_VAR(hosts_allow),
1101                 .special        = NULL,
1102                 .enum_list      = NULL,
1103                 .flags          = FLAG_HIDE,
1104         },
1105         {
1106                 .label          = "hosts deny",
1107                 .type           = P_CMDLIST,
1108                 .p_class        = P_LOCAL,
1109                 .offset         = LOCAL_VAR(hosts_deny),
1110                 .special        = NULL,
1111                 .enum_list      = NULL,
1112                 .flags          = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1113         },
1114         {
1115                 .label          = "deny hosts",
1116                 .type           = P_CMDLIST,
1117                 .p_class        = P_LOCAL,
1118                 .offset         = LOCAL_VAR(hosts_deny),
1119                 .special        = NULL,
1120                 .enum_list      = NULL,
1121                 .flags          = FLAG_HIDE,
1122         },
1123         {
1124                 .label          = "preload modules",
1125                 .type           = P_CMDLIST,
1126                 .p_class        = P_GLOBAL,
1127                 .offset         = GLOBAL_VAR(preload_modules),
1128                 .special        = NULL,
1129                 .enum_list      = NULL,
1130                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1131         },
1132         {
1133                 .label          = "dedicated keytab file",
1134                 .type           = P_STRING,
1135                 .p_class        = P_GLOBAL,
1136                 .offset         = GLOBAL_VAR(dedicated_keytab_file),
1137                 .special        = NULL,
1138                 .enum_list      = NULL,
1139                 .flags          = FLAG_ADVANCED,
1140         },
1141         {
1142                 .label          = "kerberos method",
1143                 .type           = P_ENUM,
1144                 .p_class        = P_GLOBAL,
1145                 .offset         = GLOBAL_VAR(kerberos_method),
1146                 .special        = NULL,
1147                 .enum_list      = enum_kerberos_method,
1148                 .flags          = FLAG_ADVANCED,
1149         },
1150         {
1151                 .label          = "map untrusted to domain",
1152                 .type           = P_BOOL,
1153                 .p_class        = P_GLOBAL,
1154                 .offset         = GLOBAL_VAR(map_untrusted_to_domain),
1155                 .special        = NULL,
1156                 .enum_list      = NULL,
1157                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1158         },
1159
1160
1161         {N_("Logging Options"), P_SEP, P_SEPARATOR},
1162
1163         {
1164                 .label          = "log level",
1165                 .type           = P_STRING,
1166                 .p_class        = P_GLOBAL,
1167                 .offset         = GLOBAL_VAR(log_level),
1168                 .special        = handle_debug_list,
1169                 .enum_list      = NULL,
1170                 .flags          = FLAG_ADVANCED,
1171         },
1172         {
1173                 .label          = "debuglevel",
1174                 .type           = P_STRING,
1175                 .p_class        = P_GLOBAL,
1176                 .offset         = GLOBAL_VAR(log_level),
1177                 .special        = handle_debug_list,
1178                 .enum_list      = NULL,
1179                 .flags          = FLAG_HIDE,
1180         },
1181         {
1182                 .label          = "syslog",
1183                 .type           = P_INTEGER,
1184                 .p_class        = P_GLOBAL,
1185                 .offset         = GLOBAL_VAR(syslog),
1186                 .special        = NULL,
1187                 .enum_list      = NULL,
1188                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
1189         },
1190         {
1191                 .label          = "syslog only",
1192                 .type           = P_BOOL,
1193                 .p_class        = P_GLOBAL,
1194                 .offset         = GLOBAL_VAR(syslog_only),
1195                 .special        = NULL,
1196                 .enum_list      = NULL,
1197                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
1198         },
1199         {
1200                 .label          = "log file",
1201                 .type           = P_STRING,
1202                 .p_class        = P_GLOBAL,
1203                 .offset         = GLOBAL_VAR(logfile),
1204                 .special        = handle_logfile,
1205                 .enum_list      = NULL,
1206                 .flags          = FLAG_ADVANCED,
1207         },
1208         {
1209                 .label          = "logging",
1210                 .type           = P_STRING,
1211                 .p_class        = P_GLOBAL,
1212                 .offset         = GLOBAL_VAR(logging),
1213                 .special        = NULL,
1214                 .enum_list      = NULL,
1215                 .flags          = FLAG_ADVANCED,
1216         },
1217         {
1218                 .label          = "max log size",
1219                 .type           = P_BYTES,
1220                 .p_class        = P_GLOBAL,
1221                 .offset         = GLOBAL_VAR(max_log_size),
1222                 .special        = NULL,
1223                 .enum_list      = NULL,
1224                 .flags          = FLAG_ADVANCED,
1225         },
1226         {
1227                 .label          = "debug timestamp",
1228                 .type           = P_BOOL,
1229                 .p_class        = P_GLOBAL,
1230                 .offset         = GLOBAL_VAR(timestamp_logs),
1231                 .special        = NULL,
1232                 .enum_list      = NULL,
1233                 .flags          = FLAG_ADVANCED,
1234         },
1235         {
1236                 .label          = "timestamp logs",
1237                 .type           = P_BOOL,
1238                 .p_class        = P_GLOBAL,
1239                 .offset         = GLOBAL_VAR(timestamp_logs),
1240                 .special        = NULL,
1241                 .enum_list      = NULL,
1242                 .flags          = FLAG_ADVANCED,
1243         },
1244         {
1245                 .label          = "debug prefix timestamp",
1246                 .type           = P_BOOL,
1247                 .p_class        = P_GLOBAL,
1248                 .offset         = GLOBAL_VAR(debug_prefix_timestamp),
1249                 .special        = NULL,
1250                 .enum_list      = NULL,
1251                 .flags          = FLAG_ADVANCED,
1252         },
1253         {
1254                 .label          = "debug hires timestamp",
1255                 .type           = P_BOOL,
1256                 .p_class        = P_GLOBAL,
1257                 .offset         = GLOBAL_VAR(debug_hires_timestamp),
1258                 .special        = NULL,
1259                 .enum_list      = NULL,
1260                 .flags          = FLAG_ADVANCED,
1261         },
1262         {
1263                 .label          = "debug pid",
1264                 .type           = P_BOOL,
1265                 .p_class        = P_GLOBAL,
1266                 .offset         = GLOBAL_VAR(debug_pid),
1267                 .special        = NULL,
1268                 .enum_list      = NULL,
1269                 .flags          = FLAG_ADVANCED,
1270         },
1271         {
1272                 .label          = "debug uid",
1273                 .type           = P_BOOL,
1274                 .p_class        = P_GLOBAL,
1275                 .offset         = GLOBAL_VAR(debug_uid),
1276                 .special        = NULL,
1277                 .enum_list      = NULL,
1278                 .flags          = FLAG_ADVANCED,
1279         },
1280         {
1281                 .label          = "debug class",
1282                 .type           = P_BOOL,
1283                 .p_class        = P_GLOBAL,
1284                 .offset         = GLOBAL_VAR(debug_class),
1285                 .special        = NULL,
1286                 .enum_list      = NULL,
1287                 .flags          = FLAG_ADVANCED,
1288         },
1289         {
1290                 .label          = "enable core files",
1291                 .type           = P_BOOL,
1292                 .p_class        = P_GLOBAL,
1293                 .offset         = GLOBAL_VAR(enable_core_files),
1294                 .special        = NULL,
1295                 .enum_list      = NULL,
1296                 .flags          = FLAG_ADVANCED,
1297         },
1298
1299         {N_("Protocol Options"), P_SEP, P_SEPARATOR},
1300
1301         {
1302                 .label          = "allocation roundup size",
1303                 .type           = P_BYTES,
1304                 .p_class        = P_LOCAL,
1305                 .offset         = LOCAL_VAR(allocation_roundup_size),
1306                 .special        = NULL,
1307                 .enum_list      = NULL,
1308                 .flags          = FLAG_ADVANCED,
1309         },
1310         {
1311                 .label          = "aio read size",
1312                 .type           = P_BYTES,
1313                 .p_class        = P_LOCAL,
1314                 .offset         = LOCAL_VAR(aio_read_size),
1315                 .special        = NULL,
1316                 .enum_list      = NULL,
1317                 .flags          = FLAG_ADVANCED,
1318         },
1319         {
1320                 .label          = "aio write size",
1321                 .type           = P_BYTES,
1322                 .p_class        = P_LOCAL,
1323                 .offset         = LOCAL_VAR(aio_write_size),
1324                 .special        = NULL,
1325                 .enum_list      = NULL,
1326                 .flags          = FLAG_ADVANCED,
1327         },
1328         {
1329                 .label          = "aio write behind",
1330                 .type           = P_STRING,
1331                 .p_class        = P_LOCAL,
1332                 .offset         = LOCAL_VAR(aio_write_behind),
1333                 .special        = NULL,
1334                 .enum_list      = NULL,
1335                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1336         },
1337         {
1338                 .label          = "smb ports",
1339                 .type           = P_CMDLIST,
1340                 .p_class        = P_GLOBAL,
1341                 .offset         = GLOBAL_VAR(smb_ports),
1342                 .special        = handle_smb_ports,
1343                 .enum_list      = NULL,
1344                 .flags          = FLAG_ADVANCED,
1345         },
1346         {
1347                 .label          = "large readwrite",
1348                 .type           = P_BOOL,
1349                 .p_class        = P_GLOBAL,
1350                 .offset         = GLOBAL_VAR(large_readwrite),
1351                 .special        = NULL,
1352                 .enum_list      = NULL,
1353                 .flags          = FLAG_ADVANCED,
1354         },
1355         {
1356                 .label          = "server max protocol",
1357                 .type           = P_ENUM,
1358                 .p_class        = P_GLOBAL,
1359                 .offset         = GLOBAL_VAR(server_max_protocol),
1360                 .special        = NULL,
1361                 .enum_list      = enum_protocol,
1362                 .flags          = FLAG_ADVANCED,
1363         },
1364         {
1365                 .label          = "max protocol",
1366                 .type           = P_ENUM,
1367                 .p_class        = P_GLOBAL,
1368                 .offset         = GLOBAL_VAR(server_max_protocol),
1369                 .special        = NULL,
1370                 .enum_list      = enum_protocol,
1371                 .flags          = FLAG_ADVANCED,
1372         },
1373         {
1374                 .label          = "protocol",
1375                 .type           = P_ENUM,
1376                 .p_class        = P_GLOBAL,
1377                 .offset         = GLOBAL_VAR(server_max_protocol),
1378                 .special        = NULL,
1379                 .enum_list      = enum_protocol,
1380                 .flags          = FLAG_ADVANCED,
1381         },
1382         {
1383                 .label          = "server min protocol",
1384                 .type           = P_ENUM,
1385                 .p_class        = P_GLOBAL,
1386                 .offset         = GLOBAL_VAR(server_min_protocol),
1387                 .special        = NULL,
1388                 .enum_list      = enum_protocol,
1389                 .flags          = FLAG_ADVANCED,
1390         },
1391         {
1392                 .label          = "min protocol",
1393                 .type           = P_ENUM,
1394                 .p_class        = P_GLOBAL,
1395                 .offset         = GLOBAL_VAR(server_min_protocol),
1396                 .special        = NULL,
1397                 .enum_list      = enum_protocol,
1398                 .flags          = FLAG_ADVANCED,
1399         },
1400         {
1401                 .label          = "client max protocol",
1402                 .type           = P_ENUM,
1403                 .p_class        = P_GLOBAL,
1404                 .offset         = GLOBAL_VAR(_client_max_protocol),
1405                 .special        = NULL,
1406                 .enum_list      = enum_protocol,
1407                 .flags          = FLAG_ADVANCED,
1408         },
1409         {
1410                 .label          = "client min protocol",
1411                 .type           = P_ENUM,
1412                 .p_class        = P_GLOBAL,
1413                 .offset         = GLOBAL_VAR(client_min_protocol),
1414                 .special        = NULL,
1415                 .enum_list      = enum_protocol,
1416                 .flags          = FLAG_ADVANCED,
1417         },
1418         {
1419                 .label          = "unicode",
1420                 .type           = P_BOOL,
1421                 .p_class        = P_GLOBAL,
1422                 .offset         = GLOBAL_VAR(unicode),
1423                 .special        = NULL,
1424                 .enum_list      = NULL
1425         },
1426         {
1427                 .label          = "min receivefile size",
1428                 .type           = P_BYTES,
1429                 .p_class        = P_GLOBAL,
1430                 .offset         = GLOBAL_VAR(iminreceivefile),
1431                 .special        = NULL,
1432                 .enum_list      = NULL,
1433                 .flags          = FLAG_ADVANCED,
1434         },
1435         {
1436                 .label          = "read raw",
1437                 .type           = P_BOOL,
1438                 .p_class        = P_GLOBAL,
1439                 .offset         = GLOBAL_VAR(read_raw),
1440                 .special        = NULL,
1441                 .enum_list      = NULL,
1442                 .flags          = FLAG_ADVANCED,
1443         },
1444         {
1445                 .label          = "write raw",
1446                 .type           = P_BOOL,
1447                 .p_class        = P_GLOBAL,
1448                 .offset         = GLOBAL_VAR(write_raw),
1449                 .special        = NULL,
1450                 .enum_list      = NULL,
1451                 .flags          = FLAG_ADVANCED,
1452         },
1453         {
1454                 .label          = "disable netbios",
1455                 .type           = P_BOOL,
1456                 .p_class        = P_GLOBAL,
1457                 .offset         = GLOBAL_VAR(disable_netbios),
1458                 .special        = NULL,
1459                 .enum_list      = NULL,
1460                 .flags          = FLAG_ADVANCED,
1461         },
1462         {
1463                 .label          = "reset on zero vc",
1464                 .type           = P_BOOL,
1465                 .p_class        = P_GLOBAL,
1466                 .offset         = GLOBAL_VAR(reset_on_zero_vc),
1467                 .special        = NULL,
1468                 .enum_list      = NULL,
1469                 .flags          = FLAG_ADVANCED,
1470         },
1471         {
1472                 .label          = "log writeable files on exit",
1473                 .type           = P_BOOL,
1474                 .p_class        = P_GLOBAL,
1475                 .offset         = GLOBAL_VAR(log_writeable_files_on_exit),
1476                 .special        = NULL,
1477                 .enum_list      = NULL,
1478                 .flags          = FLAG_ADVANCED,
1479         },
1480         {
1481                 .label          = "defer sharing violations",
1482                 .type           = P_BOOL,
1483                 .p_class        = P_GLOBAL,
1484                 .offset         = GLOBAL_VAR(defer_sharing_violations),
1485                 .special        = NULL,
1486                 .enum_list      = NULL,
1487                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1488         },
1489         {
1490                 .label          = "ea support",
1491                 .type           = P_BOOL,
1492                 .p_class        = P_LOCAL,
1493                 .offset         = LOCAL_VAR(ea_support),
1494                 .special        = NULL,
1495                 .enum_list      = NULL,
1496                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1497         },
1498         {
1499                 .label          = "nt acl support",
1500                 .type           = P_BOOL,
1501                 .p_class        = P_LOCAL,
1502                 .offset         = LOCAL_VAR(nt_acl_support),
1503                 .special        = NULL,
1504                 .enum_list      = NULL,
1505                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1506         },
1507         {
1508                 .label          = "nt pipe support",
1509                 .type           = P_BOOL,
1510                 .p_class        = P_GLOBAL,
1511                 .offset         = GLOBAL_VAR(nt_pipe_support),
1512                 .special        = NULL,
1513                 .enum_list      = NULL,
1514                 .flags          = FLAG_ADVANCED,
1515         },
1516         {
1517                 .label          = "nt status support",
1518                 .type           = P_BOOL,
1519                 .p_class        = P_GLOBAL,
1520                 .offset         = GLOBAL_VAR(nt_status_support),
1521                 .special        = NULL,
1522                 .enum_list      = NULL,
1523                 .flags          = FLAG_ADVANCED,
1524         },
1525         {
1526                 .label          = "smbd profiling level",
1527                 .type           = P_ENUM,
1528                 .p_class        = P_GLOBAL,
1529                 .offset         = GLOBAL_VAR(smbd_profiling_level),
1530                 .special        = NULL,
1531                 .enum_list      = enum_smbd_profiling_level,
1532                 .flags          = FLAG_ADVANCED,
1533         },
1534         {
1535                 .label          = "profile acls",
1536                 .type           = P_BOOL,
1537                 .p_class        = P_LOCAL,
1538                 .offset         = LOCAL_VAR(profile_acls),
1539                 .special        = NULL,
1540                 .enum_list      = NULL,
1541                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1542         },
1543         {
1544                 .label          = "map acl inherit",
1545                 .type           = P_BOOL,
1546                 .p_class        = P_LOCAL,
1547                 .offset         = LOCAL_VAR(map_acl_inherit),
1548                 .special        = NULL,
1549                 .enum_list      = NULL,
1550                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1551         },
1552         {
1553                 .label          = "afs share",
1554                 .type           = P_BOOL,
1555                 .p_class        = P_LOCAL,
1556                 .offset         = LOCAL_VAR(afs_share),
1557                 .special        = NULL,
1558                 .enum_list      = NULL,
1559                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1560         },
1561         {
1562                 .label          = "max mux",
1563                 .type           = P_INTEGER,
1564                 .p_class        = P_GLOBAL,
1565                 .offset         = GLOBAL_VAR(max_mux),
1566                 .special        = NULL,
1567                 .enum_list      = NULL,
1568                 .flags          = FLAG_ADVANCED,
1569         },
1570         {
1571                 .label          = "max xmit",
1572                 .type           = P_BYTES,
1573                 .p_class        = P_GLOBAL,
1574                 .offset         = GLOBAL_VAR(max_xmit),
1575                 .special        = NULL,
1576                 .enum_list      = NULL,
1577                 .flags          = FLAG_ADVANCED,
1578         },
1579         {
1580                 .label          = "name resolve order",
1581                 .type           = P_CMDLIST,
1582                 .p_class        = P_GLOBAL,
1583                 .offset         = GLOBAL_VAR(name_resolve_order),
1584                 .special        = NULL,
1585                 .enum_list      = NULL,
1586                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
1587         },
1588         {
1589                 .label          = "max ttl",
1590                 .type           = P_INTEGER,
1591                 .p_class        = P_GLOBAL,
1592                 .offset         = GLOBAL_VAR(max_ttl),
1593                 .special        = NULL,
1594                 .enum_list      = NULL,
1595                 .flags          = FLAG_ADVANCED,
1596         },
1597         {
1598                 .label          = "max wins ttl",
1599                 .type           = P_INTEGER,
1600                 .p_class        = P_GLOBAL,
1601                 .offset         = GLOBAL_VAR(max_wins_ttl),
1602                 .special        = NULL,
1603                 .enum_list      = NULL,
1604                 .flags          = FLAG_ADVANCED,
1605         },
1606         {
1607                 .label          = "min wins ttl",
1608                 .type           = P_INTEGER,
1609                 .p_class        = P_GLOBAL,
1610                 .offset         = GLOBAL_VAR(min_wins_ttl),
1611                 .special        = NULL,
1612                 .enum_list      = NULL,
1613                 .flags          = FLAG_ADVANCED,
1614         },
1615         {
1616                 .label          = "time server",
1617                 .type           = P_BOOL,
1618                 .p_class        = P_GLOBAL,
1619                 .offset         = GLOBAL_VAR(time_server),
1620                 .special        = NULL,
1621                 .enum_list      = NULL,
1622                 .flags          = FLAG_ADVANCED,
1623         },
1624         {
1625                 .label          = "unix extensions",
1626                 .type           = P_BOOL,
1627                 .p_class        = P_GLOBAL,
1628                 .offset         = GLOBAL_VAR(unix_extensions),
1629                 .special        = NULL,
1630                 .enum_list      = NULL,
1631                 .flags          = FLAG_ADVANCED,
1632         },
1633         {
1634                 .label          = "use spnego",
1635                 .type           = P_BOOL,
1636                 .p_class        = P_GLOBAL,
1637                 .offset         = GLOBAL_VAR(use_spnego),
1638                 .special        = NULL,
1639                 .enum_list      = NULL,
1640                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
1641         },
1642         {
1643                 .label          = "client signing",
1644                 .type           = P_ENUM,
1645                 .p_class        = P_GLOBAL,
1646                 .offset         = GLOBAL_VAR(client_signing),
1647                 .special        = NULL,
1648                 .enum_list      = enum_smb_signing_vals,
1649                 .flags          = FLAG_ADVANCED,
1650         },
1651         {
1652                 .label          = "server signing",
1653                 .type           = P_ENUM,
1654                 .p_class        = P_GLOBAL,
1655                 .offset         = GLOBAL_VAR(server_signing),
1656                 .special        = NULL,
1657                 .enum_list      = enum_smb_signing_vals,
1658                 .flags          = FLAG_ADVANCED,
1659         },
1660         {
1661                 .label          = "smb encrypt",
1662                 .type           = P_ENUM,
1663                 .p_class        = P_LOCAL,
1664                 .offset         = LOCAL_VAR(smb_encrypt),
1665                 .special        = NULL,
1666                 .enum_list      = enum_smb_signing_vals,
1667                 .flags          = FLAG_ADVANCED,
1668         },
1669         {
1670                 .label          = "client use spnego",
1671                 .type           = P_BOOL,
1672                 .p_class        = P_GLOBAL,
1673                 .offset         = GLOBAL_VAR(client_use_spnego),
1674                 .special        = NULL,
1675                 .enum_list      = NULL,
1676                 .flags          = FLAG_ADVANCED,
1677         },
1678         {
1679                 .label          = "client ldap sasl wrapping",
1680                 .type           = P_ENUM,
1681                 .p_class        = P_GLOBAL,
1682                 .offset         = GLOBAL_VAR(client_ldap_sasl_wrapping),
1683                 .special        = NULL,
1684                 .enum_list      = enum_ldap_sasl_wrapping,
1685                 .flags          = FLAG_ADVANCED,
1686         },
1687         {
1688                 .label          = "enable asu support",
1689                 .type           = P_BOOL,
1690                 .p_class        = P_GLOBAL,
1691                 .offset         = GLOBAL_VAR(enable_asu_support),
1692                 .special        = NULL,
1693                 .enum_list      = NULL,
1694                 .flags          = FLAG_ADVANCED,
1695         },
1696         {
1697                 .label          = "svcctl list",
1698                 .type           = P_CMDLIST,
1699                 .p_class        = P_GLOBAL,
1700                 .offset         = GLOBAL_VAR(svcctl_list),
1701                 .special        = NULL,
1702                 .enum_list      = NULL,
1703                 .flags          = FLAG_ADVANCED,
1704         },
1705         {
1706                 .label          = "cldap port",
1707                 .type           = P_INTEGER,
1708                 .p_class        = P_GLOBAL,
1709                 .offset         = GLOBAL_VAR(cldap_port),
1710                 .special        = NULL,
1711                 .enum_list      = NULL
1712         },
1713         {
1714                 .label          = "dgram port",
1715                 .type           = P_INTEGER,
1716                 .p_class        = P_GLOBAL,
1717                 .offset         = GLOBAL_VAR(dgram_port),
1718                 .special        = NULL,
1719                 .enum_list      = NULL,
1720                 .flags          = FLAG_DEPRECATED
1721         },
1722         {
1723                 .label          = "nbt port",
1724                 .type           = P_INTEGER,
1725                 .p_class        = P_GLOBAL,
1726                 .offset         = GLOBAL_VAR(nbt_port),
1727                 .special        = NULL,
1728                 .enum_list      = NULL,
1729                 .flags          = FLAG_DEPRECATED
1730         },
1731         {
1732                 .label          = "krb5 port",
1733                 .type           = P_INTEGER,
1734                 .p_class        = P_GLOBAL,
1735                 .offset         = GLOBAL_VAR(krb5_port),
1736                 .special        = NULL,
1737                 .enum_list      = NULL
1738         },
1739         {
1740                 .label          = "kpasswd port",
1741                 .type           = P_INTEGER,
1742                 .p_class        = P_GLOBAL,
1743                 .offset         = GLOBAL_VAR(kpasswd_port),
1744                 .special        = NULL,
1745                 .enum_list      = NULL
1746         },
1747         {
1748                 .label          = "web port",
1749                 .type           = P_INTEGER,
1750                 .p_class        = P_GLOBAL,
1751                 .offset         = GLOBAL_VAR(web_port),
1752                 .special        = NULL,
1753                 .enum_list      = NULL
1754         },
1755         {
1756                 .label          = "rpc big endian",
1757                 .type           = P_BOOL,
1758                 .p_class        = P_GLOBAL,
1759                 .offset         = GLOBAL_VAR(rpc_big_endian),
1760                 .special        = NULL,
1761                 .enum_list      = NULL
1762         },
1763         {
1764                 .label          = "durable handles",
1765                 .type           = P_BOOL,
1766                 .p_class        = P_LOCAL,
1767                 .offset         = LOCAL_VAR(durable_handles),
1768                 .special        = NULL,
1769                 .enum_list      = NULL,
1770                 .flags          = FLAG_ADVANCED,
1771         },
1772
1773         {N_("Tuning Options"), P_SEP, P_SEPARATOR},
1774
1775         {
1776                 .label          = "block size",
1777                 .type           = P_BYTES,
1778                 .p_class        = P_LOCAL,
1779                 .offset         = LOCAL_VAR(block_size),
1780                 .special        = NULL,
1781                 .enum_list      = NULL,
1782                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1783         },
1784         {
1785                 .label          = "deadtime",
1786                 .type           = P_INTEGER,
1787                 .p_class        = P_GLOBAL,
1788                 .offset         = GLOBAL_VAR(deadtime),
1789                 .special        = NULL,
1790                 .enum_list      = NULL,
1791                 .flags          = FLAG_ADVANCED,
1792         },
1793         {
1794                 .label          = "getwd cache",
1795                 .type           = P_BOOL,
1796                 .p_class        = P_GLOBAL,
1797                 .offset         = GLOBAL_VAR(getwd_cache),
1798                 .special        = NULL,
1799                 .enum_list      = NULL,
1800                 .flags          = FLAG_ADVANCED,
1801         },
1802         {
1803                 .label          = "keepalive",
1804                 .type           = P_INTEGER,
1805                 .p_class        = P_GLOBAL,
1806                 .offset         = GLOBAL_VAR(keepalive),
1807                 .special        = NULL,
1808                 .enum_list      = NULL,
1809                 .flags          = FLAG_ADVANCED,
1810         },
1811         {
1812                 .label          = "change notify",
1813                 .type           = P_BOOL,
1814                 .p_class        = P_LOCAL,
1815                 .offset         = LOCAL_VAR(change_notify),
1816                 .special        = NULL,
1817                 .enum_list      = NULL,
1818                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1819         },
1820         {
1821                 .label          = "directory name cache size",
1822                 .type           = P_INTEGER,
1823                 .p_class        = P_LOCAL,
1824                 .offset         = LOCAL_VAR(directory_name_cache_size),
1825                 .special        = NULL,
1826                 .enum_list      = NULL,
1827                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1828         },
1829         {
1830                 .label          = "kernel change notify",
1831                 .type           = P_BOOL,
1832                 .p_class        = P_LOCAL,
1833                 .offset         = LOCAL_VAR(kernel_change_notify),
1834                 .special        = NULL,
1835                 .enum_list      = NULL,
1836                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1837         },
1838         {
1839                 .label          = "lpq cache time",
1840                 .type           = P_INTEGER,
1841                 .p_class        = P_GLOBAL,
1842                 .offset         = GLOBAL_VAR(lpq_cache_time),
1843                 .special        = NULL,
1844                 .enum_list      = NULL,
1845                 .flags          = FLAG_ADVANCED,
1846         },
1847         {
1848                 .label          = "max smbd processes",
1849                 .type           = P_INTEGER,
1850                 .p_class        = P_GLOBAL,
1851                 .offset         = GLOBAL_VAR(max_smbd_processes),
1852                 .special        = NULL,
1853                 .enum_list      = NULL,
1854                 .flags          = FLAG_ADVANCED,
1855         },
1856         {
1857                 .label          = "max connections",
1858                 .type           = P_INTEGER,
1859                 .p_class        = P_LOCAL,
1860                 .offset         = LOCAL_VAR(max_connections),
1861                 .special        = NULL,
1862                 .enum_list      = NULL,
1863                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1864         },
1865         {
1866                 .label          = "max disk size",
1867                 .type           = P_BYTES,
1868                 .p_class        = P_GLOBAL,
1869                 .offset         = GLOBAL_VAR(max_disk_size),
1870                 .special        = NULL,
1871                 .enum_list      = NULL,
1872                 .flags          = FLAG_ADVANCED,
1873         },
1874         {
1875                 .label          = "max open files",
1876                 .type           = P_INTEGER,
1877                 .p_class        = P_GLOBAL,
1878                 .offset         = GLOBAL_VAR(max_open_files),
1879                 .special        = NULL,
1880                 .enum_list      = NULL,
1881                 .flags          = FLAG_ADVANCED,
1882         },
1883         {
1884                 .label          = "min print space",
1885                 .type           = P_INTEGER,
1886                 .p_class        = P_LOCAL,
1887                 .offset         = LOCAL_VAR(min_print_space),
1888                 .special        = NULL,
1889                 .enum_list      = NULL,
1890                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
1891         },
1892         {
1893                 .label          = "socket options",
1894                 .type           = P_STRING,
1895                 .p_class        = P_GLOBAL,
1896                 .offset         = GLOBAL_VAR(socket_options),
1897                 .special        = NULL,
1898                 .enum_list      = NULL,
1899                 .flags          = FLAG_ADVANCED,
1900         },
1901         {
1902                 .label          = "strict allocate",
1903                 .type           = P_BOOL,
1904                 .p_class        = P_LOCAL,
1905                 .offset         = LOCAL_VAR(strict_allocate),
1906                 .special        = NULL,
1907                 .enum_list      = NULL,
1908                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1909         },
1910         {
1911                 .label          = "strict rename",
1912                 .type           = P_BOOL,
1913                 .p_class        = P_LOCAL,
1914                 .offset         = LOCAL_VAR(strict_rename),
1915                 .special        = NULL,
1916                 .enum_list      = NULL,
1917                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1918         },
1919         {
1920                 .label          = "strict sync",
1921                 .type           = P_BOOL,
1922                 .p_class        = P_LOCAL,
1923                 .offset         = LOCAL_VAR(strict_sync),
1924                 .special        = NULL,
1925                 .enum_list      = NULL,
1926                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1927         },
1928         {
1929                 .label          = "sync always",
1930                 .type           = P_BOOL,
1931                 .p_class        = P_LOCAL,
1932                 .offset         = LOCAL_VAR(sync_always),
1933                 .special        = NULL,
1934                 .enum_list      = NULL,
1935                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1936         },
1937         {
1938                 .label          = "use mmap",
1939                 .type           = P_BOOL,
1940                 .p_class        = P_GLOBAL,
1941                 .offset         = GLOBAL_VAR(use_mmap),
1942                 .special        = NULL,
1943                 .enum_list      = NULL,
1944                 .flags          = FLAG_ADVANCED,
1945         },
1946         {
1947                 .label          = "use sendfile",
1948                 .type           = P_BOOL,
1949                 .p_class        = P_LOCAL,
1950                 .offset         = LOCAL_VAR(_use_sendfile),
1951                 .special        = NULL,
1952                 .enum_list      = NULL,
1953                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1954         },
1955         {
1956                 .label          = "hostname lookups",
1957                 .type           = P_BOOL,
1958                 .p_class        = P_GLOBAL,
1959                 .offset         = GLOBAL_VAR(hostname_lookups),
1960                 .special        = NULL,
1961                 .enum_list      = NULL,
1962                 .flags          = FLAG_ADVANCED,
1963         },
1964         {
1965                 .label          = "write cache size",
1966                 .type           = P_BYTES,
1967                 .p_class        = P_LOCAL,
1968                 .offset         = LOCAL_VAR(write_cache_size),
1969                 .special        = NULL,
1970                 .enum_list      = NULL,
1971                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1972         },
1973         {
1974                 .label          = "name cache timeout",
1975                 .type           = P_INTEGER,
1976                 .p_class        = P_GLOBAL,
1977                 .offset         = GLOBAL_VAR(name_cache_timeout),
1978                 .special        = NULL,
1979                 .enum_list      = NULL,
1980                 .flags          = FLAG_ADVANCED,
1981         },
1982         {
1983                 .label          = "ctdbd socket",
1984                 .type           = P_STRING,
1985                 .p_class        = P_GLOBAL,
1986                 .offset         = GLOBAL_VAR(_ctdbd_socket),
1987                 .special        = NULL,
1988                 .enum_list      = NULL,
1989                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1990         },
1991         {
1992                 .label          = "cluster addresses",
1993                 .type           = P_CMDLIST,
1994                 .p_class        = P_GLOBAL,
1995                 .offset         = GLOBAL_VAR(cluster_addresses),
1996                 .special        = NULL,
1997                 .enum_list      = NULL,
1998                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1999         },
2000         {
2001                 .label          = "clustering",
2002                 .type           = P_BOOL,
2003                 .p_class        = P_GLOBAL,
2004                 .offset         = GLOBAL_VAR(clustering),
2005                 .special        = NULL,
2006                 .enum_list      = NULL,
2007                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
2008         },
2009         {
2010                 .label          = "ctdb timeout",
2011                 .type           = P_INTEGER,
2012                 .p_class        = P_GLOBAL,
2013                 .offset         = GLOBAL_VAR(ctdb_timeout),
2014                 .special        = NULL,
2015                 .enum_list      = NULL,
2016                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
2017         },
2018         {
2019                 .label          = "ctdb locktime warn threshold",
2020                 .type           = P_INTEGER,
2021                 .p_class        = P_GLOBAL,
2022                 .offset         = GLOBAL_VAR(ctdb_locktime_warn_threshold),
2023                 .special        = NULL,
2024                 .enum_list      = NULL,
2025                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
2026         },
2027         {
2028                 .label          = "smb2 max read",
2029                 .type           = P_BYTES,
2030                 .p_class        = P_GLOBAL,
2031                 .offset         = GLOBAL_VAR(smb2_max_read),
2032                 .special        = NULL,
2033                 .enum_list      = NULL,
2034                 .flags          = FLAG_ADVANCED,
2035         },
2036         {
2037                 .label          = "smb2 max write",
2038                 .type           = P_BYTES,
2039                 .p_class        = P_GLOBAL,
2040                 .offset         = GLOBAL_VAR(smb2_max_write),
2041                 .special        = NULL,
2042                 .enum_list      = NULL,
2043                 .flags          = FLAG_ADVANCED,
2044         },
2045         {
2046                 .label          = "smb2 max trans",
2047                 .type           = P_BYTES,
2048                 .p_class        = P_GLOBAL,
2049                 .offset         = GLOBAL_VAR(smb2_max_trans),
2050                 .special        = NULL,
2051                 .enum_list      = NULL,
2052                 .flags          = FLAG_ADVANCED,
2053         },
2054         {
2055                 .label          = "smb2 max credits",
2056                 .type           = P_INTEGER,
2057                 .p_class        = P_GLOBAL,
2058                 .offset         = GLOBAL_VAR(ismb2_max_credits),
2059                 .special        = NULL,
2060                 .enum_list      = NULL,
2061                 .flags          = FLAG_ADVANCED,
2062         },
2063
2064         {N_("Printing Options"), P_SEP, P_SEPARATOR},
2065
2066         {
2067                 .label          = "max reported print jobs",
2068                 .type           = P_INTEGER,
2069                 .p_class        = P_LOCAL,
2070                 .offset         = LOCAL_VAR(max_reported_print_jobs),
2071                 .special        = NULL,
2072                 .enum_list      = NULL,
2073                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2074         },
2075         {
2076                 .label          = "max print jobs",
2077                 .type           = P_INTEGER,
2078                 .p_class        = P_LOCAL,
2079                 .offset         = LOCAL_VAR(iMaxPrintJobs),
2080                 .special        = NULL,
2081                 .enum_list      = NULL,
2082                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2083         },
2084         {
2085                 .label          = "load printers",
2086                 .type           = P_BOOL,
2087                 .p_class        = P_GLOBAL,
2088                 .offset         = GLOBAL_VAR(load_printers),
2089                 .special        = NULL,
2090                 .enum_list      = NULL,
2091                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2092         },
2093         {
2094                 .label          = "printcap cache time",
2095                 .type           = P_INTEGER,
2096                 .p_class        = P_GLOBAL,
2097                 .offset         = GLOBAL_VAR(printcap_cache_time),
2098                 .special        = NULL,
2099                 .enum_list      = NULL,
2100                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2101         },
2102         {
2103                 .label          = "printcap name",
2104                 .type           = P_STRING,
2105                 .p_class        = P_GLOBAL,
2106                 .offset         = GLOBAL_VAR(szPrintcapname),
2107                 .special        = NULL,
2108                 .enum_list      = NULL,
2109                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2110         },
2111         {
2112                 .label          = "printcap",
2113                 .type           = P_STRING,
2114                 .p_class        = P_GLOBAL,
2115                 .offset         = GLOBAL_VAR(szPrintcapname),
2116                 .special        = NULL,
2117                 .enum_list      = NULL,
2118                 .flags          = FLAG_HIDE,
2119         },
2120         {
2121                 .label          = "printable",
2122                 .type           = P_BOOL,
2123                 .p_class        = P_LOCAL,
2124                 .offset         = LOCAL_VAR(printable),
2125                 .special        = NULL,
2126                 .enum_list      = NULL,
2127                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2128         },
2129         {
2130                 .label          = "print notify backchannel",
2131                 .type           = P_BOOL,
2132                 .p_class        = P_LOCAL,
2133                 .offset         = LOCAL_VAR(print_notify_backchannel),
2134                 .special        = NULL,
2135                 .enum_list      = NULL,
2136                 .flags          = FLAG_ADVANCED,
2137         },
2138         {
2139                 .label          = "print ok",
2140                 .type           = P_BOOL,
2141                 .p_class        = P_LOCAL,
2142                 .offset         = LOCAL_VAR(printable),
2143                 .special        = NULL,
2144                 .enum_list      = NULL,
2145                 .flags          = FLAG_HIDE,
2146         },
2147         {
2148                 .label          = "printing",
2149                 .type           = P_ENUM,
2150                 .p_class        = P_LOCAL,
2151                 .offset         = LOCAL_VAR(printing),
2152                 .special        = handle_printing,
2153                 .enum_list      = enum_printing,
2154                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2155         },
2156         {
2157                 .label          = "cups options",
2158                 .type           = P_STRING,
2159                 .p_class        = P_LOCAL,
2160                 .offset         = LOCAL_VAR(cups_options),
2161                 .special        = NULL,
2162                 .enum_list      = NULL,
2163                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2164         },
2165         {
2166                 .label          = "cups server",
2167                 .type           = P_STRING,
2168                 .p_class        = P_GLOBAL,
2169                 .offset         = GLOBAL_VAR(cups_server),
2170                 .special        = NULL,
2171                 .enum_list      = NULL,
2172                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2173         },
2174         {
2175                 .label          = "cups encrypt",
2176                 .type           = P_ENUM,
2177                 .p_class        = P_GLOBAL,
2178                 .offset         = GLOBAL_VAR(CupsEncrypt),
2179                 .special        = NULL,
2180                 .enum_list      = enum_bool_auto,
2181                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2182         },
2183         {
2184
2185                 .label          = "cups connection timeout",
2186                 .type           = P_INTEGER,
2187                 .p_class        = P_GLOBAL,
2188                 .offset         = GLOBAL_VAR(cups_connection_timeout),
2189                 .special        = NULL,
2190                 .enum_list      = NULL,
2191                 .flags          = FLAG_ADVANCED,
2192         },
2193         {
2194                 .label          = "iprint server",
2195                 .type           = P_STRING,
2196                 .p_class        = P_GLOBAL,
2197                 .offset         = GLOBAL_VAR(iprint_server),
2198                 .special        = NULL,
2199                 .enum_list      = NULL,
2200                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2201         },
2202         {
2203                 .label          = "print command",
2204                 .type           = P_STRING,
2205                 .p_class        = P_LOCAL,
2206                 .offset         = LOCAL_VAR(print_command),
2207                 .special        = NULL,
2208                 .enum_list      = NULL,
2209                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2210         },
2211         {
2212                 .label          = "disable spoolss",
2213                 .type           = P_BOOL,
2214                 .p_class        = P_GLOBAL,
2215                 .offset         = GLOBAL_VAR(_disable_spoolss),
2216                 .special        = NULL,
2217                 .enum_list      = NULL,
2218                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2219         },
2220         {
2221                 .label          = "enable spoolss",
2222                 .type           = P_BOOLREV,
2223                 .p_class        = P_GLOBAL,
2224                 .offset         = GLOBAL_VAR(_disable_spoolss),
2225                 .special        = NULL,
2226                 .enum_list      = NULL,
2227                 .flags          = FLAG_HIDE,
2228         },
2229         {
2230                 .label          = "lpq command",
2231                 .type           = P_STRING,
2232                 .p_class        = P_LOCAL,
2233                 .offset         = LOCAL_VAR(lpq_command),
2234                 .special        = NULL,
2235                 .enum_list      = NULL,
2236                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2237         },
2238         {
2239                 .label          = "lprm command",
2240                 .type           = P_STRING,
2241                 .p_class        = P_LOCAL,
2242                 .offset         = LOCAL_VAR(lprm_command),
2243                 .special        = NULL,
2244                 .enum_list      = NULL,
2245                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2246         },
2247         {
2248                 .label          = "lppause command",
2249                 .type           = P_STRING,
2250                 .p_class        = P_LOCAL,
2251                 .offset         = LOCAL_VAR(lppause_command),
2252                 .special        = NULL,
2253                 .enum_list      = NULL,
2254                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2255         },
2256         {
2257                 .label          = "lpresume command",
2258                 .type           = P_STRING,
2259                 .p_class        = P_LOCAL,
2260                 .offset         = LOCAL_VAR(lpresume_command),
2261                 .special        = NULL,
2262                 .enum_list      = NULL,
2263                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2264         },
2265         {
2266                 .label          = "queuepause command",
2267                 .type           = P_STRING,
2268                 .p_class        = P_LOCAL,
2269                 .offset         = LOCAL_VAR(queuepause_command),
2270                 .special        = NULL,
2271                 .enum_list      = NULL,
2272                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2273         },
2274         {
2275                 .label          = "queueresume command",
2276                 .type           = P_STRING,
2277                 .p_class        = P_LOCAL,
2278                 .offset         = LOCAL_VAR(queueresume_command),
2279                 .special        = NULL,
2280                 .enum_list      = NULL,
2281                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2282         },
2283         {
2284                 .label          = "addport command",
2285                 .type           = P_STRING,
2286                 .p_class        = P_GLOBAL,
2287                 .offset         = GLOBAL_VAR(addport_command),
2288                 .special        = NULL,
2289                 .enum_list      = NULL,
2290                 .flags          = FLAG_ADVANCED,
2291         },
2292         {
2293                 .label          = "enumports command",
2294                 .type           = P_STRING,
2295                 .p_class        = P_GLOBAL,
2296                 .offset         = GLOBAL_VAR(enumports_command),
2297                 .special        = NULL,
2298                 .enum_list      = NULL,
2299                 .flags          = FLAG_ADVANCED,
2300         },
2301         {
2302                 .label          = "addprinter command",
2303                 .type           = P_STRING,
2304                 .p_class        = P_GLOBAL,
2305                 .offset         = GLOBAL_VAR(addprinter_command),
2306                 .special        = NULL,
2307                 .enum_list      = NULL,
2308                 .flags          = FLAG_ADVANCED,
2309         },
2310         {
2311                 .label          = "deleteprinter command",
2312                 .type           = P_STRING,
2313                 .p_class        = P_GLOBAL,
2314                 .offset         = GLOBAL_VAR(deleteprinter_command),
2315                 .special        = NULL,
2316                 .enum_list      = NULL,
2317                 .flags          = FLAG_ADVANCED,
2318         },
2319         {
2320                 .label          = "show add printer wizard",
2321                 .type           = P_BOOL,
2322                 .p_class        = P_GLOBAL,
2323                 .offset         = GLOBAL_VAR(show_add_printer_wizard),
2324                 .special        = NULL,
2325                 .enum_list      = NULL,
2326                 .flags          = FLAG_ADVANCED,
2327         },
2328         {
2329                 .label          = "os2 driver map",
2330                 .type           = P_STRING,
2331                 .p_class        = P_GLOBAL,
2332                 .offset         = GLOBAL_VAR(os2_driver_map),
2333                 .special        = NULL,
2334                 .enum_list      = NULL,
2335                 .flags          = FLAG_ADVANCED,
2336         },
2337
2338         {
2339                 .label          = "printer name",
2340                 .type           = P_STRING,
2341                 .p_class        = P_LOCAL,
2342                 .offset         = LOCAL_VAR(_printername),
2343                 .special        = NULL,
2344                 .enum_list      = NULL,
2345                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2346         },
2347         {
2348                 .label          = "printer",
2349                 .type           = P_STRING,
2350                 .p_class        = P_LOCAL,
2351                 .offset         = LOCAL_VAR(_printername),
2352                 .special        = NULL,
2353                 .enum_list      = NULL,
2354                 .flags          = FLAG_HIDE,
2355         },
2356         {
2357                 .label          = "use client driver",
2358                 .type           = P_BOOL,
2359                 .p_class        = P_LOCAL,
2360                 .offset         = LOCAL_VAR(use_client_driver),
2361                 .special        = NULL,
2362                 .enum_list      = NULL,
2363                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2364         },
2365         {
2366                 .label          = "default devmode",
2367                 .type           = P_BOOL,
2368                 .p_class        = P_LOCAL,
2369                 .offset         = LOCAL_VAR(default_devmode),
2370                 .special        = NULL,
2371                 .enum_list      = NULL,
2372                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2373         },
2374         {
2375                 .label          = "force printername",
2376                 .type           = P_BOOL,
2377                 .p_class        = P_LOCAL,
2378                 .offset         = LOCAL_VAR(force_printername),
2379                 .special        = NULL,
2380                 .enum_list      = NULL,
2381                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2382         },
2383         {
2384                 .label          = "printjob username",
2385                 .type           = P_STRING,
2386                 .p_class        = P_LOCAL,
2387                 .offset         = LOCAL_VAR(printjob_username),
2388                 .special        = NULL,
2389                 .enum_list      = NULL,
2390                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2391         },
2392
2393         {N_("Filename Handling"), P_SEP, P_SEPARATOR},
2394
2395         {
2396                 .label          = "mangling method",
2397                 .type           = P_STRING,
2398                 .p_class        = P_GLOBAL,
2399                 .offset         = GLOBAL_VAR(mangling_method),
2400                 .special        = NULL,
2401                 .enum_list      = NULL,
2402                 .flags          = FLAG_ADVANCED,
2403         },
2404         {
2405                 .label          = "mangle prefix",
2406                 .type           = P_INTEGER,
2407                 .p_class        = P_GLOBAL,
2408                 .offset         = GLOBAL_VAR(mangle_prefix),
2409                 .special        = NULL,
2410                 .enum_list      = NULL,
2411                 .flags          = FLAG_ADVANCED,
2412         },
2413
2414         {
2415                 .label          = "default case",
2416                 .type           = P_ENUM,
2417                 .p_class        = P_LOCAL,
2418                 .offset         = LOCAL_VAR(default_case),
2419                 .special        = NULL,
2420                 .enum_list      = enum_case,
2421                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
2422         },
2423         {
2424                 .label          = "case sensitive",
2425                 .type           = P_ENUM,
2426                 .p_class        = P_LOCAL,
2427                 .offset         = LOCAL_VAR(case_sensitive),
2428                 .special        = NULL,
2429                 .enum_list      = enum_bool_auto,
2430                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2431         },
2432         {
2433                 .label          = "casesignames",
2434                 .type           = P_ENUM,
2435                 .p_class        = P_LOCAL,
2436                 .offset         = LOCAL_VAR(case_sensitive),
2437                 .special        = NULL,
2438                 .enum_list      = enum_bool_auto,
2439                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL | FLAG_HIDE,
2440         },
2441         {
2442                 .label          = "preserve case",
2443                 .type           = P_BOOL,
2444                 .p_class        = P_LOCAL,
2445                 .offset         = LOCAL_VAR(preserve_case),
2446                 .special        = NULL,
2447                 .enum_list      = NULL,
2448                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2449         },
2450         {
2451                 .label          = "short preserve case",
2452                 .type           = P_BOOL,
2453                 .p_class        = P_LOCAL,
2454                 .offset         = LOCAL_VAR(short_preserve_case),
2455                 .special        = NULL,
2456                 .enum_list      = NULL,
2457                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2458         },
2459         {
2460                 .label          = "mangling char",
2461                 .type           = P_CHAR,
2462                 .p_class        = P_LOCAL,
2463                 .offset         = LOCAL_VAR(mangling_char),
2464                 .special        = NULL,
2465                 .enum_list      = NULL,
2466                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2467         },
2468         {
2469                 .label          = "hide dot files",
2470                 .type           = P_BOOL,
2471                 .p_class        = P_LOCAL,
2472                 .offset         = LOCAL_VAR(hide_dot_files),
2473                 .special        = NULL,
2474                 .enum_list      = NULL,
2475                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2476         },
2477         {
2478                 .label          = "hide special files",
2479                 .type           = P_BOOL,
2480                 .p_class        = P_LOCAL,
2481                 .offset         = LOCAL_VAR(hide_special_files),
2482                 .special        = NULL,
2483                 .enum_list      = NULL,
2484                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2485         },
2486         {
2487                 .label          = "hide unreadable",
2488                 .type           = P_BOOL,
2489                 .p_class        = P_LOCAL,
2490                 .offset         = LOCAL_VAR(hide_unreadable),
2491                 .special        = NULL,
2492                 .enum_list      = NULL,
2493                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2494         },
2495         {
2496                 .label          = "hide unwriteable files",
2497                 .type           = P_BOOL,
2498                 .p_class        = P_LOCAL,
2499                 .offset         = LOCAL_VAR(hide_unwriteable_files),
2500                 .special        = NULL,
2501                 .enum_list      = NULL,
2502                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2503         },
2504         {
2505                 .label          = "delete veto files",
2506                 .type           = P_BOOL,
2507                 .p_class        = P_LOCAL,
2508                 .offset         = LOCAL_VAR(delete_veto_files),
2509                 .special        = NULL,
2510                 .enum_list      = NULL,
2511                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2512         },
2513         {
2514                 .label          = "veto files",
2515                 .type           = P_STRING,
2516                 .p_class        = P_LOCAL,
2517                 .offset         = LOCAL_VAR(veto_files),
2518                 .special        = NULL,
2519                 .enum_list      = NULL,
2520                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2521         },
2522         {
2523                 .label          = "hide files",
2524                 .type           = P_STRING,
2525                 .p_class        = P_LOCAL,
2526                 .offset         = LOCAL_VAR(hide_files),
2527                 .special        = NULL,
2528                 .enum_list      = NULL,
2529                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2530         },
2531         {
2532                 .label          = "veto oplock files",
2533                 .type           = P_STRING,
2534                 .p_class        = P_LOCAL,
2535                 .offset         = LOCAL_VAR(veto_oplock_files),
2536                 .special        = NULL,
2537                 .enum_list      = NULL,
2538                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2539         },
2540         {
2541                 .label          = "map archive",
2542                 .type           = P_BOOL,
2543                 .p_class        = P_LOCAL,
2544                 .offset         = LOCAL_VAR(map_archive),
2545                 .special        = NULL,
2546                 .enum_list      = NULL,
2547                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2548         },
2549         {
2550                 .label          = "map hidden",
2551                 .type           = P_BOOL,
2552                 .p_class        = P_LOCAL,
2553                 .offset         = LOCAL_VAR(map_hidden),
2554                 .special        = NULL,
2555                 .enum_list      = NULL,
2556                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2557         },
2558         {
2559                 .label          = "map system",
2560                 .type           = P_BOOL,
2561                 .p_class        = P_LOCAL,
2562                 .offset         = LOCAL_VAR(map_system),
2563                 .special        = NULL,
2564                 .enum_list      = NULL,
2565                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2566         },
2567         {
2568                 .label          = "map readonly",
2569                 .type           = P_ENUM,
2570                 .p_class        = P_LOCAL,
2571                 .offset         = LOCAL_VAR(map_readonly),
2572                 .special        = NULL,
2573                 .enum_list      = enum_map_readonly,
2574                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2575         },
2576         {
2577                 .label          = "mangled names",
2578                 .type           = P_BOOL,
2579                 .p_class        = P_LOCAL,
2580                 .offset         = LOCAL_VAR(mangled_names),
2581                 .special        = NULL,
2582                 .enum_list      = NULL,
2583                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2584         },
2585         {
2586                 .label          = "max stat cache size",
2587                 .type           = P_INTEGER,
2588                 .p_class        = P_GLOBAL,
2589                 .offset         = GLOBAL_VAR(max_stat_cache_size),
2590                 .special        = NULL,
2591                 .enum_list      = NULL,
2592                 .flags          = FLAG_ADVANCED,
2593         },
2594         {
2595                 .label          = "stat cache",
2596                 .type           = P_BOOL,
2597                 .p_class        = P_GLOBAL,
2598                 .offset         = GLOBAL_VAR(stat_cache),
2599                 .special        = NULL,
2600                 .enum_list      = NULL,
2601                 .flags          = FLAG_ADVANCED,
2602         },
2603         {
2604                 .label          = "store dos attributes",
2605                 .type           = P_BOOL,
2606                 .p_class        = P_LOCAL,
2607                 .offset         = LOCAL_VAR(store_dos_attributes),
2608                 .special        = NULL,
2609                 .enum_list      = NULL,
2610                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2611         },
2612         {
2613                 .label          = "dmapi support",
2614                 .type           = P_BOOL,
2615                 .p_class        = P_LOCAL,
2616                 .offset         = LOCAL_VAR(dmapi_support),
2617                 .special        = NULL,
2618                 .enum_list      = NULL,
2619                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2620         },
2621
2622
2623         {N_("Domain Options"), P_SEP, P_SEPARATOR},
2624
2625         {
2626                 .label          = "machine password timeout",
2627                 .type           = P_INTEGER,
2628                 .p_class        = P_GLOBAL,
2629                 .offset         = GLOBAL_VAR(machine_password_timeout),
2630                 .special        = NULL,
2631                 .enum_list      = NULL,
2632                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
2633         },
2634
2635         {N_("Logon Options"), P_SEP, P_SEPARATOR},
2636
2637         {
2638                 .label          = "add user script",
2639                 .type           = P_STRING,
2640                 .p_class        = P_GLOBAL,
2641                 .offset         = GLOBAL_VAR(add_user_script),
2642                 .special        = NULL,
2643                 .enum_list      = NULL,
2644                 .flags          = FLAG_ADVANCED,
2645         },
2646         {
2647                 .label          = "rename user script",
2648                 .type           = P_STRING,
2649                 .p_class        = P_GLOBAL,
2650                 .offset         = GLOBAL_VAR(rename_user_script),
2651                 .special        = NULL,
2652                 .enum_list      = NULL,
2653                 .flags          = FLAG_ADVANCED,
2654         },
2655         {
2656                 .label          = "delete user script",
2657                 .type           = P_STRING,
2658                 .p_class        = P_GLOBAL,
2659                 .offset         = GLOBAL_VAR(delete_user_script),
2660                 .special        = NULL,
2661                 .enum_list      = NULL,
2662                 .flags          = FLAG_ADVANCED,
2663         },
2664         {
2665                 .label          = "add group script",
2666                 .type           = P_STRING,
2667                 .p_class        = P_GLOBAL,
2668                 .offset         = GLOBAL_VAR(add_group_script),
2669                 .special        = NULL,
2670                 .enum_list      = NULL,
2671                 .flags          = FLAG_ADVANCED,
2672         },
2673         {
2674                 .label          = "delete group script",
2675                 .type           = P_STRING,
2676                 .p_class        = P_GLOBAL,
2677                 .offset         = GLOBAL_VAR(delete_group_script),
2678                 .special        = NULL,
2679                 .enum_list      = NULL,
2680                 .flags          = FLAG_ADVANCED,
2681         },
2682         {
2683                 .label          = "add user to group script",
2684                 .type           = P_STRING,
2685                 .p_class        = P_GLOBAL,
2686                 .offset         = GLOBAL_VAR(add_user_to_group_script),
2687                 .special        = NULL,
2688                 .enum_list      = NULL,
2689                 .flags          = FLAG_ADVANCED,
2690         },
2691         {
2692                 .label          = "delete user from group script",
2693                 .type           = P_STRING,
2694                 .p_class        = P_GLOBAL,
2695                 .offset         = GLOBAL_VAR(delete_user_from_group_script),
2696                 .special        = NULL,
2697                 .enum_list      = NULL,
2698                 .flags          = FLAG_ADVANCED,
2699         },
2700         {
2701                 .label          = "set primary group script",
2702                 .type           = P_STRING,
2703                 .p_class        = P_GLOBAL,
2704                 .offset         = GLOBAL_VAR(set_primary_group_script),
2705                 .special        = NULL,
2706                 .enum_list      = NULL,
2707                 .flags          = FLAG_ADVANCED,
2708         },
2709         {
2710                 .label          = "add machine script",
2711                 .type           = P_STRING,
2712                 .p_class        = P_GLOBAL,
2713                 .offset         = GLOBAL_VAR(add_machine_script),
2714                 .special        = NULL,
2715                 .enum_list      = NULL,
2716                 .flags          = FLAG_ADVANCED,
2717         },
2718         {
2719                 .label          = "shutdown script",
2720                 .type           = P_STRING,
2721                 .p_class        = P_GLOBAL,
2722                 .offset         = GLOBAL_VAR(shutdown_script),
2723                 .special        = NULL,
2724                 .enum_list      = NULL,
2725                 .flags          = FLAG_ADVANCED,
2726         },
2727         {
2728                 .label          = "abort shutdown script",
2729                 .type           = P_STRING,
2730                 .p_class        = P_GLOBAL,
2731                 .offset         = GLOBAL_VAR(abort_shutdown_script),
2732                 .special        = NULL,
2733                 .enum_list      = NULL,
2734                 .flags          = FLAG_ADVANCED,
2735         },
2736         {
2737                 .label          = "username map script",
2738                 .type           = P_STRING,
2739                 .p_class        = P_GLOBAL,
2740                 .offset         = GLOBAL_VAR(username_map_script),
2741                 .special        = NULL,
2742                 .enum_list      = NULL,
2743                 .flags          = FLAG_ADVANCED,
2744         },
2745         {
2746                 .label          = "username map cache time",
2747                 .type           = P_INTEGER,
2748                 .p_class        = P_GLOBAL,
2749                 .offset         = GLOBAL_VAR(username_map_cache_time),
2750                 .special        = NULL,
2751                 .enum_list      = NULL,
2752                 .flags          = FLAG_ADVANCED,
2753         },
2754         {
2755                 .label          = "logon script",
2756                 .type           = P_STRING,
2757                 .p_class        = P_GLOBAL,
2758                 .offset         = GLOBAL_VAR(logon_script),
2759                 .special        = NULL,
2760                 .enum_list      = NULL,
2761                 .flags          = FLAG_ADVANCED,
2762         },
2763         {
2764                 .label          = "logon path",
2765                 .type           = P_STRING,
2766                 .p_class        = P_GLOBAL,
2767                 .offset         = GLOBAL_VAR(logon_path),
2768                 .special        = NULL,
2769                 .enum_list      = NULL,
2770                 .flags          = FLAG_ADVANCED,
2771         },
2772         {
2773                 .label          = "logon drive",
2774                 .type           = P_STRING,
2775                 .p_class        = P_GLOBAL,
2776                 .offset         = GLOBAL_VAR(logon_drive),
2777                 .special        = NULL,
2778                 .enum_list      = NULL,
2779                 .flags          = FLAG_ADVANCED,
2780         },
2781         {
2782                 .label          = "logon home",
2783                 .type           = P_STRING,
2784                 .p_class        = P_GLOBAL,
2785                 .offset         = GLOBAL_VAR(logon_home),
2786                 .special        = NULL,
2787                 .enum_list      = NULL,
2788                 .flags          = FLAG_ADVANCED,
2789         },
2790         {
2791                 .label          = "domain logons",
2792                 .type           = P_BOOL,
2793                 .p_class        = P_GLOBAL,
2794                 .offset         = GLOBAL_VAR(_domain_logons),
2795                 .special        = NULL,
2796                 .enum_list      = NULL,
2797                 .flags          = FLAG_ADVANCED,
2798         },
2799
2800         {
2801                 .label          = "init logon delayed hosts",
2802                 .type           = P_CMDLIST,
2803                 .p_class        = P_GLOBAL,
2804                 .offset         = GLOBAL_VAR(init_logon_delayed_hosts),
2805                 .special        = NULL,
2806                 .enum_list      = NULL,
2807                 .flags          = FLAG_ADVANCED,
2808         },
2809
2810         {
2811                 .label          = "init logon delay",
2812                 .type           = P_INTEGER,
2813                 .p_class        = P_GLOBAL,
2814                 .offset         = GLOBAL_VAR(init_logon_delay),
2815                 .special        = NULL,
2816                 .enum_list      = NULL,
2817                 .flags          = FLAG_ADVANCED,
2818
2819         },
2820
2821         {N_("Browse Options"), P_SEP, P_SEPARATOR},
2822
2823         {
2824                 .label          = "os level",
2825                 .type           = P_INTEGER,
2826                 .p_class        = P_GLOBAL,
2827                 .offset         = GLOBAL_VAR(os_level),
2828                 .special        = NULL,
2829                 .enum_list      = NULL,
2830                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2831         },
2832         {
2833                 .label          = "lm announce",
2834                 .type           = P_ENUM,
2835                 .p_class        = P_GLOBAL,
2836                 .offset         = GLOBAL_VAR(lm_announce),
2837                 .special        = NULL,
2838                 .enum_list      = enum_bool_auto,
2839                 .flags          = FLAG_ADVANCED,
2840         },
2841         {
2842                 .label          = "lm interval",
2843                 .type           = P_INTEGER,
2844                 .p_class        = P_GLOBAL,
2845                 .offset         = GLOBAL_VAR(lm_interval),
2846                 .special        = NULL,
2847                 .enum_list      = NULL,
2848                 .flags          = FLAG_ADVANCED,
2849         },
2850         {
2851                 .label          = "preferred master",
2852                 .type           = P_ENUM,
2853                 .p_class        = P_GLOBAL,
2854                 .offset         = GLOBAL_VAR(iPreferredMaster),
2855                 .special        = NULL,
2856                 .enum_list      = enum_bool_auto,
2857                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2858         },
2859         {
2860                 .label          = "prefered master",
2861                 .type           = P_ENUM,
2862                 .p_class        = P_GLOBAL,
2863                 .offset         = GLOBAL_VAR(iPreferredMaster),
2864                 .special        = NULL,
2865                 .enum_list      = enum_bool_auto,
2866                 .flags          = FLAG_HIDE,
2867         },
2868         {
2869                 .label          = "local master",
2870                 .type           = P_BOOL,
2871                 .p_class        = P_GLOBAL,
2872                 .offset         = GLOBAL_VAR(local_master),
2873                 .special        = NULL,
2874                 .enum_list      = NULL,
2875                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2876         },
2877         {
2878                 .label          = "domain master",
2879                 .type           = P_ENUM,
2880                 .p_class        = P_GLOBAL,
2881                 .offset         = GLOBAL_VAR(_domain_master),
2882                 .special        = NULL,
2883                 .enum_list      = enum_bool_auto,
2884                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2885         },
2886         {
2887                 .label          = "browse list",
2888                 .type           = P_BOOL,
2889                 .p_class        = P_GLOBAL,
2890                 .offset         = GLOBAL_VAR(browse_list),
2891                 .special        = NULL,
2892                 .enum_list      = NULL,
2893                 .flags          = FLAG_ADVANCED,
2894         },
2895         {
2896                 .label          = "browseable",
2897                 .type           = P_BOOL,
2898                 .p_class        = P_LOCAL,
2899                 .offset         = LOCAL_VAR(browseable),
2900                 .special        = NULL,
2901                 .enum_list      = NULL,
2902                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
2903         },
2904         {
2905                 .label          = "browsable",
2906                 .type           = P_BOOL,
2907                 .p_class        = P_LOCAL,
2908                 .offset         = LOCAL_VAR(browseable),
2909                 .special        = NULL,
2910                 .enum_list      = NULL,
2911                 .flags          = FLAG_HIDE,
2912         },
2913         {
2914                 .label          = "access based share enum",
2915                 .type           = P_BOOL,
2916                 .p_class        = P_LOCAL,
2917                 .offset         = LOCAL_VAR(access_based_share_enum),
2918                 .special        = NULL,
2919                 .enum_list      = NULL,
2920                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE
2921         },
2922         {
2923                 .label          = "enhanced browsing",
2924                 .type           = P_BOOL,
2925                 .p_class        = P_GLOBAL,
2926                 .offset         = GLOBAL_VAR(enhanced_browsing),
2927                 .special        = NULL,
2928                 .enum_list      = NULL,
2929                 .flags          = FLAG_ADVANCED,
2930         },
2931
2932         {N_("WINS Options"), P_SEP, P_SEPARATOR},
2933
2934         {
2935                 .label          = "dns proxy",
2936                 .type           = P_BOOL,
2937                 .p_class        = P_GLOBAL,
2938                 .offset         = GLOBAL_VAR(wins_dns_proxy),
2939                 .special        = NULL,
2940                 .enum_list      = NULL,
2941                 .flags          = FLAG_ADVANCED,
2942         },
2943         {
2944                 .label          = "wins proxy",
2945                 .type           = P_BOOL,
2946                 .p_class        = P_GLOBAL,
2947                 .offset         = GLOBAL_VAR(wins_proxy),
2948                 .special        = NULL,
2949                 .enum_list      = NULL,
2950                 .flags          = FLAG_ADVANCED,
2951         },
2952         {
2953                 .label          = "wins server",
2954                 .type           = P_CMDLIST,
2955                 .p_class        = P_GLOBAL,
2956                 .offset         = GLOBAL_VAR(wins_server_list),
2957                 .special        = NULL,
2958                 .enum_list      = NULL,
2959                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2960         },
2961         {
2962                 .label          = "wins support",
2963                 .type           = P_BOOL,
2964                 .p_class        = P_GLOBAL,
2965                 .offset         = GLOBAL_VAR(we_are_a_wins_server),
2966                 .special        = NULL,
2967                 .enum_list      = NULL,
2968                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2969         },
2970         {
2971                 .label          = "wins hook",
2972                 .type           = P_STRING,
2973                 .p_class        = P_GLOBAL,
2974                 .offset         = GLOBAL_VAR(wins_hook),
2975                 .special        = NULL,
2976                 .enum_list      = NULL,
2977                 .flags          = FLAG_ADVANCED,
2978         },
2979
2980         {N_("Locking Options"), P_SEP, P_SEPARATOR},
2981
2982         {
2983                 .label          = "blocking locks",
2984                 .type           = P_BOOL,
2985                 .p_class        = P_LOCAL,
2986                 .offset         = LOCAL_VAR(blocking_locks),
2987                 .special        = NULL,
2988                 .enum_list      = NULL,
2989                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2990         },
2991         {
2992                 .label          = "csc policy",
2993                 .type           = P_ENUM,
2994                 .p_class        = P_LOCAL,
2995                 .offset         = LOCAL_VAR(csc_policy),
2996                 .special        = NULL,
2997                 .enum_list      = enum_csc_policy,
2998                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2999         },
3000         {
3001                 .label          = "fake oplocks",
3002                 .type           = P_BOOL,
3003                 .p_class        = P_LOCAL,
3004                 .offset         = LOCAL_VAR(fake_oplocks),
3005                 .special        = NULL,
3006                 .enum_list      = NULL,
3007                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3008         },
3009         {
3010                 .label          = "kernel oplocks",
3011                 .type           = P_BOOL,
3012                 .p_class        = P_LOCAL,
3013                 .offset         = LOCAL_VAR(kernel_oplocks),
3014                 .special        = NULL,
3015                 .enum_list      = NULL,
3016                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3017         },
3018         {
3019                 .label          = "kernel share modes",
3020                 .type           = P_BOOL,
3021                 .p_class        = P_LOCAL,
3022                 .offset         = LOCAL_VAR(kernel_share_modes),
3023                 .special        = NULL,
3024                 .enum_list      = NULL,
3025                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3026         },
3027         {
3028                 .label          = "smb2 leases",
3029                 .type           = P_BOOL,
3030                 .p_class        = P_GLOBAL,
3031                 .offset         = GLOBAL_VAR(smb2_leases),
3032                 .special        = NULL,
3033                 .enum_list      = NULL,
3034                 .flags          = FLAG_ADVANCED,
3035         },
3036         {
3037                 .label          = "locking",
3038                 .type           = P_BOOL,
3039                 .p_class        = P_LOCAL,
3040                 .offset         = LOCAL_VAR(locking),
3041                 .special        = NULL,
3042                 .enum_list      = NULL,
3043                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3044         },
3045         {
3046                 .label          = "lock spin time",
3047                 .type           = P_INTEGER,
3048                 .p_class        = P_GLOBAL,
3049                 .offset         = GLOBAL_VAR(lock_spin_time),
3050                 .special        = NULL,
3051                 .enum_list      = NULL,
3052                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3053         },
3054         {
3055                 .label          = "oplocks",
3056                 .type           = P_BOOL,
3057                 .p_class        = P_LOCAL,
3058                 .offset         = LOCAL_VAR(oplocks),
3059                 .special        = NULL,
3060                 .enum_list      = NULL,
3061                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3062         },
3063         {
3064                 .label          = "level2 oplocks",
3065                 .type           = P_BOOL,
3066                 .p_class        = P_LOCAL,
3067                 .offset         = LOCAL_VAR(level2_oplocks),
3068                 .special        = NULL,
3069                 .enum_list      = NULL,
3070                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3071         },
3072         {
3073                 .label          = "oplock break wait time",
3074                 .type           = P_INTEGER,
3075                 .p_class        = P_GLOBAL,
3076                 .offset         = GLOBAL_VAR(oplock_break_wait_time),
3077                 .special        = NULL,
3078                 .enum_list      = NULL,
3079                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3080         },
3081         {
3082                 .label          = "oplock contention limit",
3083                 .type           = P_INTEGER,
3084                 .p_class        = P_LOCAL,
3085                 .offset         = LOCAL_VAR(oplock_contention_limit),
3086                 .special        = NULL,
3087                 .enum_list      = NULL,
3088                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3089         },
3090         {
3091                 .label          = "posix locking",
3092                 .type           = P_BOOL,
3093                 .p_class        = P_LOCAL,
3094                 .offset         = LOCAL_VAR(posix_locking),
3095                 .special        = NULL,
3096                 .enum_list      = NULL,
3097                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3098         },
3099         {
3100                 .label          = "strict locking",
3101                 .type           = P_ENUM,
3102                 .p_class        = P_LOCAL,
3103                 .offset         = LOCAL_VAR(strict_locking),
3104                 .special        = NULL,
3105                 .enum_list      = enum_bool_auto,
3106                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3107         },
3108
3109         {N_("Ldap Options"), P_SEP, P_SEPARATOR},
3110
3111         {
3112                 .label          = "ldap admin dn",
3113                 .type           = P_STRING,
3114                 .p_class        = P_GLOBAL,
3115                 .offset         = GLOBAL_VAR(ldap_admin_dn),
3116                 .special        = NULL,
3117                 .enum_list      = NULL,
3118                 .flags          = FLAG_ADVANCED,
3119         },
3120         {
3121                 .label          = "ldap delete dn",
3122                 .type           = P_BOOL,
3123                 .p_class        = P_GLOBAL,
3124                 .offset         = GLOBAL_VAR(ldap_delete_dn),
3125                 .special        = NULL,
3126                 .enum_list      = NULL,
3127                 .flags          = FLAG_ADVANCED,
3128         },
3129         {
3130                 .label          = "ldap group suffix",
3131                 .type           = P_STRING,
3132                 .p_class        = P_GLOBAL,
3133                 .offset         = GLOBAL_VAR(szLdapGroupSuffix),
3134                 .special        = NULL,
3135                 .enum_list      = NULL,
3136                 .flags          = FLAG_ADVANCED,
3137         },
3138         {
3139                 .label          = "ldap idmap suffix",
3140                 .type           = P_STRING,
3141                 .p_class        = P_GLOBAL,
3142                 .offset         = GLOBAL_VAR(szLdapIdmapSuffix),
3143                 .special        = NULL,
3144                 .enum_list      = NULL,
3145                 .flags          = FLAG_ADVANCED,
3146         },
3147         {
3148                 .label          = "ldap machine suffix",
3149                 .type           = P_STRING,
3150                 .p_class        = P_GLOBAL,
3151                 .offset         = GLOBAL_VAR(szLdapMachineSuffix),
3152                 .special        = NULL,
3153                 .enum_list      = NULL,
3154                 .flags          = FLAG_ADVANCED,
3155         },
3156         {
3157                 .label          = "ldap passwd sync",
3158                 .type           = P_ENUM,
3159                 .p_class        = P_GLOBAL,
3160                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
3161                 .special        = NULL,
3162                 .enum_list      = enum_ldap_passwd_sync,
3163                 .flags          = FLAG_ADVANCED,
3164         },
3165         {
3166                 .label          = "ldap password sync",
3167                 .type           = P_ENUM,
3168                 .p_class        = P_GLOBAL,
3169                 .offset         = GLOBAL_VAR(ldap_passwd_sync),
3170                 .special        = NULL,
3171                 .enum_list      = enum_ldap_passwd_sync,
3172                 .flags          = FLAG_HIDE,
3173         },
3174         {
3175                 .label          = "ldap replication sleep",
3176                 .type           = P_INTEGER,
3177                 .p_class        = P_GLOBAL,
3178                 .offset         = GLOBAL_VAR(ldap_replication_sleep),
3179                 .special        = NULL,
3180                 .enum_list      = NULL,
3181                 .flags          = FLAG_ADVANCED,
3182         },
3183         {
3184                 .label          = "ldap suffix",
3185                 .type           = P_STRING,
3186                 .p_class        = P_GLOBAL,
3187                 .offset         = GLOBAL_VAR(ldap_suffix),
3188                 .special        = NULL,
3189                 .enum_list      = NULL,
3190                 .flags          = FLAG_ADVANCED,
3191         },
3192         {
3193                 .label          = "ldap ssl",
3194                 .type           = P_ENUM,
3195                 .p_class        = P_GLOBAL,
3196                 .offset         = GLOBAL_VAR(ldap_ssl),
3197                 .special        = NULL,
3198                 .enum_list      = enum_ldap_ssl,
3199                 .flags          = FLAG_ADVANCED,
3200         },
3201         {
3202                 .label          = "ldap ssl ads",
3203                 .type           = P_BOOL,
3204                 .p_class        = P_GLOBAL,
3205                 .offset         = GLOBAL_VAR(ldap_ssl_ads),
3206                 .special        = NULL,
3207                 .enum_list      = NULL,
3208                 .flags          = FLAG_ADVANCED,
3209         },
3210         {
3211                 .label          = "ldap deref",
3212                 .type           = P_ENUM,
3213                 .p_class        = P_GLOBAL,
3214                 .offset         = GLOBAL_VAR(ldap_deref),
3215                 .special        = NULL,
3216                 .enum_list      = enum_ldap_deref,
3217                 .flags          = FLAG_ADVANCED,
3218         },
3219         {
3220                 .label          = "ldap follow referral",
3221                 .type           = P_ENUM,
3222                 .p_class        = P_GLOBAL,
3223                 .offset         = GLOBAL_VAR(ldap_follow_referral),
3224                 .special        = NULL,
3225                 .enum_list      = enum_bool_auto,
3226                 .flags          = FLAG_ADVANCED,
3227         },
3228         {
3229                 .label          = "ldap timeout",
3230                 .type           = P_INTEGER,
3231                 .p_class        = P_GLOBAL,
3232                 .offset         = GLOBAL_VAR(ldap_timeout),
3233                 .special        = NULL,
3234                 .enum_list      = NULL,
3235                 .flags          = FLAG_ADVANCED,
3236         },
3237         {
3238                 .label          = "ldap connection timeout",
3239                 .type           = P_INTEGER,
3240                 .p_class        = P_GLOBAL,
3241                 .offset         = GLOBAL_VAR(ldap_connection_timeout),
3242                 .special        = NULL,
3243                 .enum_list      = NULL,
3244                 .flags          = FLAG_ADVANCED,
3245         },
3246         {
3247                 .label          = "ldap page size",
3248                 .type           = P_INTEGER,
3249                 .p_class        = P_GLOBAL,
3250                 .offset         = GLOBAL_VAR(ldap_page_size),
3251                 .special        = NULL,
3252                 .enum_list      = NULL,
3253                 .flags          = FLAG_ADVANCED,
3254         },
3255         {
3256                 .label          = "ldap user suffix",
3257                 .type           = P_STRING,
3258                 .p_class        = P_GLOBAL,
3259                 .offset         = GLOBAL_VAR(szLdapUserSuffix),
3260                 .special        = NULL,
3261                 .enum_list      = NULL,
3262                 .flags          = FLAG_ADVANCED,
3263         },
3264         {
3265                 .label          = "ldap debug level",
3266                 .type           = P_INTEGER,
3267                 .p_class        = P_GLOBAL,
3268                 .offset         = GLOBAL_VAR(ldap_debug_level),
3269                 .special        = handle_ldap_debug_level,
3270                 .enum_list      = NULL,
3271                 .flags          = FLAG_ADVANCED,
3272         },
3273         {
3274                 .label          = "ldap debug threshold",
3275                 .type           = P_INTEGER,
3276                 .p_class        = P_GLOBAL,
3277                 .offset         = GLOBAL_VAR(ldap_debug_threshold),
3278                 .special        = NULL,
3279                 .enum_list      = NULL,
3280                 .flags          = FLAG_ADVANCED,
3281         },
3282
3283         {N_("EventLog Options"), P_SEP, P_SEPARATOR},
3284
3285         {
3286                 .label          = "eventlog list",
3287                 .type           = P_CMDLIST,
3288                 .p_class        = P_GLOBAL,
3289                 .offset         = GLOBAL_VAR(eventlog_list),
3290                 .special        = NULL,
3291                 .enum_list      = NULL,
3292                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
3293         },
3294
3295         {N_("Miscellaneous Options"), P_SEP, P_SEPARATOR},
3296
3297         {
3298                 .label          = "add share command",
3299                 .type           = P_STRING,
3300                 .p_class        = P_GLOBAL,
3301                 .offset         = GLOBAL_VAR(add_share_command),
3302                 .special        = NULL,
3303                 .enum_list      = NULL,
3304                 .flags          = FLAG_ADVANCED,
3305         },
3306         {
3307                 .label          = "change share command",
3308                 .type           = P_STRING,
3309                 .p_class        = P_GLOBAL,
3310                 .offset         = GLOBAL_VAR(change_share_command),
3311                 .special        = NULL,
3312                 .enum_list      = NULL,
3313                 .flags          = FLAG_ADVANCED,
3314         },
3315         {
3316                 .label          = "delete share command",
3317                 .type           = P_STRING,
3318                 .p_class        = P_GLOBAL,
3319                 .offset         = GLOBAL_VAR(delete_share_command),
3320                 .special        = NULL,
3321                 .enum_list      = NULL,
3322                 .flags          = FLAG_ADVANCED,
3323         },
3324         {
3325                 .label          = "config file",
3326                 .type           = P_STRING,
3327                 .p_class        = P_GLOBAL,
3328                 .offset         = GLOBAL_VAR(next_configfile),
3329                 .special        = NULL,
3330                 .enum_list      = NULL,
3331                 .flags          = FLAG_HIDE|FLAG_META,
3332         },
3333         {
3334                 .label          = "preload",
3335                 .type           = P_STRING,
3336                 .p_class        = P_GLOBAL,
3337                 .offset         = GLOBAL_VAR(auto_services),
3338                 .special        = NULL,
3339                 .enum_list      = NULL,
3340                 .flags          = FLAG_ADVANCED,
3341         },
3342         {
3343                 .label          = "auto services",
3344                 .type           = P_STRING,
3345                 .p_class        = P_GLOBAL,
3346                 .offset         = GLOBAL_VAR(auto_services),
3347                 .special        = NULL,
3348                 .enum_list      = NULL,
3349                 .flags          = FLAG_ADVANCED,
3350         },
3351         {
3352                 .label          = "lock directory",
3353                 .type           = P_STRING,
3354                 .p_class        = P_GLOBAL,
3355                 .offset         = GLOBAL_VAR(lock_directory),
3356                 .special        = NULL,
3357                 .enum_list      = NULL,
3358                 .flags          = FLAG_ADVANCED,
3359         },
3360         {
3361                 .label          = "lock dir",
3362                 .type           = P_STRING,
3363                 .p_class        = P_GLOBAL,
3364                 .offset         = GLOBAL_VAR(lock_directory),
3365                 .special        = NULL,
3366                 .enum_list      = NULL,
3367                 .flags          = FLAG_HIDE,
3368         },
3369         {
3370                 .label          = "state directory",
3371                 .type           = P_STRING,
3372                 .p_class        = P_GLOBAL,
3373                 .offset         = GLOBAL_VAR(state_directory),
3374                 .special        = NULL,
3375                 .enum_list      = NULL,
3376                 .flags          = FLAG_ADVANCED,
3377         },
3378         {
3379                 .label          = "cache directory",
3380                 .type           = P_STRING,
3381                 .p_class        = P_GLOBAL,
3382                 .offset         = GLOBAL_VAR(cache_directory),
3383                 .special        = NULL,
3384                 .enum_list      = NULL,
3385                 .flags          = FLAG_ADVANCED,
3386         },
3387         {
3388                 .label          = "pid directory",
3389                 .type           = P_STRING,
3390                 .p_class        = P_GLOBAL,
3391                 .offset         = GLOBAL_VAR(pid_directory),
3392                 .special        = NULL,
3393                 .enum_list      = NULL,
3394                 .flags          = FLAG_ADVANCED,
3395         },
3396         {
3397                 .label          = "ntp signd socket directory",
3398                 .type           = P_STRING,
3399                 .p_class        = P_GLOBAL,
3400                 .offset         = GLOBAL_VAR(ntp_signd_socket_directory),
3401                 .special        = NULL,
3402                 .enum_list      = NULL,
3403                 .flags          = FLAG_ADVANCED,
3404         },
3405
3406 #ifdef WITH_UTMP
3407         {
3408                 .label          = "utmp directory",
3409                 .type           = P_STRING,
3410                 .p_class        = P_GLOBAL,
3411                 .offset         = GLOBAL_VAR(utmp_directory),
3412                 .special        = NULL,
3413                 .enum_list      = NULL,
3414                 .flags          = FLAG_ADVANCED,
3415         },
3416         {
3417                 .label          = "wtmp directory",
3418                 .type           = P_STRING,
3419                 .p_class        = P_GLOBAL,
3420                 .offset         = GLOBAL_VAR(wtmp_directory),
3421                 .special        = NULL,
3422                 .enum_list      = NULL,
3423                 .flags          = FLAG_ADVANCED,
3424         },
3425         {
3426                 .label          = "utmp",
3427                 .type           = P_BOOL,
3428                 .p_class        = P_GLOBAL,
3429                 .offset         = GLOBAL_VAR(utmp),
3430                 .special        = NULL,
3431                 .enum_list      = NULL,
3432                 .flags          = FLAG_ADVANCED,
3433         },
3434 #endif
3435         {
3436                 .label          = "default service",
3437                 .type           = P_STRING,
3438                 .p_class        = P_GLOBAL,
3439                 .offset         = GLOBAL_VAR(defaultservice),
3440                 .special        = NULL,
3441                 .enum_list      = NULL,
3442                 .flags          = FLAG_ADVANCED,
3443         },
3444         {
3445                 .label          = "default",
3446                 .type           = P_STRING,
3447                 .p_class        = P_GLOBAL,
3448                 .offset         = GLOBAL_VAR(defaultservice),
3449                 .special        = NULL,
3450                 .enum_list      = NULL,
3451                 .flags          = FLAG_ADVANCED,
3452         },
3453         {
3454                 .label          = "message command",
3455                 .type           = P_STRING,
3456                 .p_class        = P_GLOBAL,
3457                 .offset         = GLOBAL_VAR(message_command),
3458                 .special        = NULL,
3459                 .enum_list      = NULL,
3460                 .flags          = FLAG_ADVANCED,
3461         },
3462         {
3463                 .label          = "dfree cache time",
3464                 .type           = P_INTEGER,
3465                 .p_class        = P_LOCAL,
3466                 .offset         = LOCAL_VAR(dfree_cache_time),
3467                 .special        = NULL,
3468                 .enum_list      = NULL,
3469                 .flags          = FLAG_ADVANCED,
3470         },
3471         {
3472                 .label          = "dfree command",
3473                 .type           = P_STRING,
3474                 .p_class        = P_LOCAL,
3475                 .offset         = LOCAL_VAR(dfree_command),
3476                 .special        = NULL,
3477                 .enum_list      = NULL,
3478                 .flags          = FLAG_ADVANCED,
3479         },
3480         {
3481                 .label          = "get quota command",
3482                 .type           = P_STRING,
3483                 .p_class        = P_GLOBAL,
3484                 .offset         = GLOBAL_VAR(get_quota_command),
3485                 .special        = NULL,
3486                 .enum_list      = NULL,
3487                 .flags          = FLAG_ADVANCED,
3488         },
3489         {
3490                 .label          = "set quota command",
3491                 .type           = P_STRING,
3492                 .p_class        = P_GLOBAL,
3493                 .offset         = GLOBAL_VAR(set_quota_command),
3494                 .special        = NULL,
3495                 .enum_list      = NULL,
3496                 .flags          = FLAG_ADVANCED,
3497         },
3498         {
3499                 .label          = "remote announce",
3500                 .type           = P_STRING,
3501                 .p_class        = P_GLOBAL,
3502                 .offset         = GLOBAL_VAR(remote_announce),
3503                 .special        = NULL,
3504                 .enum_list      = NULL,
3505                 .flags          = FLAG_ADVANCED,
3506         },
3507         {
3508                 .label          = "remote browse sync",
3509                 .type           = P_STRING,
3510                 .p_class        = P_GLOBAL,
3511                 .offset         = GLOBAL_VAR(remote_browse_sync),
3512                 .special        = NULL,
3513                 .enum_list      = NULL,
3514                 .flags          = FLAG_ADVANCED,
3515         },
3516         {
3517                 .label          = "nbt client socket address",
3518                 .type           = P_STRING,
3519                 .p_class        = P_GLOBAL,
3520                 .offset         = GLOBAL_VAR(nbt_client_socket_address),
3521                 .special        = NULL,
3522                 .enum_list      = NULL,
3523                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
3524         },
3525         {
3526                 .label          = "socket address",
3527                 .type           = P_STRING,
3528                 .p_class        = P_GLOBAL,
3529                 .offset         = GLOBAL_VAR(nbt_client_socket_address),
3530                 .special        = NULL,
3531                 .enum_list      = NULL,
3532                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
3533         },
3534         {
3535                 .label          = "nmbd bind explicit broadcast",
3536                 .type           = P_BOOL,
3537                 .p_class        = P_GLOBAL,
3538                 .offset         = GLOBAL_VAR(nmbd_bind_explicit_broadcast),
3539                 .special        = NULL,
3540                 .enum_list      = NULL,
3541                 .flags          = FLAG_ADVANCED,
3542         },
3543         {
3544                 .label          = "homedir map",
3545                 .type           = P_STRING,
3546                 .p_class        = P_GLOBAL,
3547                 .offset         = GLOBAL_VAR(homedir_map),
3548                 .special        = NULL,
3549                 .enum_list      = NULL,
3550                 .flags          = FLAG_ADVANCED,
3551         },
3552         {
3553                 .label          = "afs username map",
3554                 .type           = P_STRING,
3555                 .p_class        = P_GLOBAL,
3556                 .offset         = GLOBAL_VAR(afs_username_map),
3557                 .special        = NULL,
3558                 .enum_list      = NULL,
3559                 .flags          = FLAG_ADVANCED,
3560         },
3561         {
3562                 .label          = "afs token lifetime",
3563                 .type           = P_INTEGER,
3564                 .p_class        = P_GLOBAL,
3565                 .offset         = GLOBAL_VAR(afs_token_lifetime),
3566                 .special        = NULL,
3567                 .enum_list      = NULL,
3568                 .flags          = FLAG_ADVANCED,
3569         },
3570         {
3571                 .label          = "log nt token command",
3572                 .type           = P_STRING,
3573                 .p_class        = P_GLOBAL,
3574                 .offset         = GLOBAL_VAR(log_nt_token_command),
3575                 .special        = NULL,
3576                 .enum_list      = NULL,
3577                 .flags          = FLAG_ADVANCED,
3578         },
3579         {
3580                 .label          = "NIS homedir",
3581                 .type           = P_BOOL,
3582                 .p_class        = P_GLOBAL,
3583                 .offset         = GLOBAL_VAR(nis_homedir),
3584                 .special        = NULL,
3585                 .enum_list      = NULL,
3586                 .flags          = FLAG_ADVANCED,
3587         },
3588         {
3589                 .label          = "-valid",
3590                 .type           = P_BOOL,
3591                 .p_class        = P_LOCAL,
3592                 .offset         = LOCAL_VAR(valid),
3593                 .special        = NULL,
3594                 .enum_list      = NULL,
3595                 .flags          = FLAG_HIDE,
3596         },
3597         {
3598                 .label          = "copy",
3599                 .type           = P_STRING,
3600                 .p_class        = P_LOCAL,
3601                 .offset         = LOCAL_VAR(szCopy),
3602                 .special        = handle_copy,
3603                 .enum_list      = NULL,
3604                 .flags          = FLAG_HIDE,
3605         },
3606         {
3607                 .label          = "include",
3608                 .type           = P_STRING,
3609                 .p_class        = P_LOCAL,
3610                 .offset         = LOCAL_VAR(szInclude),
3611                 .special        = handle_include,
3612                 .enum_list      = NULL,
3613                 .flags          = FLAG_HIDE|FLAG_META,
3614         },
3615         {
3616                 .label          = "preexec",
3617                 .type           = P_STRING,
3618                 .p_class        = P_LOCAL,
3619                 .offset         = LOCAL_VAR(preexec),
3620                 .special        = NULL,
3621                 .enum_list      = NULL,
3622                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3623         },
3624         {
3625                 .label          = "exec",
3626                 .type           = P_STRING,
3627                 .p_class        = P_LOCAL,
3628                 .offset         = LOCAL_VAR(preexec),
3629                 .special        = NULL,
3630                 .enum_list      = NULL,
3631                 .flags          = FLAG_ADVANCED,
3632         },
3633         {
3634                 .label          = "preexec close",
3635                 .type           = P_BOOL,
3636                 .p_class        = P_LOCAL,
3637                 .offset         = LOCAL_VAR(preexec_close),
3638                 .special        = NULL,
3639                 .enum_list      = NULL,
3640                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3641         },
3642         {
3643                 .label          = "postexec",
3644                 .type           = P_STRING,
3645                 .p_class        = P_LOCAL,
3646                 .offset         = LOCAL_VAR(postexec),
3647                 .special        = NULL,
3648                 .enum_list      = NULL,
3649                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3650         },
3651         {
3652                 .label          = "root preexec",
3653                 .type           = P_STRING,
3654                 .p_class        = P_LOCAL,
3655                 .offset         = LOCAL_VAR(root_preexec),
3656                 .special        = NULL,
3657                 .enum_list      = NULL,
3658                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3659         },
3660         {
3661                 .label          = "root preexec close",
3662                 .type           = P_BOOL,
3663                 .p_class        = P_LOCAL,
3664                 .offset         = LOCAL_VAR(root_preexec_close),
3665                 .special        = NULL,
3666                 .enum_list      = NULL,
3667                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3668         },
3669         {
3670                 .label          = "root postexec",
3671                 .type           = P_STRING,
3672                 .p_class        = P_LOCAL,
3673                 .offset         = LOCAL_VAR(root_postexec),
3674                 .special        = NULL,
3675                 .enum_list      = NULL,
3676                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3677         },
3678         {
3679                 .label          = "available",
3680                 .type           = P_BOOL,
3681                 .p_class        = P_LOCAL,
3682                 .offset         = LOCAL_VAR(bAvailable),
3683                 .special        = NULL,
3684                 .enum_list      = NULL,
3685                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
3686         },
3687         {
3688                 .label          = "registry shares",
3689                 .type           = P_BOOL,
3690                 .p_class        = P_GLOBAL,
3691                 .offset         = GLOBAL_VAR(registry_shares),
3692                 .special        = NULL,
3693                 .enum_list      = NULL,
3694                 .flags          = FLAG_ADVANCED,
3695         },
3696         {
3697                 .label          = "usershare allow guests",
3698                 .type           = P_BOOL,
3699                 .p_class        = P_GLOBAL,
3700                 .offset         = GLOBAL_VAR(usershare_allow_guests),
3701                 .special        = NULL,
3702                 .enum_list      = NULL,
3703                 .flags          = FLAG_ADVANCED,
3704         },
3705         {
3706                 .label          = "usershare max shares",
3707                 .type           = P_INTEGER,
3708                 .p_class        = P_GLOBAL,
3709                 .offset         = GLOBAL_VAR(usershare_max_shares),
3710                 .special        = NULL,
3711                 .enum_list      = NULL,
3712                 .flags          = FLAG_ADVANCED,
3713         },
3714         {
3715                 .label          = "usershare owner only",
3716                 .type           = P_BOOL,
3717                 .p_class        = P_GLOBAL,
3718                 .offset         = GLOBAL_VAR(usershare_owner_only),
3719                 .special        = NULL,
3720                 .enum_list      = NULL,
3721                 .flags          = FLAG_ADVANCED,
3722         },
3723         {
3724                 .label          = "usershare path",
3725                 .type           = P_STRING,
3726                 .p_class        = P_GLOBAL,
3727                 .offset         = GLOBAL_VAR(usershare_path),
3728                 .special        = NULL,
3729                 .enum_list      = NULL,
3730                 .flags          = FLAG_ADVANCED,
3731         },
3732         {
3733                 .label          = "usershare prefix allow list",
3734                 .type           = P_CMDLIST,
3735                 .p_class        = P_GLOBAL,
3736                 .offset         = GLOBAL_VAR(usershare_prefix_allow_list),
3737                 .special        = NULL,
3738                 .enum_list      = NULL,
3739                 .flags          = FLAG_ADVANCED,
3740         },
3741         {
3742                 .label          = "usershare prefix deny list",
3743                 .type           = P_CMDLIST,
3744                 .p_class        = P_GLOBAL,
3745                 .offset         = GLOBAL_VAR(usershare_prefix_deny_list),
3746                 .special        = NULL,
3747                 .enum_list      = NULL,
3748                 .flags          = FLAG_ADVANCED,
3749         },
3750         {
3751                 .label          = "usershare template share",
3752                 .type           = P_STRING,
3753                 .p_class        = P_GLOBAL,
3754                 .offset         = GLOBAL_VAR(usershare_template_share),
3755                 .special        = NULL,
3756                 .enum_list      = NULL,
3757                 .flags          = FLAG_ADVANCED,
3758         },
3759         {
3760                 .label          = "volume",
3761                 .type           = P_STRING,
3762                 .p_class        = P_LOCAL,
3763                 .offset         = LOCAL_VAR(volume),
3764                 .special        = NULL,
3765                 .enum_list      = NULL,
3766                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3767         },
3768         {
3769                 .label          = "fstype",
3770                 .type           = P_STRING,
3771                 .p_class        = P_LOCAL,
3772                 .offset         = LOCAL_VAR(fstype),
3773                 .special        = NULL,
3774                 .enum_list      = NULL,
3775                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3776         },
3777         {
3778                 .label          = "allow insecure wide links",
3779                 .type           = P_BOOL,
3780                 .p_class        = P_GLOBAL,
3781                 .offset         = GLOBAL_VAR(allow_insecure_wide_links),
3782                 .special        = NULL,
3783                 .enum_list      = NULL,
3784                 .flags          = FLAG_ADVANCED,
3785         },
3786         {
3787                 .label          = "wide links",
3788                 .type           = P_BOOL,
3789                 .p_class        = P_LOCAL,
3790                 .offset         = LOCAL_VAR(bWidelinks),
3791                 .special        = NULL,
3792                 .enum_list      = NULL,
3793                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3794         },
3795         {
3796                 .label          = "follow symlinks",
3797                 .type           = P_BOOL,
3798                 .p_class        = P_LOCAL,
3799                 .offset         = LOCAL_VAR(follow_symlinks),
3800                 .special        = NULL,
3801                 .enum_list      = NULL,
3802                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3803         },
3804         {
3805                 .label          = "dont descend",
3806                 .type           = P_STRING,
3807                 .p_class        = P_LOCAL,
3808                 .offset         = LOCAL_VAR(dont_descend),
3809                 .special        = NULL,
3810                 .enum_list      = NULL,
3811                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3812         },
3813         {
3814                 .label          = "magic script",
3815                 .type           = P_STRING,
3816                 .p_class        = P_LOCAL,
3817                 .offset         = LOCAL_VAR(magic_script),
3818                 .special        = NULL,
3819                 .enum_list      = NULL,
3820                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3821         },
3822         {
3823                 .label          = "magic output",
3824                 .type           = P_STRING,
3825                 .p_class        = P_LOCAL,
3826                 .offset         = LOCAL_VAR(magic_output),
3827                 .special        = NULL,
3828                 .enum_list      = NULL,
3829                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3830         },
3831         {
3832                 .label          = "delete readonly",
3833                 .type           = P_BOOL,
3834                 .p_class        = P_LOCAL,
3835                 .offset         = LOCAL_VAR(delete_readonly),
3836                 .special        = NULL,
3837                 .enum_list      = NULL,
3838                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3839         },
3840         {
3841                 .label          = "dos filemode",
3842                 .type           = P_BOOL,
3843                 .p_class        = P_LOCAL,
3844                 .offset         = LOCAL_VAR(dos_filemode),
3845                 .special        = NULL,
3846                 .enum_list      = NULL,
3847                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3848         },
3849         {
3850                 .label          = "dos filetimes",
3851                 .type           = P_BOOL,
3852                 .p_class        = P_LOCAL,
3853                 .offset         = LOCAL_VAR(dos_filetimes),
3854                 .special        = NULL,
3855                 .enum_list      = NULL,
3856                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3857         },
3858         {
3859                 .label          = "dos filetime resolution",
3860                 .type           = P_BOOL,
3861                 .p_class        = P_LOCAL,
3862                 .offset         = LOCAL_VAR(dos_filetime_resolution),
3863                 .special        = NULL,
3864                 .enum_list      = NULL,
3865                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3866         },
3867         {
3868                 .label          = "fake directory create times",
3869                 .type           = P_BOOL,
3870                 .p_class        = P_LOCAL,
3871                 .offset         = LOCAL_VAR(fake_directory_create_times),
3872                 .special        = NULL,
3873                 .enum_list      = NULL,
3874                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3875         },
3876         {
3877                 .label          = "async smb echo handler",
3878                 .type           = P_BOOL,
3879                 .p_class        = P_GLOBAL,
3880                 .offset         = GLOBAL_VAR(async_smb_echo_handler),
3881                 .special        = NULL,
3882                 .enum_list      = NULL,
3883                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3884         },
3885         {
3886                 .label          = "panic action",
3887                 .type           = P_STRING,
3888                 .p_class        = P_GLOBAL,
3889                 .offset         = GLOBAL_VAR(panic_action),
3890                 .special        = NULL,
3891                 .enum_list      = NULL,
3892                 .flags          = FLAG_ADVANCED,
3893         },
3894         {
3895                 .label          = "perfcount module",
3896                 .type           = P_STRING,
3897                 .p_class        = P_GLOBAL,
3898                 .offset         = GLOBAL_VAR(perfcount_module),
3899                 .special        = NULL,
3900                 .enum_list      = NULL,
3901                 .flags          = FLAG_ADVANCED,
3902         },
3903
3904         {N_("VFS module options"), P_SEP, P_SEPARATOR},
3905
3906         {
3907                 .label          = "vfs objects",
3908                 .type           = P_CMDLIST,
3909                 .p_class        = P_LOCAL,
3910                 .offset         = LOCAL_VAR(vfs_objects),
3911                 .special        = NULL,
3912                 .enum_list      = NULL,
3913                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3914         },
3915         {
3916                 .label          = "vfs object",
3917                 .type           = P_CMDLIST,
3918                 .p_class        = P_LOCAL,
3919                 .offset         = LOCAL_VAR(vfs_objects),
3920                 .special        = NULL,
3921                 .enum_list      = NULL,
3922                 .flags          = FLAG_HIDE,
3923         },
3924
3925
3926         {N_("MSDFS options"), P_SEP, P_SEPARATOR},
3927
3928         {
3929                 .label          = "msdfs root",
3930                 .type           = P_BOOL,
3931                 .p_class        = P_LOCAL,
3932                 .offset         = LOCAL_VAR(msdfs_root),
3933                 .special        = NULL,
3934                 .enum_list      = NULL,
3935                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3936         },
3937         {
3938                 .label          = "msdfs proxy",
3939                 .type           = P_STRING,
3940                 .p_class        = P_LOCAL,
3941                 .offset         = LOCAL_VAR(msdfs_proxy),
3942                 .special        = NULL,
3943                 .enum_list      = NULL,
3944                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3945         },
3946         {
3947                 .label          = "msdfs shuffle referrals",
3948                 .type           = P_BOOL,
3949                 .p_class        = P_LOCAL,
3950                 .offset         = LOCAL_VAR(msdfs_shuffle_referrals),
3951                 .special        = NULL,
3952                 .enum_list      = NULL,
3953                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3954         },
3955         {
3956                 .label          = "host msdfs",
3957                 .type           = P_BOOL,
3958                 .p_class        = P_GLOBAL,
3959                 .offset         = GLOBAL_VAR(host_msdfs),
3960                 .special        = NULL,
3961                 .enum_list      = NULL,
3962                 .flags          = FLAG_ADVANCED,
3963         },
3964
3965         {N_("Winbind options"), P_SEP, P_SEPARATOR},
3966
3967         {
3968                 .label          = "passdb expand explicit",
3969                 .type           = P_BOOL,
3970                 .p_class        = P_GLOBAL,
3971                 .offset         = GLOBAL_VAR(passdb_expand_explicit),
3972                 .special        = NULL,
3973                 .enum_list      = NULL,
3974                 .flags          = FLAG_ADVANCED,
3975         },
3976         {
3977                 .label          = "idmap backend",
3978                 .type           = P_STRING,
3979                 .p_class        = P_GLOBAL,
3980                 .offset         = GLOBAL_VAR(szIdmapBackend),
3981                 .special        = handle_idmap_backend,
3982                 .enum_list      = NULL,
3983                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
3984         },
3985         {
3986                 .label          = "idmap cache time",
3987                 .type           = P_INTEGER,
3988                 .p_class        = P_GLOBAL,
3989                 .offset         = GLOBAL_VAR(idmap_cache_time),
3990                 .special        = NULL,
3991                 .enum_list      = NULL,
3992                 .flags          = FLAG_ADVANCED,
3993         },
3994         {
3995                 .label          = "idmap negative cache time",
3996                 .type           = P_INTEGER,
3997                 .p_class        = P_GLOBAL,
3998                 .offset         = GLOBAL_VAR(idmap_negative_cache_time),
3999                 .special        = NULL,
4000                 .enum_list      = NULL,
4001                 .flags          = FLAG_ADVANCED,
4002         },
4003         {
4004                 .label          = "idmap uid",
4005                 .type           = P_STRING,
4006                 .p_class        = P_GLOBAL,
4007                 .offset         = GLOBAL_VAR(szIdmapUID),
4008                 .special        = handle_idmap_uid,
4009                 .enum_list      = NULL,
4010                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
4011         },
4012         {
4013                 .label          = "winbind uid",
4014                 .type           = P_STRING,
4015                 .p_class        = P_GLOBAL,
4016                 .offset         = GLOBAL_VAR(szIdmapUID),
4017                 .special        = handle_idmap_uid,
4018                 .enum_list      = NULL,
4019                 .flags          = FLAG_HIDE,
4020         },
4021         {
4022                 .label          = "idmap gid",
4023                 .type           = P_STRING,
4024                 .p_class        = P_GLOBAL,
4025                 .offset         = GLOBAL_VAR(szIdmapGID),
4026                 .special        = handle_idmap_gid,
4027                 .enum_list      = NULL,
4028                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
4029         },
4030         {
4031                 .label          = "winbind gid",
4032                 .type           = P_STRING,
4033                 .p_class        = P_GLOBAL,
4034                 .offset         = GLOBAL_VAR(szIdmapGID),
4035                 .special        = handle_idmap_gid,
4036                 .enum_list      = NULL,
4037                 .flags          = FLAG_HIDE,
4038         },
4039         {
4040                 .label          = "template homedir",
4041                 .type           = P_STRING,
4042                 .p_class        = P_GLOBAL,
4043                 .offset         = GLOBAL_VAR(template_homedir),
4044                 .special        = NULL,
4045                 .enum_list      = NULL,
4046                 .flags          = FLAG_ADVANCED,
4047         },
4048         {
4049                 .label          = "template shell",
4050                 .type           = P_STRING,
4051                 .p_class        = P_GLOBAL,
4052                 .offset         = GLOBAL_VAR(template_shell),
4053                 .special        = NULL,
4054                 .enum_list      = NULL,
4055                 .flags          = FLAG_ADVANCED,
4056         },
4057         {
4058                 .label          = "winbind separator",
4059                 .type           = P_STRING,
4060                 .p_class        = P_GLOBAL,
4061                 .offset         = GLOBAL_VAR(winbind_separator),
4062                 .special        = NULL,
4063                 .enum_list      = NULL,
4064                 .flags          = FLAG_ADVANCED,
4065         },
4066         {
4067                 .label          = "winbind cache time",
4068                 .type           = P_INTEGER,
4069                 .p_class        = P_GLOBAL,
4070                 .offset         = GLOBAL_VAR(winbind_cache_time),
4071                 .special        = NULL,
4072                 .enum_list      = NULL,
4073                 .flags          = FLAG_ADVANCED,
4074         },
4075         {
4076                 .label          = "winbind reconnect delay",
4077                 .type           = P_INTEGER,
4078                 .p_class        = P_GLOBAL,
4079                 .offset         = GLOBAL_VAR(winbind_reconnect_delay),
4080                 .special        = NULL,
4081                 .enum_list      = NULL,
4082                 .flags          = FLAG_ADVANCED,
4083         },
4084         {
4085                 .label          = "winbind request timeout",
4086                 .type           = P_INTEGER,
4087                 .p_class        = P_GLOBAL,
4088                 .offset         = GLOBAL_VAR(winbind_request_timeout),
4089                 .special        = NULL,
4090                 .enum_list      = NULL,
4091                 .flags          = FLAG_ADVANCED,
4092         },
4093         {
4094                 .label          = "winbind max clients",
4095                 .type           = P_INTEGER,
4096                 .p_class        = P_GLOBAL,
4097                 .offset         = GLOBAL_VAR(winbind_max_clients),
4098                 .special        = NULL,
4099                 .enum_list      = NULL,
4100                 .flags          = FLAG_ADVANCED,
4101         },
4102         {
4103                 .label          = "winbind enum users",
4104                 .type           = P_BOOL,
4105                 .p_class        = P_GLOBAL,
4106                 .offset         = GLOBAL_VAR(winbind_enum_users),
4107                 .special        = NULL,
4108                 .enum_list      = NULL,
4109                 .flags          = FLAG_ADVANCED,
4110         },
4111         {
4112                 .label          = "winbind enum groups",
4113                 .type           = P_BOOL,
4114                 .p_class        = P_GLOBAL,
4115                 .offset         = GLOBAL_VAR(winbind_enum_groups),
4116                 .special        = NULL,
4117                 .enum_list      = NULL,
4118                 .flags          = FLAG_ADVANCED,
4119         },
4120         {
4121                 .label          = "winbind use default domain",
4122                 .type           = P_BOOL,
4123                 .p_class        = P_GLOBAL,
4124                 .offset         = GLOBAL_VAR(winbind_use_default_domain),
4125                 .special        = NULL,
4126                 .enum_list      = NULL,
4127                 .flags          = FLAG_ADVANCED,
4128         },
4129         {
4130                 .label          = "winbind trusted domains only",
4131                 .type           = P_BOOL,
4132                 .p_class        = P_GLOBAL,
4133                 .offset         = GLOBAL_VAR(winbind_trusted_domains_only),
4134                 .special        = NULL,
4135                 .enum_list      = NULL,
4136                 .flags          = FLAG_ADVANCED,
4137         },
4138         {
4139                 .label          = "winbind nested groups",
4140                 .type           = P_BOOL,
4141                 .p_class        = P_GLOBAL,
4142                 .offset         = GLOBAL_VAR(winbind_nested_groups),
4143                 .special        = NULL,
4144                 .enum_list      = NULL,
4145                 .flags          = FLAG_ADVANCED,
4146         },
4147         {
4148                 .label          = "winbind expand groups",
4149                 .type           = P_INTEGER,
4150                 .p_class        = P_GLOBAL,
4151                 .offset         = GLOBAL_VAR(winbind_expand_groups),
4152                 .special        = NULL,
4153                 .enum_list      = NULL,
4154                 .flags          = FLAG_ADVANCED,
4155         },
4156         {
4157                 .label          = "winbind nss info",
4158                 .type           = P_CMDLIST,
4159                 .p_class        = P_GLOBAL,
4160                 .offset         = GLOBAL_VAR(winbind_nss_info),
4161                 .special        = NULL,
4162                 .enum_list      = NULL,
4163                 .flags          = FLAG_ADVANCED,
4164         },
4165         {
4166                 .label          = "winbind refresh tickets",
4167                 .type           = P_BOOL,
4168                 .p_class        = P_GLOBAL,
4169                 .offset         = GLOBAL_VAR(winbind_refresh_tickets),
4170                 .special        = NULL,
4171                 .enum_list      = NULL,
4172                 .flags          = FLAG_ADVANCED,
4173         },
4174         {
4175                 .label          = "winbind offline logon",
4176                 .type           = P_BOOL,
4177                 .p_class        = P_GLOBAL,
4178                 .offset         = GLOBAL_VAR(winbind_offline_logon),
4179                 .special        = NULL,
4180                 .enum_list      = NULL,
4181                 .flags          = FLAG_ADVANCED,
4182         },
4183         {
4184                 .label          = "winbind normalize names",
4185                 .type           = P_BOOL,
4186                 .p_class        = P_GLOBAL,
4187                 .offset         = GLOBAL_VAR(winbind_normalize_names),
4188                 .special        = NULL,
4189                 .enum_list      = NULL,
4190                 .flags          = FLAG_ADVANCED,
4191         },
4192         {
4193                 .label          = "winbind rpc only",
4194                 .type           = P_BOOL,
4195                 .p_class        = P_GLOBAL,
4196                 .offset         = GLOBAL_VAR(winbind_rpc_only),
4197                 .special        = NULL,
4198                 .enum_list      = NULL,
4199                 .flags          = FLAG_ADVANCED,
4200         },
4201         {
4202                 .label          = "create krb5 conf",
4203                 .type           = P_BOOL,
4204                 .p_class        = P_GLOBAL,
4205                 .offset         = GLOBAL_VAR(create_krb5_conf),
4206                 .special        = NULL,
4207                 .enum_list      = NULL,
4208                 .flags          = FLAG_ADVANCED,
4209         },
4210         {
4211                 .label          = "ncalrpc dir",
4212                 .type           = P_STRING,
4213                 .p_class        = P_GLOBAL,
4214                 .offset         = GLOBAL_VAR(ncalrpc_dir),
4215                 .special        = NULL,
4216                 .enum_list      = NULL,
4217                 .flags          = FLAG_ADVANCED,
4218         },
4219         {
4220                 .label          = "winbind max domain connections",
4221                 .type           = P_INTEGER,
4222                 .p_class        = P_GLOBAL,
4223                 .offset         = GLOBAL_VAR(winbindMaxDomainConnections),
4224                 .special        = NULL,
4225                 .enum_list      = NULL,
4226                 .flags          = FLAG_ADVANCED,
4227         },
4228         {
4229                 .label          = "winbindd socket directory",
4230                 .type           = P_STRING,
4231                 .p_class        = P_GLOBAL,
4232                 .offset         = GLOBAL_VAR(winbindd_socket_directory),
4233                 .special        = NULL,
4234                 .enum_list      = NULL,
4235                 .flags          = FLAG_ADVANCED,
4236         },
4237         {
4238                 .label          = "winbindd privileged socket directory",
4239                 .type           = P_STRING,
4240                 .p_class        = P_GLOBAL,
4241                 .offset         = GLOBAL_VAR(winbindd_privileged_socket_directory),
4242                 .special        = NULL,
4243                 .enum_list      = NULL,
4244                 .flags          = FLAG_ADVANCED,
4245         },
4246         {
4247                 .label          = "winbind sealed pipes",
4248                 .type           = P_BOOL,
4249                 .p_class        = P_GLOBAL,
4250                 .offset         = GLOBAL_VAR(winbind_sealed_pipes),
4251                 .special        = NULL,
4252                 .enum_list      = NULL,
4253                 .flags          = FLAG_ADVANCED,
4254         },
4255         {
4256                 .label          = "neutralize nt4 emulation",
4257                 .type           = P_BOOL,
4258                 .p_class        = P_GLOBAL,
4259                 .offset         = GLOBAL_VAR(neutralize_nt4_emulation),
4260                 .special        = NULL,
4261                 .enum_list      = NULL,
4262                 .flags          = FLAG_ADVANCED,
4263         },
4264         {
4265                 .label          = "reject md5 servers",
4266                 .type           = P_BOOL,
4267                 .p_class        = P_GLOBAL,
4268                 .offset         = GLOBAL_VAR(reject_md5_servers),
4269                 .special        = NULL,
4270                 .enum_list      = NULL,
4271                 .flags          = FLAG_ADVANCED,
4272         },
4273         {
4274                 .label          = "require strong key",
4275                 .type           = P_BOOL,
4276                 .p_class        = P_GLOBAL,
4277                 .offset         = GLOBAL_VAR(require_strong_key),
4278                 .special        = NULL,
4279                 .enum_list      = NULL,
4280                 .flags          = FLAG_ADVANCED,
4281         },
4282
4283         {N_("DNS options"), P_SEP, P_SEPARATOR},
4284         {
4285                 .label          = "allow dns updates",
4286                 .type           = P_ENUM,
4287                 .p_class        = P_GLOBAL,
4288                 .offset         = GLOBAL_VAR(allow_dns_updates),
4289                 .special        = NULL,
4290                 .enum_list      = enum_dns_update_settings,
4291                 .flags          = FLAG_ADVANCED,
4292         },
4293         {
4294                 .label          = "dns forwarder",
4295                 .type           = P_STRING,
4296                 .p_class        = P_GLOBAL,
4297                 .offset         = GLOBAL_VAR(dns_forwarder),
4298                 .special        = NULL,
4299                 .enum_list      = NULL,
4300                 .flags          = FLAG_ADVANCED,
4301         },
4302         {
4303                 .label          = "dns update command",
4304                 .type           = P_CMDLIST,
4305                 .p_class        = P_GLOBAL,
4306                 .offset         = GLOBAL_VAR(dns_update_command),
4307                 .special        = NULL,
4308                 .enum_list      = NULL,
4309                 .flags          = FLAG_ADVANCED,
4310         },
4311         {
4312                 .label          = "nsupdate command",
4313                 .type           = P_CMDLIST,
4314                 .p_class        = P_GLOBAL,
4315                 .offset         = GLOBAL_VAR(nsupdate_command),
4316                 .special        = NULL,
4317                 .enum_list      = NULL,
4318                 .flags          = FLAG_ADVANCED,
4319         },
4320         {
4321                 .label          = "rndc command",
4322                 .type           = P_CMDLIST,
4323                 .p_class        = P_GLOBAL,
4324                 .offset         = GLOBAL_VAR(rndc_command),
4325                 .special        = NULL,
4326                 .enum_list      = NULL,
4327                 .flags          = FLAG_ADVANCED,
4328         },
4329         {
4330                 .label          = "multicast dns register",
4331                 .type           = P_BOOL,
4332                 .p_class        = P_GLOBAL,
4333                 .offset         = GLOBAL_VAR(multicast_dns_register),
4334                 .special        = NULL,
4335                 .enum_list      = NULL,
4336                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
4337         },
4338
4339         {N_("AD DC options"), P_SEP, P_SEPARATOR},
4340
4341         {
4342                 .label          = "samba kcc command",
4343                 .type           = P_CMDLIST,
4344                 .p_class        = P_GLOBAL,
4345                 .offset         = GLOBAL_VAR(samba_kcc_command),
4346                 .special        = NULL,
4347                 .enum_list      = NULL,
4348                 .flags          = FLAG_ADVANCED,
4349         },
4350         {
4351                 .label          = "server services",
4352                 .type           = P_LIST,
4353                 .p_class        = P_GLOBAL,
4354                 .offset         = GLOBAL_VAR(server_services),
4355                 .special        = NULL,
4356                 .enum_list      = NULL
4357         },
4358         {
4359                 .label          = "dcerpc endpoint servers",
4360                 .type           = P_LIST,
4361                 .p_class        = P_GLOBAL,
4362                 .offset         = GLOBAL_VAR(dcerpc_endpoint_servers),
4363                 .special        = NULL,
4364                 .enum_list      = NULL
4365         },
4366         {
4367                 .label          = "spn update command",
4368                 .type           = P_CMDLIST,
4369                 .p_class        = P_GLOBAL,
4370                 .offset         = GLOBAL_VAR(spn_update_command),
4371                 .special        = NULL,
4372                 .enum_list      = NULL,
4373                 .flags          = FLAG_ADVANCED,
4374         },
4375         {
4376                 .label          = "share backend",
4377                 .type           = P_STRING,
4378                 .p_class        = P_GLOBAL,
4379                 .offset         = GLOBAL_VAR(share_backend),
4380                 .special        = NULL,
4381                 .enum_list      = NULL
4382         },
4383         {
4384                 .label          = "ntvfs handler",
4385                 .type           = P_LIST,
4386                 .p_class        = P_LOCAL,
4387                 .offset         = LOCAL_VAR(ntvfs_handler),
4388                 .special        = NULL,
4389                 .enum_list      = NULL
4390         },
4391         {
4392                 .label          = "allow nt4 crypto",
4393                 .type           = P_BOOL,
4394                 .p_class        = P_GLOBAL,
4395                 .offset         = GLOBAL_VAR(allow_nt4_crypto),
4396                 .special        = NULL,
4397                 .enum_list      = NULL,
4398                 .flags          = FLAG_ADVANCED,
4399         },
4400         {
4401                 .label          = "reject md5 clients",
4402                 .type           = P_BOOL,
4403                 .p_class        = P_GLOBAL,
4404                 .offset         = GLOBAL_VAR(reject_md5_clients),
4405                 .special        = NULL,
4406                 .enum_list      = NULL,
4407                 .flags          = FLAG_ADVANCED,
4408         },
4409
4410         {N_("TLS options"), P_SEP, P_SEPARATOR},
4411
4412         {
4413                 .label          = "tls enabled",
4414                 .type           = P_BOOL,
4415                 .p_class        = P_GLOBAL,
4416                 .offset         = GLOBAL_VAR(tls_enabled),
4417                 .special        = NULL,
4418                 .enum_list      = NULL
4419         },
4420         {
4421                 .label          = "tls keyfile",
4422                 .type           = P_STRING,
4423                 .p_class        = P_GLOBAL,
4424                 .offset         = GLOBAL_VAR(_tls_keyfile),
4425                 .special        = NULL,
4426                 .enum_list      = NULL
4427         },
4428         {
4429                 .label          = "tls certfile",
4430                 .type           = P_STRING,
4431                 .p_class        = P_GLOBAL,
4432                 .offset         = GLOBAL_VAR(_tls_certfile),
4433                 .special        = NULL,
4434                 .enum_list      = NULL
4435         },
4436         {
4437                 .label          = "tls cafile",
4438                 .type           = P_STRING,
4439                 .p_class        = P_GLOBAL,
4440                 .offset         = GLOBAL_VAR(_tls_cafile),
4441                 .special        = NULL,
4442                 .enum_list      = NULL
4443         },
4444         {
4445                 .label          = "tls crlfile",
4446                 .type           = P_STRING,
4447                 .p_class        = P_GLOBAL,
4448                 .offset         = GLOBAL_VAR(_tls_crlfile),
4449                 .special        = NULL,
4450                 .enum_list      = NULL
4451         },
4452         {
4453                 .label          = "tls dh params file",
4454                 .type           = P_STRING,
4455                 .p_class        = P_GLOBAL,
4456                 .offset         = GLOBAL_VAR(_tls_dhpfile),
4457                 .special        = NULL,
4458                 .enum_list      = NULL
4459         },
4460
4461         {NULL,  P_BOOL,  P_NONE,  0,  NULL,  NULL,  0}
4462 };
4463
4464 int num_parameters(void)
4465 {
4466         return (sizeof(parm_table) / sizeof(struct parm_struct));
4467 }