s3:param: Add "smb2 leases" parameter. Default "false".
[kai/samba-autobuild/.git] / lib / param / param_table.c
1 /*
2    Unix SMB/CIFS implementation.
3    Parameter loading functions
4    Copyright (C) Karl Auer 1993-1998
5
6    Largely re-written by Andrew Tridgell, September 1994
7
8    Copyright (C) Simo Sorce 2001
9    Copyright (C) Alexander Bokovoy 2002
10    Copyright (C) Stefan (metze) Metzmacher 2002
11    Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2003
12    Copyright (C) Michael Adam 2008
13    Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
14    Copyright (C) Andrew Bartlett 2011
15
16    This program is free software; you can redistribute it and/or modify
17    it under the terms of the GNU General Public License as published by
18    the Free Software Foundation; either version 3 of the License, or
19    (at your option) any later version.
20
21    This program is distributed in the hope that it will be useful,
22    but WITHOUT ANY WARRANTY; without even the implied warranty of
23    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24    GNU General Public License for more details.
25
26    You should have received a copy of the GNU General Public License
27    along with this program.  If not, see <http://www.gnu.org/licenses/>.
28 */
29
30 #include "includes.h"
31 #include "lib/param/param.h"
32 #include "lib/param/loadparm.h"
33 #include "lib/param/param_global.h"
34 #include "libcli/smb/smb_constants.h"
35
36 #ifndef N_
37 #define N_(x) x
38 #endif
39
40 static const struct enum_list enum_protocol[] = {
41         {PROTOCOL_DEFAULT, "default"}, /* the caller decides what this means */
42         {PROTOCOL_SMB2_10, "SMB2"}, /* for now keep PROTOCOL_SMB2_10 */
43         {PROTOCOL_SMB3_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,
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,
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,
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          = "max log size",
1210                 .type           = P_BYTES,
1211                 .p_class        = P_GLOBAL,
1212                 .offset         = GLOBAL_VAR(max_log_size),
1213                 .special        = NULL,
1214                 .enum_list      = NULL,
1215                 .flags          = FLAG_ADVANCED,
1216         },
1217         {
1218                 .label          = "debug timestamp",
1219                 .type           = P_BOOL,
1220                 .p_class        = P_GLOBAL,
1221                 .offset         = GLOBAL_VAR(timestamp_logs),
1222                 .special        = NULL,
1223                 .enum_list      = NULL,
1224                 .flags          = FLAG_ADVANCED,
1225         },
1226         {
1227                 .label          = "timestamp logs",
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          = "debug prefix timestamp",
1237                 .type           = P_BOOL,
1238                 .p_class        = P_GLOBAL,
1239                 .offset         = GLOBAL_VAR(debug_prefix_timestamp),
1240                 .special        = NULL,
1241                 .enum_list      = NULL,
1242                 .flags          = FLAG_ADVANCED,
1243         },
1244         {
1245                 .label          = "debug hires timestamp",
1246                 .type           = P_BOOL,
1247                 .p_class        = P_GLOBAL,
1248                 .offset         = GLOBAL_VAR(debug_hires_timestamp),
1249                 .special        = NULL,
1250                 .enum_list      = NULL,
1251                 .flags          = FLAG_ADVANCED,
1252         },
1253         {
1254                 .label          = "debug pid",
1255                 .type           = P_BOOL,
1256                 .p_class        = P_GLOBAL,
1257                 .offset         = GLOBAL_VAR(debug_pid),
1258                 .special        = NULL,
1259                 .enum_list      = NULL,
1260                 .flags          = FLAG_ADVANCED,
1261         },
1262         {
1263                 .label          = "debug uid",
1264                 .type           = P_BOOL,
1265                 .p_class        = P_GLOBAL,
1266                 .offset         = GLOBAL_VAR(debug_uid),
1267                 .special        = NULL,
1268                 .enum_list      = NULL,
1269                 .flags          = FLAG_ADVANCED,
1270         },
1271         {
1272                 .label          = "debug class",
1273                 .type           = P_BOOL,
1274                 .p_class        = P_GLOBAL,
1275                 .offset         = GLOBAL_VAR(debug_class),
1276                 .special        = NULL,
1277                 .enum_list      = NULL,
1278                 .flags          = FLAG_ADVANCED,
1279         },
1280         {
1281                 .label          = "enable core files",
1282                 .type           = P_BOOL,
1283                 .p_class        = P_GLOBAL,
1284                 .offset         = GLOBAL_VAR(enable_core_files),
1285                 .special        = NULL,
1286                 .enum_list      = NULL,
1287                 .flags          = FLAG_ADVANCED,
1288         },
1289
1290         {N_("Protocol Options"), P_SEP, P_SEPARATOR},
1291
1292         {
1293                 .label          = "allocation roundup size",
1294                 .type           = P_BYTES,
1295                 .p_class        = P_LOCAL,
1296                 .offset         = LOCAL_VAR(allocation_roundup_size),
1297                 .special        = NULL,
1298                 .enum_list      = NULL,
1299                 .flags          = FLAG_ADVANCED,
1300         },
1301         {
1302                 .label          = "aio read size",
1303                 .type           = P_BYTES,
1304                 .p_class        = P_LOCAL,
1305                 .offset         = LOCAL_VAR(aio_read_size),
1306                 .special        = NULL,
1307                 .enum_list      = NULL,
1308                 .flags          = FLAG_ADVANCED,
1309         },
1310         {
1311                 .label          = "aio write size",
1312                 .type           = P_BYTES,
1313                 .p_class        = P_LOCAL,
1314                 .offset         = LOCAL_VAR(aio_write_size),
1315                 .special        = NULL,
1316                 .enum_list      = NULL,
1317                 .flags          = FLAG_ADVANCED,
1318         },
1319         {
1320                 .label          = "aio write behind",
1321                 .type           = P_STRING,
1322                 .p_class        = P_LOCAL,
1323                 .offset         = LOCAL_VAR(aio_write_behind),
1324                 .special        = NULL,
1325                 .enum_list      = NULL,
1326                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1327         },
1328         {
1329                 .label          = "smb ports",
1330                 .type           = P_CMDLIST,
1331                 .p_class        = P_GLOBAL,
1332                 .offset         = GLOBAL_VAR(smb_ports),
1333                 .special        = handle_smb_ports,
1334                 .enum_list      = NULL,
1335                 .flags          = FLAG_ADVANCED,
1336         },
1337         {
1338                 .label          = "large readwrite",
1339                 .type           = P_BOOL,
1340                 .p_class        = P_GLOBAL,
1341                 .offset         = GLOBAL_VAR(large_readwrite),
1342                 .special        = NULL,
1343                 .enum_list      = NULL,
1344                 .flags          = FLAG_ADVANCED,
1345         },
1346         {
1347                 .label          = "server max protocol",
1348                 .type           = P_ENUM,
1349                 .p_class        = P_GLOBAL,
1350                 .offset         = GLOBAL_VAR(server_max_protocol),
1351                 .special        = NULL,
1352                 .enum_list      = enum_protocol,
1353                 .flags          = FLAG_ADVANCED,
1354         },
1355         {
1356                 .label          = "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          = "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          = "server min protocol",
1375                 .type           = P_ENUM,
1376                 .p_class        = P_GLOBAL,
1377                 .offset         = GLOBAL_VAR(server_min_protocol),
1378                 .special        = NULL,
1379                 .enum_list      = enum_protocol,
1380                 .flags          = FLAG_ADVANCED,
1381         },
1382         {
1383                 .label          = "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          = "client max protocol",
1393                 .type           = P_ENUM,
1394                 .p_class        = P_GLOBAL,
1395                 .offset         = GLOBAL_VAR(_client_max_protocol),
1396                 .special        = NULL,
1397                 .enum_list      = enum_protocol,
1398                 .flags          = FLAG_ADVANCED,
1399         },
1400         {
1401                 .label          = "client min protocol",
1402                 .type           = P_ENUM,
1403                 .p_class        = P_GLOBAL,
1404                 .offset         = GLOBAL_VAR(client_min_protocol),
1405                 .special        = NULL,
1406                 .enum_list      = enum_protocol,
1407                 .flags          = FLAG_ADVANCED,
1408         },
1409         {
1410                 .label          = "unicode",
1411                 .type           = P_BOOL,
1412                 .p_class        = P_GLOBAL,
1413                 .offset         = GLOBAL_VAR(unicode),
1414                 .special        = NULL,
1415                 .enum_list      = NULL
1416         },
1417         {
1418                 .label          = "min receivefile size",
1419                 .type           = P_BYTES,
1420                 .p_class        = P_GLOBAL,
1421                 .offset         = GLOBAL_VAR(iminreceivefile),
1422                 .special        = NULL,
1423                 .enum_list      = NULL,
1424                 .flags          = FLAG_ADVANCED,
1425         },
1426         {
1427                 .label          = "read raw",
1428                 .type           = P_BOOL,
1429                 .p_class        = P_GLOBAL,
1430                 .offset         = GLOBAL_VAR(read_raw),
1431                 .special        = NULL,
1432                 .enum_list      = NULL,
1433                 .flags          = FLAG_ADVANCED,
1434         },
1435         {
1436                 .label          = "write raw",
1437                 .type           = P_BOOL,
1438                 .p_class        = P_GLOBAL,
1439                 .offset         = GLOBAL_VAR(write_raw),
1440                 .special        = NULL,
1441                 .enum_list      = NULL,
1442                 .flags          = FLAG_ADVANCED,
1443         },
1444         {
1445                 .label          = "disable netbios",
1446                 .type           = P_BOOL,
1447                 .p_class        = P_GLOBAL,
1448                 .offset         = GLOBAL_VAR(disable_netbios),
1449                 .special        = NULL,
1450                 .enum_list      = NULL,
1451                 .flags          = FLAG_ADVANCED,
1452         },
1453         {
1454                 .label          = "reset on zero vc",
1455                 .type           = P_BOOL,
1456                 .p_class        = P_GLOBAL,
1457                 .offset         = GLOBAL_VAR(reset_on_zero_vc),
1458                 .special        = NULL,
1459                 .enum_list      = NULL,
1460                 .flags          = FLAG_ADVANCED,
1461         },
1462         {
1463                 .label          = "log writeable files on exit",
1464                 .type           = P_BOOL,
1465                 .p_class        = P_GLOBAL,
1466                 .offset         = GLOBAL_VAR(log_writeable_files_on_exit),
1467                 .special        = NULL,
1468                 .enum_list      = NULL,
1469                 .flags          = FLAG_ADVANCED,
1470         },
1471         {
1472                 .label          = "defer sharing violations",
1473                 .type           = P_BOOL,
1474                 .p_class        = P_GLOBAL,
1475                 .offset         = GLOBAL_VAR(defer_sharing_violations),
1476                 .special        = NULL,
1477                 .enum_list      = NULL,
1478                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1479         },
1480         {
1481                 .label          = "ea support",
1482                 .type           = P_BOOL,
1483                 .p_class        = P_LOCAL,
1484                 .offset         = LOCAL_VAR(ea_support),
1485                 .special        = NULL,
1486                 .enum_list      = NULL,
1487                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1488         },
1489         {
1490                 .label          = "nt acl support",
1491                 .type           = P_BOOL,
1492                 .p_class        = P_LOCAL,
1493                 .offset         = LOCAL_VAR(nt_acl_support),
1494                 .special        = NULL,
1495                 .enum_list      = NULL,
1496                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1497         },
1498         {
1499                 .label          = "nt pipe support",
1500                 .type           = P_BOOL,
1501                 .p_class        = P_GLOBAL,
1502                 .offset         = GLOBAL_VAR(nt_pipe_support),
1503                 .special        = NULL,
1504                 .enum_list      = NULL,
1505                 .flags          = FLAG_ADVANCED,
1506         },
1507         {
1508                 .label          = "nt status support",
1509                 .type           = P_BOOL,
1510                 .p_class        = P_GLOBAL,
1511                 .offset         = GLOBAL_VAR(nt_status_support),
1512                 .special        = NULL,
1513                 .enum_list      = NULL,
1514                 .flags          = FLAG_ADVANCED,
1515         },
1516         {
1517                 .label          = "smbd profiling level",
1518                 .type           = P_ENUM,
1519                 .p_class        = P_GLOBAL,
1520                 .offset         = GLOBAL_VAR(smbd_profiling_level),
1521                 .special        = NULL,
1522                 .enum_list      = enum_smbd_profiling_level,
1523                 .flags          = FLAG_ADVANCED,
1524         },
1525         {
1526                 .label          = "profile acls",
1527                 .type           = P_BOOL,
1528                 .p_class        = P_LOCAL,
1529                 .offset         = LOCAL_VAR(profile_acls),
1530                 .special        = NULL,
1531                 .enum_list      = NULL,
1532                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1533         },
1534         {
1535                 .label          = "map acl inherit",
1536                 .type           = P_BOOL,
1537                 .p_class        = P_LOCAL,
1538                 .offset         = LOCAL_VAR(map_acl_inherit),
1539                 .special        = NULL,
1540                 .enum_list      = NULL,
1541                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1542         },
1543         {
1544                 .label          = "afs share",
1545                 .type           = P_BOOL,
1546                 .p_class        = P_LOCAL,
1547                 .offset         = LOCAL_VAR(afs_share),
1548                 .special        = NULL,
1549                 .enum_list      = NULL,
1550                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1551         },
1552         {
1553                 .label          = "max mux",
1554                 .type           = P_INTEGER,
1555                 .p_class        = P_GLOBAL,
1556                 .offset         = GLOBAL_VAR(max_mux),
1557                 .special        = NULL,
1558                 .enum_list      = NULL,
1559                 .flags          = FLAG_ADVANCED,
1560         },
1561         {
1562                 .label          = "max xmit",
1563                 .type           = P_BYTES,
1564                 .p_class        = P_GLOBAL,
1565                 .offset         = GLOBAL_VAR(max_xmit),
1566                 .special        = NULL,
1567                 .enum_list      = NULL,
1568                 .flags          = FLAG_ADVANCED,
1569         },
1570         {
1571                 .label          = "name resolve order",
1572                 .type           = P_CMDLIST,
1573                 .p_class        = P_GLOBAL,
1574                 .offset         = GLOBAL_VAR(name_resolve_order),
1575                 .special        = NULL,
1576                 .enum_list      = NULL,
1577                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
1578         },
1579         {
1580                 .label          = "max ttl",
1581                 .type           = P_INTEGER,
1582                 .p_class        = P_GLOBAL,
1583                 .offset         = GLOBAL_VAR(max_ttl),
1584                 .special        = NULL,
1585                 .enum_list      = NULL,
1586                 .flags          = FLAG_ADVANCED,
1587         },
1588         {
1589                 .label          = "max wins ttl",
1590                 .type           = P_INTEGER,
1591                 .p_class        = P_GLOBAL,
1592                 .offset         = GLOBAL_VAR(max_wins_ttl),
1593                 .special        = NULL,
1594                 .enum_list      = NULL,
1595                 .flags          = FLAG_ADVANCED,
1596         },
1597         {
1598                 .label          = "min wins ttl",
1599                 .type           = P_INTEGER,
1600                 .p_class        = P_GLOBAL,
1601                 .offset         = GLOBAL_VAR(min_wins_ttl),
1602                 .special        = NULL,
1603                 .enum_list      = NULL,
1604                 .flags          = FLAG_ADVANCED,
1605         },
1606         {
1607                 .label          = "time server",
1608                 .type           = P_BOOL,
1609                 .p_class        = P_GLOBAL,
1610                 .offset         = GLOBAL_VAR(time_server),
1611                 .special        = NULL,
1612                 .enum_list      = NULL,
1613                 .flags          = FLAG_ADVANCED,
1614         },
1615         {
1616                 .label          = "unix extensions",
1617                 .type           = P_BOOL,
1618                 .p_class        = P_GLOBAL,
1619                 .offset         = GLOBAL_VAR(unix_extensions),
1620                 .special        = NULL,
1621                 .enum_list      = NULL,
1622                 .flags          = FLAG_ADVANCED,
1623         },
1624         {
1625                 .label          = "use spnego",
1626                 .type           = P_BOOL,
1627                 .p_class        = P_GLOBAL,
1628                 .offset         = GLOBAL_VAR(use_spnego),
1629                 .special        = NULL,
1630                 .enum_list      = NULL,
1631                 .flags          = FLAG_ADVANCED | FLAG_DEPRECATED,
1632         },
1633         {
1634                 .label          = "client signing",
1635                 .type           = P_ENUM,
1636                 .p_class        = P_GLOBAL,
1637                 .offset         = GLOBAL_VAR(client_signing),
1638                 .special        = NULL,
1639                 .enum_list      = enum_smb_signing_vals,
1640                 .flags          = FLAG_ADVANCED,
1641         },
1642         {
1643                 .label          = "server signing",
1644                 .type           = P_ENUM,
1645                 .p_class        = P_GLOBAL,
1646                 .offset         = GLOBAL_VAR(server_signing),
1647                 .special        = NULL,
1648                 .enum_list      = enum_smb_signing_vals,
1649                 .flags          = FLAG_ADVANCED,
1650         },
1651         {
1652                 .label          = "smb encrypt",
1653                 .type           = P_ENUM,
1654                 .p_class        = P_LOCAL,
1655                 .offset         = LOCAL_VAR(smb_encrypt),
1656                 .special        = NULL,
1657                 .enum_list      = enum_smb_signing_vals,
1658                 .flags          = FLAG_ADVANCED,
1659         },
1660         {
1661                 .label          = "client use spnego",
1662                 .type           = P_BOOL,
1663                 .p_class        = P_GLOBAL,
1664                 .offset         = GLOBAL_VAR(client_use_spnego),
1665                 .special        = NULL,
1666                 .enum_list      = NULL,
1667                 .flags          = FLAG_ADVANCED,
1668         },
1669         {
1670                 .label          = "client ldap sasl wrapping",
1671                 .type           = P_ENUM,
1672                 .p_class        = P_GLOBAL,
1673                 .offset         = GLOBAL_VAR(client_ldap_sasl_wrapping),
1674                 .special        = NULL,
1675                 .enum_list      = enum_ldap_sasl_wrapping,
1676                 .flags          = FLAG_ADVANCED,
1677         },
1678         {
1679                 .label          = "enable asu support",
1680                 .type           = P_BOOL,
1681                 .p_class        = P_GLOBAL,
1682                 .offset         = GLOBAL_VAR(enable_asu_support),
1683                 .special        = NULL,
1684                 .enum_list      = NULL,
1685                 .flags          = FLAG_ADVANCED,
1686         },
1687         {
1688                 .label          = "svcctl list",
1689                 .type           = P_CMDLIST,
1690                 .p_class        = P_GLOBAL,
1691                 .offset         = GLOBAL_VAR(svcctl_list),
1692                 .special        = NULL,
1693                 .enum_list      = NULL,
1694                 .flags          = FLAG_ADVANCED,
1695         },
1696         {
1697                 .label          = "cldap port",
1698                 .type           = P_INTEGER,
1699                 .p_class        = P_GLOBAL,
1700                 .offset         = GLOBAL_VAR(cldap_port),
1701                 .special        = NULL,
1702                 .enum_list      = NULL
1703         },
1704         {
1705                 .label          = "dgram port",
1706                 .type           = P_INTEGER,
1707                 .p_class        = P_GLOBAL,
1708                 .offset         = GLOBAL_VAR(dgram_port),
1709                 .special        = NULL,
1710                 .enum_list      = NULL
1711         },
1712         {
1713                 .label          = "nbt port",
1714                 .type           = P_INTEGER,
1715                 .p_class        = P_GLOBAL,
1716                 .offset         = GLOBAL_VAR(nbt_port),
1717                 .special        = NULL,
1718                 .enum_list      = NULL
1719         },
1720         {
1721                 .label          = "krb5 port",
1722                 .type           = P_INTEGER,
1723                 .p_class        = P_GLOBAL,
1724                 .offset         = GLOBAL_VAR(krb5_port),
1725                 .special        = NULL,
1726                 .enum_list      = NULL
1727         },
1728         {
1729                 .label          = "kpasswd port",
1730                 .type           = P_INTEGER,
1731                 .p_class        = P_GLOBAL,
1732                 .offset         = GLOBAL_VAR(kpasswd_port),
1733                 .special        = NULL,
1734                 .enum_list      = NULL
1735         },
1736         {
1737                 .label          = "web port",
1738                 .type           = P_INTEGER,
1739                 .p_class        = P_GLOBAL,
1740                 .offset         = GLOBAL_VAR(web_port),
1741                 .special        = NULL,
1742                 .enum_list      = NULL
1743         },
1744         {
1745                 .label          = "rpc big endian",
1746                 .type           = P_BOOL,
1747                 .p_class        = P_GLOBAL,
1748                 .offset         = GLOBAL_VAR(rpc_big_endian),
1749                 .special        = NULL,
1750                 .enum_list      = NULL
1751         },
1752         {
1753                 .label          = "durable handles",
1754                 .type           = P_BOOL,
1755                 .p_class        = P_LOCAL,
1756                 .offset         = LOCAL_VAR(durable_handles),
1757                 .special        = NULL,
1758                 .enum_list      = NULL,
1759                 .flags          = FLAG_ADVANCED,
1760         },
1761
1762         {N_("Tuning Options"), P_SEP, P_SEPARATOR},
1763
1764         {
1765                 .label          = "block size",
1766                 .type           = P_BYTES,
1767                 .p_class        = P_LOCAL,
1768                 .offset         = LOCAL_VAR(block_size),
1769                 .special        = NULL,
1770                 .enum_list      = NULL,
1771                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1772         },
1773         {
1774                 .label          = "deadtime",
1775                 .type           = P_INTEGER,
1776                 .p_class        = P_GLOBAL,
1777                 .offset         = GLOBAL_VAR(deadtime),
1778                 .special        = NULL,
1779                 .enum_list      = NULL,
1780                 .flags          = FLAG_ADVANCED,
1781         },
1782         {
1783                 .label          = "getwd cache",
1784                 .type           = P_BOOL,
1785                 .p_class        = P_GLOBAL,
1786                 .offset         = GLOBAL_VAR(getwd_cache),
1787                 .special        = NULL,
1788                 .enum_list      = NULL,
1789                 .flags          = FLAG_ADVANCED,
1790         },
1791         {
1792                 .label          = "keepalive",
1793                 .type           = P_INTEGER,
1794                 .p_class        = P_GLOBAL,
1795                 .offset         = GLOBAL_VAR(keepalive),
1796                 .special        = NULL,
1797                 .enum_list      = NULL,
1798                 .flags          = FLAG_ADVANCED,
1799         },
1800         {
1801                 .label          = "change notify",
1802                 .type           = P_BOOL,
1803                 .p_class        = P_LOCAL,
1804                 .offset         = LOCAL_VAR(change_notify),
1805                 .special        = NULL,
1806                 .enum_list      = NULL,
1807                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1808         },
1809         {
1810                 .label          = "directory name cache size",
1811                 .type           = P_INTEGER,
1812                 .p_class        = P_LOCAL,
1813                 .offset         = LOCAL_VAR(directory_name_cache_size),
1814                 .special        = NULL,
1815                 .enum_list      = NULL,
1816                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1817         },
1818         {
1819                 .label          = "kernel change notify",
1820                 .type           = P_BOOL,
1821                 .p_class        = P_LOCAL,
1822                 .offset         = LOCAL_VAR(kernel_change_notify),
1823                 .special        = NULL,
1824                 .enum_list      = NULL,
1825                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1826         },
1827         {
1828                 .label          = "lpq cache time",
1829                 .type           = P_INTEGER,
1830                 .p_class        = P_GLOBAL,
1831                 .offset         = GLOBAL_VAR(lpq_cache_time),
1832                 .special        = NULL,
1833                 .enum_list      = NULL,
1834                 .flags          = FLAG_ADVANCED,
1835         },
1836         {
1837                 .label          = "max smbd processes",
1838                 .type           = P_INTEGER,
1839                 .p_class        = P_GLOBAL,
1840                 .offset         = GLOBAL_VAR(max_smbd_processes),
1841                 .special        = NULL,
1842                 .enum_list      = NULL,
1843                 .flags          = FLAG_ADVANCED,
1844         },
1845         {
1846                 .label          = "max connections",
1847                 .type           = P_INTEGER,
1848                 .p_class        = P_LOCAL,
1849                 .offset         = LOCAL_VAR(max_connections),
1850                 .special        = NULL,
1851                 .enum_list      = NULL,
1852                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1853         },
1854         {
1855                 .label          = "max disk size",
1856                 .type           = P_BYTES,
1857                 .p_class        = P_GLOBAL,
1858                 .offset         = GLOBAL_VAR(max_disk_size),
1859                 .special        = NULL,
1860                 .enum_list      = NULL,
1861                 .flags          = FLAG_ADVANCED,
1862         },
1863         {
1864                 .label          = "max open files",
1865                 .type           = P_INTEGER,
1866                 .p_class        = P_GLOBAL,
1867                 .offset         = GLOBAL_VAR(max_open_files),
1868                 .special        = NULL,
1869                 .enum_list      = NULL,
1870                 .flags          = FLAG_ADVANCED,
1871         },
1872         {
1873                 .label          = "min print space",
1874                 .type           = P_INTEGER,
1875                 .p_class        = P_LOCAL,
1876                 .offset         = LOCAL_VAR(min_print_space),
1877                 .special        = NULL,
1878                 .enum_list      = NULL,
1879                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
1880         },
1881         {
1882                 .label          = "socket options",
1883                 .type           = P_STRING,
1884                 .p_class        = P_GLOBAL,
1885                 .offset         = GLOBAL_VAR(socket_options),
1886                 .special        = NULL,
1887                 .enum_list      = NULL,
1888                 .flags          = FLAG_ADVANCED,
1889         },
1890         {
1891                 .label          = "strict allocate",
1892                 .type           = P_BOOL,
1893                 .p_class        = P_LOCAL,
1894                 .offset         = LOCAL_VAR(strict_allocate),
1895                 .special        = NULL,
1896                 .enum_list      = NULL,
1897                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1898         },
1899         {
1900                 .label          = "strict rename",
1901                 .type           = P_BOOL,
1902                 .p_class        = P_LOCAL,
1903                 .offset         = LOCAL_VAR(strict_rename),
1904                 .special        = NULL,
1905                 .enum_list      = NULL,
1906                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1907         },
1908         {
1909                 .label          = "strict sync",
1910                 .type           = P_BOOL,
1911                 .p_class        = P_LOCAL,
1912                 .offset         = LOCAL_VAR(strict_sync),
1913                 .special        = NULL,
1914                 .enum_list      = NULL,
1915                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1916         },
1917         {
1918                 .label          = "sync always",
1919                 .type           = P_BOOL,
1920                 .p_class        = P_LOCAL,
1921                 .offset         = LOCAL_VAR(sync_always),
1922                 .special        = NULL,
1923                 .enum_list      = NULL,
1924                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1925         },
1926         {
1927                 .label          = "use mmap",
1928                 .type           = P_BOOL,
1929                 .p_class        = P_GLOBAL,
1930                 .offset         = GLOBAL_VAR(use_mmap),
1931                 .special        = NULL,
1932                 .enum_list      = NULL,
1933                 .flags          = FLAG_ADVANCED,
1934         },
1935         {
1936                 .label          = "use ntdb",
1937                 .type           = P_BOOL,
1938                 .p_class        = P_GLOBAL,
1939                 .offset         = GLOBAL_VAR(use_ntdb),
1940                 .special        = NULL,
1941                 .enum_list      = NULL,
1942                 .flags          = FLAG_ADVANCED,
1943         },
1944         {
1945                 .label          = "use sendfile",
1946                 .type           = P_BOOL,
1947                 .p_class        = P_LOCAL,
1948                 .offset         = LOCAL_VAR(_use_sendfile),
1949                 .special        = NULL,
1950                 .enum_list      = NULL,
1951                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1952         },
1953         {
1954                 .label          = "hostname lookups",
1955                 .type           = P_BOOL,
1956                 .p_class        = P_GLOBAL,
1957                 .offset         = GLOBAL_VAR(hostname_lookups),
1958                 .special        = NULL,
1959                 .enum_list      = NULL,
1960                 .flags          = FLAG_ADVANCED,
1961         },
1962         {
1963                 .label          = "write cache size",
1964                 .type           = P_BYTES,
1965                 .p_class        = P_LOCAL,
1966                 .offset         = LOCAL_VAR(write_cache_size),
1967                 .special        = NULL,
1968                 .enum_list      = NULL,
1969                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
1970         },
1971         {
1972                 .label          = "name cache timeout",
1973                 .type           = P_INTEGER,
1974                 .p_class        = P_GLOBAL,
1975                 .offset         = GLOBAL_VAR(name_cache_timeout),
1976                 .special        = NULL,
1977                 .enum_list      = NULL,
1978                 .flags          = FLAG_ADVANCED,
1979         },
1980         {
1981                 .label          = "ctdbd socket",
1982                 .type           = P_STRING,
1983                 .p_class        = P_GLOBAL,
1984                 .offset         = GLOBAL_VAR(_ctdbd_socket),
1985                 .special        = NULL,
1986                 .enum_list      = NULL,
1987                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1988         },
1989         {
1990                 .label          = "cluster addresses",
1991                 .type           = P_CMDLIST,
1992                 .p_class        = P_GLOBAL,
1993                 .offset         = GLOBAL_VAR(cluster_addresses),
1994                 .special        = NULL,
1995                 .enum_list      = NULL,
1996                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
1997         },
1998         {
1999                 .label          = "clustering",
2000                 .type           = P_BOOL,
2001                 .p_class        = P_GLOBAL,
2002                 .offset         = GLOBAL_VAR(clustering),
2003                 .special        = NULL,
2004                 .enum_list      = NULL,
2005                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
2006         },
2007         {
2008                 .label          = "ctdb timeout",
2009                 .type           = P_INTEGER,
2010                 .p_class        = P_GLOBAL,
2011                 .offset         = GLOBAL_VAR(ctdb_timeout),
2012                 .special        = NULL,
2013                 .enum_list      = NULL,
2014                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
2015         },
2016         {
2017                 .label          = "ctdb locktime warn threshold",
2018                 .type           = P_INTEGER,
2019                 .p_class        = P_GLOBAL,
2020                 .offset         = GLOBAL_VAR(ctdb_locktime_warn_threshold),
2021                 .special        = NULL,
2022                 .enum_list      = NULL,
2023                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
2024         },
2025         {
2026                 .label          = "smb2 max read",
2027                 .type           = P_BYTES,
2028                 .p_class        = P_GLOBAL,
2029                 .offset         = GLOBAL_VAR(smb2_max_read),
2030                 .special        = NULL,
2031                 .enum_list      = NULL,
2032                 .flags          = FLAG_ADVANCED,
2033         },
2034         {
2035                 .label          = "smb2 max write",
2036                 .type           = P_BYTES,
2037                 .p_class        = P_GLOBAL,
2038                 .offset         = GLOBAL_VAR(smb2_max_write),
2039                 .special        = NULL,
2040                 .enum_list      = NULL,
2041                 .flags          = FLAG_ADVANCED,
2042         },
2043         {
2044                 .label          = "smb2 max trans",
2045                 .type           = P_BYTES,
2046                 .p_class        = P_GLOBAL,
2047                 .offset         = GLOBAL_VAR(smb2_max_trans),
2048                 .special        = NULL,
2049                 .enum_list      = NULL,
2050                 .flags          = FLAG_ADVANCED,
2051         },
2052         {
2053                 .label          = "smb2 max credits",
2054                 .type           = P_INTEGER,
2055                 .p_class        = P_GLOBAL,
2056                 .offset         = GLOBAL_VAR(ismb2_max_credits),
2057                 .special        = NULL,
2058                 .enum_list      = NULL,
2059                 .flags          = FLAG_ADVANCED,
2060         },
2061
2062         {N_("Printing Options"), P_SEP, P_SEPARATOR},
2063
2064         {
2065                 .label          = "max reported print jobs",
2066                 .type           = P_INTEGER,
2067                 .p_class        = P_LOCAL,
2068                 .offset         = LOCAL_VAR(max_reported_print_jobs),
2069                 .special        = NULL,
2070                 .enum_list      = NULL,
2071                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2072         },
2073         {
2074                 .label          = "max print jobs",
2075                 .type           = P_INTEGER,
2076                 .p_class        = P_LOCAL,
2077                 .offset         = LOCAL_VAR(iMaxPrintJobs),
2078                 .special        = NULL,
2079                 .enum_list      = NULL,
2080                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2081         },
2082         {
2083                 .label          = "load printers",
2084                 .type           = P_BOOL,
2085                 .p_class        = P_GLOBAL,
2086                 .offset         = GLOBAL_VAR(load_printers),
2087                 .special        = NULL,
2088                 .enum_list      = NULL,
2089                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2090         },
2091         {
2092                 .label          = "printcap cache time",
2093                 .type           = P_INTEGER,
2094                 .p_class        = P_GLOBAL,
2095                 .offset         = GLOBAL_VAR(printcap_cache_time),
2096                 .special        = NULL,
2097                 .enum_list      = NULL,
2098                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2099         },
2100         {
2101                 .label          = "printcap name",
2102                 .type           = P_STRING,
2103                 .p_class        = P_GLOBAL,
2104                 .offset         = GLOBAL_VAR(szPrintcapname),
2105                 .special        = NULL,
2106                 .enum_list      = NULL,
2107                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2108         },
2109         {
2110                 .label          = "printcap",
2111                 .type           = P_STRING,
2112                 .p_class        = P_GLOBAL,
2113                 .offset         = GLOBAL_VAR(szPrintcapname),
2114                 .special        = NULL,
2115                 .enum_list      = NULL,
2116                 .flags          = FLAG_HIDE,
2117         },
2118         {
2119                 .label          = "printable",
2120                 .type           = P_BOOL,
2121                 .p_class        = P_LOCAL,
2122                 .offset         = LOCAL_VAR(printable),
2123                 .special        = NULL,
2124                 .enum_list      = NULL,
2125                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2126         },
2127         {
2128                 .label          = "print notify backchannel",
2129                 .type           = P_BOOL,
2130                 .p_class        = P_LOCAL,
2131                 .offset         = LOCAL_VAR(print_notify_backchannel),
2132                 .special        = NULL,
2133                 .enum_list      = NULL,
2134                 .flags          = FLAG_ADVANCED,
2135         },
2136         {
2137                 .label          = "print ok",
2138                 .type           = P_BOOL,
2139                 .p_class        = P_LOCAL,
2140                 .offset         = LOCAL_VAR(printable),
2141                 .special        = NULL,
2142                 .enum_list      = NULL,
2143                 .flags          = FLAG_HIDE,
2144         },
2145         {
2146                 .label          = "printing",
2147                 .type           = P_ENUM,
2148                 .p_class        = P_LOCAL,
2149                 .offset         = LOCAL_VAR(printing),
2150                 .special        = handle_printing,
2151                 .enum_list      = enum_printing,
2152                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2153         },
2154         {
2155                 .label          = "cups options",
2156                 .type           = P_STRING,
2157                 .p_class        = P_LOCAL,
2158                 .offset         = LOCAL_VAR(cups_options),
2159                 .special        = NULL,
2160                 .enum_list      = NULL,
2161                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2162         },
2163         {
2164                 .label          = "cups server",
2165                 .type           = P_STRING,
2166                 .p_class        = P_GLOBAL,
2167                 .offset         = GLOBAL_VAR(cups_server),
2168                 .special        = NULL,
2169                 .enum_list      = NULL,
2170                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2171         },
2172         {
2173                 .label          = "cups encrypt",
2174                 .type           = P_ENUM,
2175                 .p_class        = P_GLOBAL,
2176                 .offset         = GLOBAL_VAR(CupsEncrypt),
2177                 .special        = NULL,
2178                 .enum_list      = enum_bool_auto,
2179                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2180         },
2181         {
2182
2183                 .label          = "cups connection timeout",
2184                 .type           = P_INTEGER,
2185                 .p_class        = P_GLOBAL,
2186                 .offset         = GLOBAL_VAR(cups_connection_timeout),
2187                 .special        = NULL,
2188                 .enum_list      = NULL,
2189                 .flags          = FLAG_ADVANCED,
2190         },
2191         {
2192                 .label          = "iprint server",
2193                 .type           = P_STRING,
2194                 .p_class        = P_GLOBAL,
2195                 .offset         = GLOBAL_VAR(iprint_server),
2196                 .special        = NULL,
2197                 .enum_list      = NULL,
2198                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2199         },
2200         {
2201                 .label          = "print command",
2202                 .type           = P_STRING,
2203                 .p_class        = P_LOCAL,
2204                 .offset         = LOCAL_VAR(print_command),
2205                 .special        = NULL,
2206                 .enum_list      = NULL,
2207                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2208         },
2209         {
2210                 .label          = "disable spoolss",
2211                 .type           = P_BOOL,
2212                 .p_class        = P_GLOBAL,
2213                 .offset         = GLOBAL_VAR(_disable_spoolss),
2214                 .special        = NULL,
2215                 .enum_list      = NULL,
2216                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2217         },
2218         {
2219                 .label          = "enable spoolss",
2220                 .type           = P_BOOLREV,
2221                 .p_class        = P_GLOBAL,
2222                 .offset         = GLOBAL_VAR(_disable_spoolss),
2223                 .special        = NULL,
2224                 .enum_list      = NULL,
2225                 .flags          = FLAG_HIDE,
2226         },
2227         {
2228                 .label          = "lpq command",
2229                 .type           = P_STRING,
2230                 .p_class        = P_LOCAL,
2231                 .offset         = LOCAL_VAR(lpq_command),
2232                 .special        = NULL,
2233                 .enum_list      = NULL,
2234                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2235         },
2236         {
2237                 .label          = "lprm command",
2238                 .type           = P_STRING,
2239                 .p_class        = P_LOCAL,
2240                 .offset         = LOCAL_VAR(lprm_command),
2241                 .special        = NULL,
2242                 .enum_list      = NULL,
2243                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2244         },
2245         {
2246                 .label          = "lppause command",
2247                 .type           = P_STRING,
2248                 .p_class        = P_LOCAL,
2249                 .offset         = LOCAL_VAR(lppause_command),
2250                 .special        = NULL,
2251                 .enum_list      = NULL,
2252                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2253         },
2254         {
2255                 .label          = "lpresume command",
2256                 .type           = P_STRING,
2257                 .p_class        = P_LOCAL,
2258                 .offset         = LOCAL_VAR(lpresume_command),
2259                 .special        = NULL,
2260                 .enum_list      = NULL,
2261                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2262         },
2263         {
2264                 .label          = "queuepause command",
2265                 .type           = P_STRING,
2266                 .p_class        = P_LOCAL,
2267                 .offset         = LOCAL_VAR(queuepause_command),
2268                 .special        = NULL,
2269                 .enum_list      = NULL,
2270                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2271         },
2272         {
2273                 .label          = "queueresume command",
2274                 .type           = P_STRING,
2275                 .p_class        = P_LOCAL,
2276                 .offset         = LOCAL_VAR(queueresume_command),
2277                 .special        = NULL,
2278                 .enum_list      = NULL,
2279                 .flags          = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2280         },
2281         {
2282                 .label          = "addport command",
2283                 .type           = P_STRING,
2284                 .p_class        = P_GLOBAL,
2285                 .offset         = GLOBAL_VAR(addport_command),
2286                 .special        = NULL,
2287                 .enum_list      = NULL,
2288                 .flags          = FLAG_ADVANCED,
2289         },
2290         {
2291                 .label          = "enumports command",
2292                 .type           = P_STRING,
2293                 .p_class        = P_GLOBAL,
2294                 .offset         = GLOBAL_VAR(enumports_command),
2295                 .special        = NULL,
2296                 .enum_list      = NULL,
2297                 .flags          = FLAG_ADVANCED,
2298         },
2299         {
2300                 .label          = "addprinter command",
2301                 .type           = P_STRING,
2302                 .p_class        = P_GLOBAL,
2303                 .offset         = GLOBAL_VAR(addprinter_command),
2304                 .special        = NULL,
2305                 .enum_list      = NULL,
2306                 .flags          = FLAG_ADVANCED,
2307         },
2308         {
2309                 .label          = "deleteprinter command",
2310                 .type           = P_STRING,
2311                 .p_class        = P_GLOBAL,
2312                 .offset         = GLOBAL_VAR(deleteprinter_command),
2313                 .special        = NULL,
2314                 .enum_list      = NULL,
2315                 .flags          = FLAG_ADVANCED,
2316         },
2317         {
2318                 .label          = "show add printer wizard",
2319                 .type           = P_BOOL,
2320                 .p_class        = P_GLOBAL,
2321                 .offset         = GLOBAL_VAR(show_add_printer_wizard),
2322                 .special        = NULL,
2323                 .enum_list      = NULL,
2324                 .flags          = FLAG_ADVANCED,
2325         },
2326         {
2327                 .label          = "os2 driver map",
2328                 .type           = P_STRING,
2329                 .p_class        = P_GLOBAL,
2330                 .offset         = GLOBAL_VAR(os2_driver_map),
2331                 .special        = NULL,
2332                 .enum_list      = NULL,
2333                 .flags          = FLAG_ADVANCED,
2334         },
2335
2336         {
2337                 .label          = "printer name",
2338                 .type           = P_STRING,
2339                 .p_class        = P_LOCAL,
2340                 .offset         = LOCAL_VAR(_printername),
2341                 .special        = NULL,
2342                 .enum_list      = NULL,
2343                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2344         },
2345         {
2346                 .label          = "printer",
2347                 .type           = P_STRING,
2348                 .p_class        = P_LOCAL,
2349                 .offset         = LOCAL_VAR(_printername),
2350                 .special        = NULL,
2351                 .enum_list      = NULL,
2352                 .flags          = FLAG_HIDE,
2353         },
2354         {
2355                 .label          = "use client driver",
2356                 .type           = P_BOOL,
2357                 .p_class        = P_LOCAL,
2358                 .offset         = LOCAL_VAR(use_client_driver),
2359                 .special        = NULL,
2360                 .enum_list      = NULL,
2361                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2362         },
2363         {
2364                 .label          = "default devmode",
2365                 .type           = P_BOOL,
2366                 .p_class        = P_LOCAL,
2367                 .offset         = LOCAL_VAR(default_devmode),
2368                 .special        = NULL,
2369                 .enum_list      = NULL,
2370                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2371         },
2372         {
2373                 .label          = "force printername",
2374                 .type           = P_BOOL,
2375                 .p_class        = P_LOCAL,
2376                 .offset         = LOCAL_VAR(force_printername),
2377                 .special        = NULL,
2378                 .enum_list      = NULL,
2379                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2380         },
2381         {
2382                 .label          = "printjob username",
2383                 .type           = P_STRING,
2384                 .p_class        = P_LOCAL,
2385                 .offset         = LOCAL_VAR(printjob_username),
2386                 .special        = NULL,
2387                 .enum_list      = NULL,
2388                 .flags          = FLAG_ADVANCED | FLAG_PRINT,
2389         },
2390
2391         {N_("Filename Handling"), P_SEP, P_SEPARATOR},
2392
2393         {
2394                 .label          = "mangling method",
2395                 .type           = P_STRING,
2396                 .p_class        = P_GLOBAL,
2397                 .offset         = GLOBAL_VAR(mangling_method),
2398                 .special        = NULL,
2399                 .enum_list      = NULL,
2400                 .flags          = FLAG_ADVANCED,
2401         },
2402         {
2403                 .label          = "mangle prefix",
2404                 .type           = P_INTEGER,
2405                 .p_class        = P_GLOBAL,
2406                 .offset         = GLOBAL_VAR(mangle_prefix),
2407                 .special        = NULL,
2408                 .enum_list      = NULL,
2409                 .flags          = FLAG_ADVANCED,
2410         },
2411
2412         {
2413                 .label          = "default case",
2414                 .type           = P_ENUM,
2415                 .p_class        = P_LOCAL,
2416                 .offset         = LOCAL_VAR(default_case),
2417                 .special        = NULL,
2418                 .enum_list      = enum_case,
2419                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
2420         },
2421         {
2422                 .label          = "case sensitive",
2423                 .type           = P_ENUM,
2424                 .p_class        = P_LOCAL,
2425                 .offset         = LOCAL_VAR(case_sensitive),
2426                 .special        = NULL,
2427                 .enum_list      = enum_bool_auto,
2428                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2429         },
2430         {
2431                 .label          = "casesignames",
2432                 .type           = P_ENUM,
2433                 .p_class        = P_LOCAL,
2434                 .offset         = LOCAL_VAR(case_sensitive),
2435                 .special        = NULL,
2436                 .enum_list      = enum_bool_auto,
2437                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL | FLAG_HIDE,
2438         },
2439         {
2440                 .label          = "preserve case",
2441                 .type           = P_BOOL,
2442                 .p_class        = P_LOCAL,
2443                 .offset         = LOCAL_VAR(preserve_case),
2444                 .special        = NULL,
2445                 .enum_list      = NULL,
2446                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2447         },
2448         {
2449                 .label          = "short preserve case",
2450                 .type           = P_BOOL,
2451                 .p_class        = P_LOCAL,
2452                 .offset         = LOCAL_VAR(short_preserve_case),
2453                 .special        = NULL,
2454                 .enum_list      = NULL,
2455                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2456         },
2457         {
2458                 .label          = "mangling char",
2459                 .type           = P_CHAR,
2460                 .p_class        = P_LOCAL,
2461                 .offset         = LOCAL_VAR(mangling_char),
2462                 .special        = NULL,
2463                 .enum_list      = NULL,
2464                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2465         },
2466         {
2467                 .label          = "hide dot files",
2468                 .type           = P_BOOL,
2469                 .p_class        = P_LOCAL,
2470                 .offset         = LOCAL_VAR(hide_dot_files),
2471                 .special        = NULL,
2472                 .enum_list      = NULL,
2473                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2474         },
2475         {
2476                 .label          = "hide special files",
2477                 .type           = P_BOOL,
2478                 .p_class        = P_LOCAL,
2479                 .offset         = LOCAL_VAR(hide_special_files),
2480                 .special        = NULL,
2481                 .enum_list      = NULL,
2482                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2483         },
2484         {
2485                 .label          = "hide unreadable",
2486                 .type           = P_BOOL,
2487                 .p_class        = P_LOCAL,
2488                 .offset         = LOCAL_VAR(hide_unreadable),
2489                 .special        = NULL,
2490                 .enum_list      = NULL,
2491                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2492         },
2493         {
2494                 .label          = "hide unwriteable files",
2495                 .type           = P_BOOL,
2496                 .p_class        = P_LOCAL,
2497                 .offset         = LOCAL_VAR(hide_unwriteable_files),
2498                 .special        = NULL,
2499                 .enum_list      = NULL,
2500                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2501         },
2502         {
2503                 .label          = "delete veto files",
2504                 .type           = P_BOOL,
2505                 .p_class        = P_LOCAL,
2506                 .offset         = LOCAL_VAR(delete_veto_files),
2507                 .special        = NULL,
2508                 .enum_list      = NULL,
2509                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2510         },
2511         {
2512                 .label          = "veto files",
2513                 .type           = P_STRING,
2514                 .p_class        = P_LOCAL,
2515                 .offset         = LOCAL_VAR(veto_files),
2516                 .special        = NULL,
2517                 .enum_list      = NULL,
2518                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2519         },
2520         {
2521                 .label          = "hide files",
2522                 .type           = P_STRING,
2523                 .p_class        = P_LOCAL,
2524                 .offset         = LOCAL_VAR(hide_files),
2525                 .special        = NULL,
2526                 .enum_list      = NULL,
2527                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2528         },
2529         {
2530                 .label          = "veto oplock files",
2531                 .type           = P_STRING,
2532                 .p_class        = P_LOCAL,
2533                 .offset         = LOCAL_VAR(veto_oplock_files),
2534                 .special        = NULL,
2535                 .enum_list      = NULL,
2536                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2537         },
2538         {
2539                 .label          = "map archive",
2540                 .type           = P_BOOL,
2541                 .p_class        = P_LOCAL,
2542                 .offset         = LOCAL_VAR(map_archive),
2543                 .special        = NULL,
2544                 .enum_list      = NULL,
2545                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2546         },
2547         {
2548                 .label          = "map hidden",
2549                 .type           = P_BOOL,
2550                 .p_class        = P_LOCAL,
2551                 .offset         = LOCAL_VAR(map_hidden),
2552                 .special        = NULL,
2553                 .enum_list      = NULL,
2554                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2555         },
2556         {
2557                 .label          = "map system",
2558                 .type           = P_BOOL,
2559                 .p_class        = P_LOCAL,
2560                 .offset         = LOCAL_VAR(map_system),
2561                 .special        = NULL,
2562                 .enum_list      = NULL,
2563                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2564         },
2565         {
2566                 .label          = "map readonly",
2567                 .type           = P_ENUM,
2568                 .p_class        = P_LOCAL,
2569                 .offset         = LOCAL_VAR(map_readonly),
2570                 .special        = NULL,
2571                 .enum_list      = enum_map_readonly,
2572                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2573         },
2574         {
2575                 .label          = "mangled names",
2576                 .type           = P_BOOL,
2577                 .p_class        = P_LOCAL,
2578                 .offset         = LOCAL_VAR(mangled_names),
2579                 .special        = NULL,
2580                 .enum_list      = NULL,
2581                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2582         },
2583         {
2584                 .label          = "max stat cache size",
2585                 .type           = P_INTEGER,
2586                 .p_class        = P_GLOBAL,
2587                 .offset         = GLOBAL_VAR(max_stat_cache_size),
2588                 .special        = NULL,
2589                 .enum_list      = NULL,
2590                 .flags          = FLAG_ADVANCED,
2591         },
2592         {
2593                 .label          = "stat cache",
2594                 .type           = P_BOOL,
2595                 .p_class        = P_GLOBAL,
2596                 .offset         = GLOBAL_VAR(stat_cache),
2597                 .special        = NULL,
2598                 .enum_list      = NULL,
2599                 .flags          = FLAG_ADVANCED,
2600         },
2601         {
2602                 .label          = "store dos attributes",
2603                 .type           = P_BOOL,
2604                 .p_class        = P_LOCAL,
2605                 .offset         = LOCAL_VAR(store_dos_attributes),
2606                 .special        = NULL,
2607                 .enum_list      = NULL,
2608                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2609         },
2610         {
2611                 .label          = "dmapi support",
2612                 .type           = P_BOOL,
2613                 .p_class        = P_LOCAL,
2614                 .offset         = LOCAL_VAR(dmapi_support),
2615                 .special        = NULL,
2616                 .enum_list      = NULL,
2617                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2618         },
2619
2620
2621         {N_("Domain Options"), P_SEP, P_SEPARATOR},
2622
2623         {
2624                 .label          = "machine password timeout",
2625                 .type           = P_INTEGER,
2626                 .p_class        = P_GLOBAL,
2627                 .offset         = GLOBAL_VAR(machine_password_timeout),
2628                 .special        = NULL,
2629                 .enum_list      = NULL,
2630                 .flags          = FLAG_ADVANCED | FLAG_WIZARD,
2631         },
2632
2633         {N_("Logon Options"), P_SEP, P_SEPARATOR},
2634
2635         {
2636                 .label          = "add user script",
2637                 .type           = P_STRING,
2638                 .p_class        = P_GLOBAL,
2639                 .offset         = GLOBAL_VAR(add_user_script),
2640                 .special        = NULL,
2641                 .enum_list      = NULL,
2642                 .flags          = FLAG_ADVANCED,
2643         },
2644         {
2645                 .label          = "rename user script",
2646                 .type           = P_STRING,
2647                 .p_class        = P_GLOBAL,
2648                 .offset         = GLOBAL_VAR(rename_user_script),
2649                 .special        = NULL,
2650                 .enum_list      = NULL,
2651                 .flags          = FLAG_ADVANCED,
2652         },
2653         {
2654                 .label          = "delete user script",
2655                 .type           = P_STRING,
2656                 .p_class        = P_GLOBAL,
2657                 .offset         = GLOBAL_VAR(delete_user_script),
2658                 .special        = NULL,
2659                 .enum_list      = NULL,
2660                 .flags          = FLAG_ADVANCED,
2661         },
2662         {
2663                 .label          = "add group script",
2664                 .type           = P_STRING,
2665                 .p_class        = P_GLOBAL,
2666                 .offset         = GLOBAL_VAR(add_group_script),
2667                 .special        = NULL,
2668                 .enum_list      = NULL,
2669                 .flags          = FLAG_ADVANCED,
2670         },
2671         {
2672                 .label          = "delete group script",
2673                 .type           = P_STRING,
2674                 .p_class        = P_GLOBAL,
2675                 .offset         = GLOBAL_VAR(delete_group_script),
2676                 .special        = NULL,
2677                 .enum_list      = NULL,
2678                 .flags          = FLAG_ADVANCED,
2679         },
2680         {
2681                 .label          = "add user to group script",
2682                 .type           = P_STRING,
2683                 .p_class        = P_GLOBAL,
2684                 .offset         = GLOBAL_VAR(add_user_to_group_script),
2685                 .special        = NULL,
2686                 .enum_list      = NULL,
2687                 .flags          = FLAG_ADVANCED,
2688         },
2689         {
2690                 .label          = "delete user from group script",
2691                 .type           = P_STRING,
2692                 .p_class        = P_GLOBAL,
2693                 .offset         = GLOBAL_VAR(delete_user_from_group_script),
2694                 .special        = NULL,
2695                 .enum_list      = NULL,
2696                 .flags          = FLAG_ADVANCED,
2697         },
2698         {
2699                 .label          = "set primary group script",
2700                 .type           = P_STRING,
2701                 .p_class        = P_GLOBAL,
2702                 .offset         = GLOBAL_VAR(set_primary_group_script),
2703                 .special        = NULL,
2704                 .enum_list      = NULL,
2705                 .flags          = FLAG_ADVANCED,
2706         },
2707         {
2708                 .label          = "add machine script",
2709                 .type           = P_STRING,
2710                 .p_class        = P_GLOBAL,
2711                 .offset         = GLOBAL_VAR(add_machine_script),
2712                 .special        = NULL,
2713                 .enum_list      = NULL,
2714                 .flags          = FLAG_ADVANCED,
2715         },
2716         {
2717                 .label          = "shutdown script",
2718                 .type           = P_STRING,
2719                 .p_class        = P_GLOBAL,
2720                 .offset         = GLOBAL_VAR(shutdown_script),
2721                 .special        = NULL,
2722                 .enum_list      = NULL,
2723                 .flags          = FLAG_ADVANCED,
2724         },
2725         {
2726                 .label          = "abort shutdown script",
2727                 .type           = P_STRING,
2728                 .p_class        = P_GLOBAL,
2729                 .offset         = GLOBAL_VAR(abort_shutdown_script),
2730                 .special        = NULL,
2731                 .enum_list      = NULL,
2732                 .flags          = FLAG_ADVANCED,
2733         },
2734         {
2735                 .label          = "username map script",
2736                 .type           = P_STRING,
2737                 .p_class        = P_GLOBAL,
2738                 .offset         = GLOBAL_VAR(username_map_script),
2739                 .special        = NULL,
2740                 .enum_list      = NULL,
2741                 .flags          = FLAG_ADVANCED,
2742         },
2743         {
2744                 .label          = "username map cache time",
2745                 .type           = P_INTEGER,
2746                 .p_class        = P_GLOBAL,
2747                 .offset         = GLOBAL_VAR(username_map_cache_time),
2748                 .special        = NULL,
2749                 .enum_list      = NULL,
2750                 .flags          = FLAG_ADVANCED,
2751         },
2752         {
2753                 .label          = "logon script",
2754                 .type           = P_STRING,
2755                 .p_class        = P_GLOBAL,
2756                 .offset         = GLOBAL_VAR(logon_script),
2757                 .special        = NULL,
2758                 .enum_list      = NULL,
2759                 .flags          = FLAG_ADVANCED,
2760         },
2761         {
2762                 .label          = "logon path",
2763                 .type           = P_STRING,
2764                 .p_class        = P_GLOBAL,
2765                 .offset         = GLOBAL_VAR(logon_path),
2766                 .special        = NULL,
2767                 .enum_list      = NULL,
2768                 .flags          = FLAG_ADVANCED,
2769         },
2770         {
2771                 .label          = "logon drive",
2772                 .type           = P_STRING,
2773                 .p_class        = P_GLOBAL,
2774                 .offset         = GLOBAL_VAR(logon_drive),
2775                 .special        = NULL,
2776                 .enum_list      = NULL,
2777                 .flags          = FLAG_ADVANCED,
2778         },
2779         {
2780                 .label          = "logon home",
2781                 .type           = P_STRING,
2782                 .p_class        = P_GLOBAL,
2783                 .offset         = GLOBAL_VAR(logon_home),
2784                 .special        = NULL,
2785                 .enum_list      = NULL,
2786                 .flags          = FLAG_ADVANCED,
2787         },
2788         {
2789                 .label          = "domain logons",
2790                 .type           = P_BOOL,
2791                 .p_class        = P_GLOBAL,
2792                 .offset         = GLOBAL_VAR(_domain_logons),
2793                 .special        = NULL,
2794                 .enum_list      = NULL,
2795                 .flags          = FLAG_ADVANCED,
2796         },
2797
2798         {
2799                 .label          = "init logon delayed hosts",
2800                 .type           = P_CMDLIST,
2801                 .p_class        = P_GLOBAL,
2802                 .offset         = GLOBAL_VAR(init_logon_delayed_hosts),
2803                 .special        = NULL,
2804                 .enum_list      = NULL,
2805                 .flags          = FLAG_ADVANCED,
2806         },
2807
2808         {
2809                 .label          = "init logon delay",
2810                 .type           = P_INTEGER,
2811                 .p_class        = P_GLOBAL,
2812                 .offset         = GLOBAL_VAR(init_logon_delay),
2813                 .special        = NULL,
2814                 .enum_list      = NULL,
2815                 .flags          = FLAG_ADVANCED,
2816
2817         },
2818
2819         {N_("Browse Options"), P_SEP, P_SEPARATOR},
2820
2821         {
2822                 .label          = "os level",
2823                 .type           = P_INTEGER,
2824                 .p_class        = P_GLOBAL,
2825                 .offset         = GLOBAL_VAR(os_level),
2826                 .special        = NULL,
2827                 .enum_list      = NULL,
2828                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2829         },
2830         {
2831                 .label          = "lm announce",
2832                 .type           = P_ENUM,
2833                 .p_class        = P_GLOBAL,
2834                 .offset         = GLOBAL_VAR(lm_announce),
2835                 .special        = NULL,
2836                 .enum_list      = enum_bool_auto,
2837                 .flags          = FLAG_ADVANCED,
2838         },
2839         {
2840                 .label          = "lm interval",
2841                 .type           = P_INTEGER,
2842                 .p_class        = P_GLOBAL,
2843                 .offset         = GLOBAL_VAR(lm_interval),
2844                 .special        = NULL,
2845                 .enum_list      = NULL,
2846                 .flags          = FLAG_ADVANCED,
2847         },
2848         {
2849                 .label          = "preferred master",
2850                 .type           = P_ENUM,
2851                 .p_class        = P_GLOBAL,
2852                 .offset         = GLOBAL_VAR(iPreferredMaster),
2853                 .special        = NULL,
2854                 .enum_list      = enum_bool_auto,
2855                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2856         },
2857         {
2858                 .label          = "prefered master",
2859                 .type           = P_ENUM,
2860                 .p_class        = P_GLOBAL,
2861                 .offset         = GLOBAL_VAR(iPreferredMaster),
2862                 .special        = NULL,
2863                 .enum_list      = enum_bool_auto,
2864                 .flags          = FLAG_HIDE,
2865         },
2866         {
2867                 .label          = "local master",
2868                 .type           = P_BOOL,
2869                 .p_class        = P_GLOBAL,
2870                 .offset         = GLOBAL_VAR(local_master),
2871                 .special        = NULL,
2872                 .enum_list      = NULL,
2873                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2874         },
2875         {
2876                 .label          = "domain master",
2877                 .type           = P_ENUM,
2878                 .p_class        = P_GLOBAL,
2879                 .offset         = GLOBAL_VAR(_domain_master),
2880                 .special        = NULL,
2881                 .enum_list      = enum_bool_auto,
2882                 .flags          = FLAG_BASIC | FLAG_ADVANCED,
2883         },
2884         {
2885                 .label          = "browse list",
2886                 .type           = P_BOOL,
2887                 .p_class        = P_GLOBAL,
2888                 .offset         = GLOBAL_VAR(browse_list),
2889                 .special        = NULL,
2890                 .enum_list      = NULL,
2891                 .flags          = FLAG_ADVANCED,
2892         },
2893         {
2894                 .label          = "browseable",
2895                 .type           = P_BOOL,
2896                 .p_class        = P_LOCAL,
2897                 .offset         = LOCAL_VAR(browseable),
2898                 .special        = NULL,
2899                 .enum_list      = NULL,
2900                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
2901         },
2902         {
2903                 .label          = "browsable",
2904                 .type           = P_BOOL,
2905                 .p_class        = P_LOCAL,
2906                 .offset         = LOCAL_VAR(browseable),
2907                 .special        = NULL,
2908                 .enum_list      = NULL,
2909                 .flags          = FLAG_HIDE,
2910         },
2911         {
2912                 .label          = "access based share enum",
2913                 .type           = P_BOOL,
2914                 .p_class        = P_LOCAL,
2915                 .offset         = LOCAL_VAR(access_based_share_enum),
2916                 .special        = NULL,
2917                 .enum_list      = NULL,
2918                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE
2919         },
2920         {
2921                 .label          = "enhanced browsing",
2922                 .type           = P_BOOL,
2923                 .p_class        = P_GLOBAL,
2924                 .offset         = GLOBAL_VAR(enhanced_browsing),
2925                 .special        = NULL,
2926                 .enum_list      = NULL,
2927                 .flags          = FLAG_ADVANCED,
2928         },
2929
2930         {N_("WINS Options"), P_SEP, P_SEPARATOR},
2931
2932         {
2933                 .label          = "dns proxy",
2934                 .type           = P_BOOL,
2935                 .p_class        = P_GLOBAL,
2936                 .offset         = GLOBAL_VAR(wins_dns_proxy),
2937                 .special        = NULL,
2938                 .enum_list      = NULL,
2939                 .flags          = FLAG_ADVANCED,
2940         },
2941         {
2942                 .label          = "wins proxy",
2943                 .type           = P_BOOL,
2944                 .p_class        = P_GLOBAL,
2945                 .offset         = GLOBAL_VAR(wins_proxy),
2946                 .special        = NULL,
2947                 .enum_list      = NULL,
2948                 .flags          = FLAG_ADVANCED,
2949         },
2950         {
2951                 .label          = "wins server",
2952                 .type           = P_CMDLIST,
2953                 .p_class        = P_GLOBAL,
2954                 .offset         = GLOBAL_VAR(wins_server_list),
2955                 .special        = NULL,
2956                 .enum_list      = NULL,
2957                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2958         },
2959         {
2960                 .label          = "wins support",
2961                 .type           = P_BOOL,
2962                 .p_class        = P_GLOBAL,
2963                 .offset         = GLOBAL_VAR(we_are_a_wins_server),
2964                 .special        = NULL,
2965                 .enum_list      = NULL,
2966                 .flags          = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2967         },
2968         {
2969                 .label          = "wins hook",
2970                 .type           = P_STRING,
2971                 .p_class        = P_GLOBAL,
2972                 .offset         = GLOBAL_VAR(wins_hook),
2973                 .special        = NULL,
2974                 .enum_list      = NULL,
2975                 .flags          = FLAG_ADVANCED,
2976         },
2977
2978         {N_("Locking Options"), P_SEP, P_SEPARATOR},
2979
2980         {
2981                 .label          = "blocking locks",
2982                 .type           = P_BOOL,
2983                 .p_class        = P_LOCAL,
2984                 .offset         = LOCAL_VAR(blocking_locks),
2985                 .special        = NULL,
2986                 .enum_list      = NULL,
2987                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2988         },
2989         {
2990                 .label          = "csc policy",
2991                 .type           = P_ENUM,
2992                 .p_class        = P_LOCAL,
2993                 .offset         = LOCAL_VAR(csc_policy),
2994                 .special        = NULL,
2995                 .enum_list      = enum_csc_policy,
2996                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2997         },
2998         {
2999                 .label          = "fake oplocks",
3000                 .type           = P_BOOL,
3001                 .p_class        = P_LOCAL,
3002                 .offset         = LOCAL_VAR(fake_oplocks),
3003                 .special        = NULL,
3004                 .enum_list      = NULL,
3005                 .flags          = FLAG_ADVANCED | FLAG_SHARE,
3006         },
3007         {
3008                 .label          = "kernel oplocks",
3009                 .type           = P_BOOL,
3010                 .p_class        = P_LOCAL,
3011                 .offset         = LOCAL_VAR(kernel_oplocks),
3012                 .special        = NULL,
3013                 .enum_list      = NULL,
3014                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3015         },
3016         {
3017                 .label          = "kernel share modes",
3018                 .type           = P_BOOL,
3019                 .p_class        = P_LOCAL,
3020                 .offset         = LOCAL_VAR(kernel_share_modes),
3021                 .special        = NULL,
3022                 .enum_list      = NULL,
3023                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3024         },
3025         {
3026                 .label          = "smb2 leases",
3027                 .type           = P_BOOL,
3028                 .p_class        = P_GLOBAL,
3029                 .offset         = GLOBAL_VAR(smb2_leases),
3030                 .special        = NULL,
3031                 .enum_list      = NULL,
3032                 .flags          = FLAG_ADVANCED,
3033         },
3034         {
3035                 .label          = "locking",
3036                 .type           = P_BOOL,
3037                 .p_class        = P_LOCAL,
3038                 .offset         = LOCAL_VAR(locking),
3039                 .special        = NULL,
3040                 .enum_list      = NULL,
3041                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3042         },
3043         {
3044                 .label          = "lock spin time",
3045                 .type           = P_INTEGER,
3046                 .p_class        = P_GLOBAL,
3047                 .offset         = GLOBAL_VAR(lock_spin_time),
3048                 .special        = NULL,
3049                 .enum_list      = NULL,
3050                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3051         },
3052         {
3053                 .label          = "oplocks",
3054                 .type           = P_BOOL,
3055                 .p_class        = P_LOCAL,
3056                 .offset         = LOCAL_VAR(oplocks),
3057                 .special        = NULL,
3058                 .enum_list      = NULL,
3059                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3060         },
3061         {
3062                 .label          = "level2 oplocks",
3063                 .type           = P_BOOL,
3064                 .p_class        = P_LOCAL,
3065                 .offset         = LOCAL_VAR(level2_oplocks),
3066                 .special        = NULL,
3067                 .enum_list      = NULL,
3068                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3069         },
3070         {
3071                 .label          = "oplock break wait time",
3072                 .type           = P_INTEGER,
3073                 .p_class        = P_GLOBAL,
3074                 .offset         = GLOBAL_VAR(oplock_break_wait_time),
3075                 .special        = NULL,
3076                 .enum_list      = NULL,
3077                 .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
3078         },
3079         {
3080                 .label          = "oplock contention limit",
3081                 .type           = P_INTEGER,
3082                 .p_class        = P_LOCAL,
3083                 .offset         = LOCAL_VAR(oplock_contention_limit),
3084                 .special        = NULL,
3085                 .enum_list      = NULL,
3086                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3087         },
3088         {
3089                 .label          = "posix locking",
3090                 .type           = P_BOOL,
3091                 .p_class        = P_LOCAL,
3092                 .offset         = LOCAL_VAR(posix_locking),
3093                 .special        = NULL,
3094                 .enum_list      = NULL,
3095                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3096         },
3097         {
3098                 .label          = "strict locking",
3099                 .type           = P_ENUM,
3100                 .p_class        = P_LOCAL,
3101                 .offset         = LOCAL_VAR(strict_locking),
3102                 .special        = NULL,
3103                 .enum_list      = enum_bool_auto,
3104                 .flags          = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3105         },
3106
3107         {N_("Ldap Options"), P_SEP, P_SEPARATOR},
3108
3109         {
3110                 .label          = "ldap admin dn",
3111                 .type           = P_STRING,
3112                 .p_class        = P_GLOBAL,
3113                 .offset         = GLOBAL_VAR(ldap_admin_dn),
3114                 .special        = NULL,
3115                 .enum_list      = NULL,
3116                 .flags          = FLAG_ADVANCED,
3117         },
3118         {
3119                 .label          = "ldap delete dn",
3120                 .type           = P_BOOL,
3121                 .p_class        = P_GLOBAL,
3122                 .offset         = GLOBAL_VAR(ldap_delete_dn),
3123                 .special        = NULL,
3124                 .enum_list      = NULL,
3125                 .flags          = FLAG_ADVANCED,
3126         },
3127         {
3128                 .label          = "ldap group suffix",
3129                 .type           = P_STRING,
3130                 .p_class        = P_GLOBAL,
3131                 .offset         = GLOBAL_VAR(szLdapGroupSuffix),
3132                 .special        = NULL,
3133                 .enum_list      = NULL,
3134                 .flags          = FLAG_ADVANCED,
3135         },
3136         {
3137                 .label          = "ldap idmap suffix",
3138                 .type           = P_STRING,
3139                 .p_class        = P_GLOBAL,
3140                 .offset         = GLOBAL_VAR(szLdapIdmapSuffix),
3141                 .special        = NULL,
3142                 .enum_list  &n