lib/param: add some more alias for 'allow dns updates' options.
[Samba/gebeck_regimport.git] / lib / param / param_table.c
blobcb9596c5f7dc253b8627dac913305cf2ed2b58a0
1 /*
2 Unix SMB/CIFS implementation.
3 Parameter loading functions
4 Copyright (C) Karl Auer 1993-1998
6 Largely re-written by Andrew Tridgell, September 1994
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
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.
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.
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/>.
30 static const struct enum_list enum_protocol[] = {
31 {PROTOCOL_SMB2_10, "SMB2"}, /* for now keep PROTOCOL_SMB2_10 */
32 {PROTOCOL_SMB3_00, "SMB3"}, /* for now keep PROTOCOL_SMB3_00 */
33 {PROTOCOL_SMB3_00, "SMB3_00"},
34 {PROTOCOL_SMB2_24, "SMB2_24"},
35 {PROTOCOL_SMB2_22, "SMB2_22"},
36 {PROTOCOL_SMB2_10, "SMB2_10"},
37 {PROTOCOL_SMB2_02, "SMB2_02"},
38 {PROTOCOL_NT1, "NT1"},
39 {PROTOCOL_LANMAN2, "LANMAN2"},
40 {PROTOCOL_LANMAN1, "LANMAN1"},
41 {PROTOCOL_CORE, "CORE"},
42 {PROTOCOL_COREPLUS, "COREPLUS"},
43 {PROTOCOL_COREPLUS, "CORE+"},
44 {-1, NULL}
47 static const struct enum_list enum_security[] = {
48 {SEC_AUTO, "AUTO"},
49 {SEC_USER, "USER"},
50 {SEC_DOMAIN, "DOMAIN"},
51 #if (defined(HAVE_ADS) || _SAMBA_BUILD_ >= 4)
52 {SEC_ADS, "ADS"},
53 #endif
54 {-1, NULL}
57 static const struct enum_list enum_bool_auto[] = {
58 {false, "No"},
59 {false, "False"},
60 {false, "0"},
61 {true, "Yes"},
62 {true, "True"},
63 {true, "1"},
64 {Auto, "Auto"},
65 {-1, NULL}
68 static const struct enum_list enum_csc_policy[] = {
69 {CSC_POLICY_MANUAL, "manual"},
70 {CSC_POLICY_DOCUMENTS, "documents"},
71 {CSC_POLICY_PROGRAMS, "programs"},
72 {CSC_POLICY_DISABLE, "disable"},
73 {-1, NULL}
76 /* Server role options */
77 static const struct enum_list enum_server_role[] = {
78 {ROLE_AUTO, "auto"},
79 {ROLE_STANDALONE, "standalone server"},
80 {ROLE_STANDALONE, "standalone"},
81 {ROLE_DOMAIN_MEMBER, "member server"},
82 {ROLE_DOMAIN_MEMBER, "member"},
83 {ROLE_DOMAIN_PDC, "classic primary domain controller"},
84 {ROLE_DOMAIN_BDC, "classic backup domain controller"},
85 {ROLE_ACTIVE_DIRECTORY_DC, "active directory domain controller"},
86 {ROLE_ACTIVE_DIRECTORY_DC, "domain controller"},
87 {ROLE_ACTIVE_DIRECTORY_DC, "dc"},
88 {-1, NULL}
91 /* SMB signing types. */
92 static const struct enum_list enum_smb_signing_vals[] = {
93 {SMB_SIGNING_DEFAULT, "default"},
94 {SMB_SIGNING_OFF, "No"},
95 {SMB_SIGNING_OFF, "False"},
96 {SMB_SIGNING_OFF, "0"},
97 {SMB_SIGNING_OFF, "Off"},
98 {SMB_SIGNING_OFF, "disabled"},
99 {SMB_SIGNING_IF_REQUIRED, "if_required"},
100 {SMB_SIGNING_IF_REQUIRED, "Yes"},
101 {SMB_SIGNING_IF_REQUIRED, "True"},
102 {SMB_SIGNING_IF_REQUIRED, "1"},
103 {SMB_SIGNING_IF_REQUIRED, "On"},
104 {SMB_SIGNING_IF_REQUIRED, "enabled"},
105 {SMB_SIGNING_IF_REQUIRED, "auto"},
106 {SMB_SIGNING_REQUIRED, "required"},
107 {SMB_SIGNING_REQUIRED, "mandatory"},
108 {SMB_SIGNING_REQUIRED, "force"},
109 {SMB_SIGNING_REQUIRED, "forced"},
110 {SMB_SIGNING_REQUIRED, "enforced"},
111 {-1, NULL}
114 /* DNS update options. */
115 static const struct enum_list enum_dns_update_settings[] = {
116 {DNS_UPDATE_OFF, "disabled"},
117 {DNS_UPDATE_OFF, "No"},
118 {DNS_UPDATE_OFF, "False"},
119 {DNS_UPDATE_OFF, "0"},
120 {DNS_UPDATE_OFF, "Off"},
121 {DNS_UPDATE_ON, "nonsecure and secure"},
122 {DNS_UPDATE_ON, "nonsecure"},
123 {DNS_UPDATE_ON, "Yes"},
124 {DNS_UPDATE_ON, "True"},
125 {DNS_UPDATE_ON, "1"},
126 {DNS_UPDATE_ON, "On"},
127 {DNS_UPDATE_ON, "enabled"},
128 {DNS_UPDATE_SIGNED, "secure only"},
129 {DNS_UPDATE_SIGNED, "secure"},
130 {DNS_UPDATE_SIGNED, "signed"},
131 {-1, NULL}
135 Do you want session setups at user level security with a invalid
136 password to be rejected or allowed in as guest? WinNT rejects them
137 but it can be a pain as it means "net view" needs to use a password
139 You have 3 choices in the setting of map_to_guest:
141 "Never" means session setups with an invalid password
142 are rejected. This is the default.
144 "Bad User" means session setups with an invalid password
145 are rejected, unless the username does not exist, in which case it
146 is treated as a guest login
148 "Bad Password" means session setups with an invalid password
149 are treated as a guest login
151 Note that map_to_guest only has an effect in user or server
152 level security.
155 static const struct enum_list enum_map_to_guest[] = {
156 {NEVER_MAP_TO_GUEST, "Never"},
157 {MAP_TO_GUEST_ON_BAD_USER, "Bad User"},
158 {MAP_TO_GUEST_ON_BAD_PASSWORD, "Bad Password"},
159 {MAP_TO_GUEST_ON_BAD_UID, "Bad Uid"},
160 {-1, NULL}
163 /* Config backend options */
165 static const struct enum_list enum_config_backend[] = {
166 {CONFIG_BACKEND_FILE, "file"},
167 {CONFIG_BACKEND_REGISTRY, "registry"},
168 {-1, NULL}
172 /* ADS kerberos ticket verification options */
174 static const struct enum_list enum_kerberos_method[] = {
175 {KERBEROS_VERIFY_SECRETS, "default"},
176 {KERBEROS_VERIFY_SECRETS, "secrets only"},
177 {KERBEROS_VERIFY_SYSTEM_KEYTAB, "system keytab"},
178 {KERBEROS_VERIFY_DEDICATED_KEYTAB, "dedicated keytab"},
179 {KERBEROS_VERIFY_SECRETS_AND_KEYTAB, "secrets and keytab"},
180 {-1, NULL}
184 /* ACL compatibility options. */
185 static const struct enum_list enum_acl_compat_vals[] = {
186 { ACL_COMPAT_AUTO, "auto" },
187 { ACL_COMPAT_WINNT, "winnt" },
188 { ACL_COMPAT_WIN2K, "win2k" },
189 { -1, NULL}
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}
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}
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}
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
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"}
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}
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}
266 static const struct enum_list enum_case[] = {
267 {CASE_LOWER, "lower"},
268 {CASE_UPPER, "upper"},
269 {-1, NULL}
273 /* Note: We do not initialise the defaults union - it is not allowed in ANSI C
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.
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.
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.
291 #define GLOBAL_VAR(name) offsetof(struct loadparm_global, name)
292 #define LOCAL_VAR(name) offsetof(struct loadparm_service, name)
295 static struct parm_struct parm_table[] = {
296 {N_("Base Options"), P_SEP, P_SEPARATOR},
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
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
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
326 .label = "path",
327 .type = P_STRING,
328 .p_class = P_LOCAL,
329 .offset = LOCAL_VAR(szPath),
330 .special = NULL,
331 .enum_list = NULL,
332 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
335 .label = "directory",
336 .type = P_STRING,
337 .p_class = P_LOCAL,
338 .offset = LOCAL_VAR(szPath),
339 .special = NULL,
340 .enum_list = NULL,
341 .flags = FLAG_HIDE,
344 .label = "workgroup",
345 .type = P_USTRING,
346 .p_class = P_GLOBAL,
347 .offset = GLOBAL_VAR(szWorkgroup),
348 .special = NULL,
349 .enum_list = NULL,
350 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
353 .label = "realm",
354 .type = P_STRING,
355 .p_class = P_GLOBAL,
356 .offset = GLOBAL_VAR(szRealm),
357 .special = handle_realm,
358 .enum_list = NULL,
359 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
362 .label = "netbios name",
363 .type = P_USTRING,
364 .p_class = P_GLOBAL,
365 .offset = GLOBAL_VAR(szNetbiosName),
366 .special = NULL,
367 .enum_list = NULL,
368 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
371 .label = "netbios aliases",
372 .type = P_LIST,
373 .p_class = P_GLOBAL,
374 .offset = GLOBAL_VAR(szNetbiosAliases),
375 .special = handle_netbios_aliases,
376 .enum_list = NULL,
377 .flags = FLAG_ADVANCED,
380 .label = "netbios scope",
381 .type = P_USTRING,
382 .p_class = P_GLOBAL,
383 .offset = GLOBAL_VAR(szNetbiosScope),
384 .special = NULL,
385 .enum_list = NULL,
386 .flags = FLAG_ADVANCED,
389 .label = "server string",
390 .type = P_STRING,
391 .p_class = P_GLOBAL,
392 .offset = GLOBAL_VAR(szServerString),
393 .special = NULL,
394 .enum_list = NULL,
395 .flags = FLAG_BASIC | FLAG_ADVANCED,
398 .label = "interfaces",
399 .type = P_LIST,
400 .p_class = P_GLOBAL,
401 .offset = GLOBAL_VAR(szInterfaces),
402 .special = NULL,
403 .enum_list = NULL,
404 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
407 .label = "bind interfaces only",
408 .type = P_BOOL,
409 .p_class = P_GLOBAL,
410 .offset = GLOBAL_VAR(bBindInterfacesOnly),
411 .special = NULL,
412 .enum_list = NULL,
413 .flags = FLAG_ADVANCED | FLAG_WIZARD,
416 .label = "config backend",
417 .type = P_ENUM,
418 .p_class = P_GLOBAL,
419 .offset = GLOBAL_VAR(ConfigBackend),
420 .special = NULL,
421 .enum_list = enum_config_backend,
422 .flags = FLAG_HIDE|FLAG_ADVANCED|FLAG_META,
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,
434 {N_("Security Options"), P_SEP, P_SEPARATOR},
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,
446 .label = "auth methods",
447 .type = P_LIST,
448 .p_class = P_GLOBAL,
449 .offset = GLOBAL_VAR(AuthMethods),
450 .special = NULL,
451 .enum_list = NULL,
452 .flags = FLAG_ADVANCED,
455 .label = "encrypt passwords",
456 .type = P_BOOL,
457 .p_class = P_GLOBAL,
458 .offset = GLOBAL_VAR(bEncryptPasswords),
459 .special = NULL,
460 .enum_list = NULL,
461 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
464 .label = "client schannel",
465 .type = P_ENUM,
466 .p_class = P_GLOBAL,
467 .offset = GLOBAL_VAR(clientSchannel),
468 .special = NULL,
469 .enum_list = enum_bool_auto,
470 .flags = FLAG_BASIC | FLAG_ADVANCED,
473 .label = "server schannel",
474 .type = P_ENUM,
475 .p_class = P_GLOBAL,
476 .offset = GLOBAL_VAR(serverSchannel),
477 .special = NULL,
478 .enum_list = enum_bool_auto,
479 .flags = FLAG_BASIC | FLAG_ADVANCED,
482 .label = "allow trusted domains",
483 .type = P_BOOL,
484 .p_class = P_GLOBAL,
485 .offset = GLOBAL_VAR(bAllowTrustedDomains),
486 .special = NULL,
487 .enum_list = NULL,
488 .flags = FLAG_ADVANCED,
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,
500 .label = "null passwords",
501 .type = P_BOOL,
502 .p_class = P_GLOBAL,
503 .offset = GLOBAL_VAR(bNullPasswords),
504 .special = NULL,
505 .enum_list = NULL,
506 .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
509 .label = "obey pam restrictions",
510 .type = P_BOOL,
511 .p_class = P_GLOBAL,
512 .offset = GLOBAL_VAR(bObeyPamRestrictions),
513 .special = NULL,
514 .enum_list = NULL,
515 .flags = FLAG_ADVANCED,
518 .label = "password server",
519 .type = P_STRING,
520 .p_class = P_GLOBAL,
521 .offset = GLOBAL_VAR(szPasswordServer),
522 .special = NULL,
523 .enum_list = NULL,
524 .flags = FLAG_ADVANCED | FLAG_WIZARD,
527 .label = "smb passwd file",
528 .type = P_STRING,
529 .p_class = P_GLOBAL,
530 .offset = GLOBAL_VAR(szSMBPasswdFile),
531 .special = NULL,
532 .enum_list = NULL,
533 .flags = FLAG_ADVANCED,
536 .label = "private dir",
537 .type = P_STRING,
538 .p_class = P_GLOBAL,
539 .offset = GLOBAL_VAR(szPrivateDir),
540 .special = NULL,
541 .enum_list = NULL,
542 .flags = FLAG_ADVANCED,
545 .label = "private directory",
546 .type = P_STRING,
547 .p_class = P_GLOBAL,
548 .offset = GLOBAL_VAR(szPrivateDir),
549 .special = NULL,
550 .enum_list = NULL,
551 .flags = FLAG_HIDE,
554 .label = "passdb backend",
555 .type = P_STRING,
556 .p_class = P_GLOBAL,
557 .offset = GLOBAL_VAR(passdb_backend),
558 .special = NULL,
559 .enum_list = NULL,
560 .flags = FLAG_ADVANCED | FLAG_WIZARD,
563 .label = "algorithmic rid base",
564 .type = P_INTEGER,
565 .p_class = P_GLOBAL,
566 .offset = GLOBAL_VAR(AlgorithmicRidBase),
567 .special = NULL,
568 .enum_list = NULL,
569 .flags = FLAG_ADVANCED,
572 .label = "root directory",
573 .type = P_STRING,
574 .p_class = P_GLOBAL,
575 .offset = GLOBAL_VAR(szRootdir),
576 .special = NULL,
577 .enum_list = NULL,
578 .flags = FLAG_ADVANCED,
581 .label = "root dir",
582 .type = P_STRING,
583 .p_class = P_GLOBAL,
584 .offset = GLOBAL_VAR(szRootdir),
585 .special = NULL,
586 .enum_list = NULL,
587 .flags = FLAG_HIDE,
590 .label = "root",
591 .type = P_STRING,
592 .p_class = P_GLOBAL,
593 .offset = GLOBAL_VAR(szRootdir),
594 .special = NULL,
595 .enum_list = NULL,
596 .flags = FLAG_HIDE,
599 .label = "guest account",
600 .type = P_STRING,
601 .p_class = P_GLOBAL,
602 .offset = GLOBAL_VAR(szGuestaccount),
603 .special = NULL,
604 .enum_list = NULL,
605 .flags = FLAG_BASIC | FLAG_ADVANCED,
608 .label = "enable privileges",
609 .type = P_BOOL,
610 .p_class = P_GLOBAL,
611 .offset = GLOBAL_VAR(bEnablePrivileges),
612 .special = NULL,
613 .enum_list = NULL,
614 .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
618 .label = "pam password change",
619 .type = P_BOOL,
620 .p_class = P_GLOBAL,
621 .offset = GLOBAL_VAR(bPamPasswordChange),
622 .special = NULL,
623 .enum_list = NULL,
624 .flags = FLAG_ADVANCED,
627 .label = "passwd program",
628 .type = P_STRING,
629 .p_class = P_GLOBAL,
630 .offset = GLOBAL_VAR(szPasswdProgram),
631 .special = NULL,
632 .enum_list = NULL,
633 .flags = FLAG_ADVANCED,
636 .label = "passwd chat",
637 .type = P_STRING,
638 .p_class = P_GLOBAL,
639 .offset = GLOBAL_VAR(szPasswdChat),
640 .special = NULL,
641 .enum_list = NULL,
642 .flags = FLAG_ADVANCED,
645 .label = "passwd chat debug",
646 .type = P_BOOL,
647 .p_class = P_GLOBAL,
648 .offset = GLOBAL_VAR(bPasswdChatDebug),
649 .special = NULL,
650 .enum_list = NULL,
651 .flags = FLAG_ADVANCED,
654 .label = "passwd chat timeout",
655 .type = P_INTEGER,
656 .p_class = P_GLOBAL,
657 .offset = GLOBAL_VAR(iPasswdChatTimeout),
658 .special = NULL,
659 .enum_list = NULL,
660 .flags = FLAG_ADVANCED,
663 .label = "check password script",
664 .type = P_STRING,
665 .p_class = P_GLOBAL,
666 .offset = GLOBAL_VAR(szCheckPasswordScript),
667 .special = NULL,
668 .enum_list = NULL,
669 .flags = FLAG_ADVANCED,
672 .label = "username map",
673 .type = P_STRING,
674 .p_class = P_GLOBAL,
675 .offset = GLOBAL_VAR(szUsernameMap),
676 .special = NULL,
677 .enum_list = NULL,
678 .flags = FLAG_ADVANCED,
681 .label = "password level",
682 .type = P_INTEGER,
683 .p_class = P_GLOBAL,
684 .offset = GLOBAL_VAR(pwordlevel),
685 .special = NULL,
686 .enum_list = NULL,
687 .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
690 .label = "username level",
691 .type = P_INTEGER,
692 .p_class = P_GLOBAL,
693 .offset = GLOBAL_VAR(unamelevel),
694 .special = NULL,
695 .enum_list = NULL,
696 .flags = FLAG_ADVANCED,
699 .label = "unix password sync",
700 .type = P_BOOL,
701 .p_class = P_GLOBAL,
702 .offset = GLOBAL_VAR(bUnixPasswdSync),
703 .special = NULL,
704 .enum_list = NULL,
705 .flags = FLAG_ADVANCED,
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,
717 .label = "lanman auth",
718 .type = P_BOOL,
719 .p_class = P_GLOBAL,
720 .offset = GLOBAL_VAR(bLanmanAuth),
721 .special = NULL,
722 .enum_list = NULL,
723 .flags = FLAG_ADVANCED,
726 .label = "ntlm auth",
727 .type = P_BOOL,
728 .p_class = P_GLOBAL,
729 .offset = GLOBAL_VAR(bNTLMAuth),
730 .special = NULL,
731 .enum_list = NULL,
732 .flags = FLAG_ADVANCED,
735 .label = "client NTLMv2 auth",
736 .type = P_BOOL,
737 .p_class = P_GLOBAL,
738 .offset = GLOBAL_VAR(bClientNTLMv2Auth),
739 .special = NULL,
740 .enum_list = NULL,
741 .flags = FLAG_ADVANCED,
744 .label = "client lanman auth",
745 .type = P_BOOL,
746 .p_class = P_GLOBAL,
747 .offset = GLOBAL_VAR(bClientLanManAuth),
748 .special = NULL,
749 .enum_list = NULL,
750 .flags = FLAG_ADVANCED,
753 .label = "client plaintext auth",
754 .type = P_BOOL,
755 .p_class = P_GLOBAL,
756 .offset = GLOBAL_VAR(bClientPlaintextAuth),
757 .special = NULL,
758 .enum_list = NULL,
759 .flags = FLAG_ADVANCED,
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,
771 .label = "username",
772 .type = P_STRING,
773 .p_class = P_LOCAL,
774 .offset = LOCAL_VAR(szUsername),
775 .special = NULL,
776 .enum_list = NULL,
777 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE | FLAG_DEPRECATED,
780 .label = "user",
781 .type = P_STRING,
782 .p_class = P_LOCAL,
783 .offset = LOCAL_VAR(szUsername),
784 .special = NULL,
785 .enum_list = NULL,
786 .flags = FLAG_HIDE,
789 .label = "users",
790 .type = P_STRING,
791 .p_class = P_LOCAL,
792 .offset = LOCAL_VAR(szUsername),
793 .special = NULL,
794 .enum_list = NULL,
795 .flags = FLAG_HIDE,
798 .label = "invalid users",
799 .type = P_LIST,
800 .p_class = P_LOCAL,
801 .offset = LOCAL_VAR(szInvalidUsers),
802 .special = NULL,
803 .enum_list = NULL,
804 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
807 .label = "valid users",
808 .type = P_LIST,
809 .p_class = P_LOCAL,
810 .offset = LOCAL_VAR(szValidUsers),
811 .special = NULL,
812 .enum_list = NULL,
813 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
816 .label = "admin users",
817 .type = P_LIST,
818 .p_class = P_LOCAL,
819 .offset = LOCAL_VAR(szAdminUsers),
820 .special = NULL,
821 .enum_list = NULL,
822 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
825 .label = "read list",
826 .type = P_LIST,
827 .p_class = P_LOCAL,
828 .offset = LOCAL_VAR(readlist),
829 .special = NULL,
830 .enum_list = NULL,
831 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
834 .label = "write list",
835 .type = P_LIST,
836 .p_class = P_LOCAL,
837 .offset = LOCAL_VAR(writelist),
838 .special = NULL,
839 .enum_list = NULL,
840 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
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,
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,
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,
870 .label = "read only",
871 .type = P_BOOL,
872 .p_class = P_LOCAL,
873 .offset = LOCAL_VAR(bRead_only),
874 .special = NULL,
875 .enum_list = NULL,
876 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE,
879 .label = "write ok",
880 .type = P_BOOLREV,
881 .p_class = P_LOCAL,
882 .offset = LOCAL_VAR(bRead_only),
883 .special = NULL,
884 .enum_list = NULL,
885 .flags = FLAG_HIDE,
888 .label = "writeable",
889 .type = P_BOOLREV,
890 .p_class = P_LOCAL,
891 .offset = LOCAL_VAR(bRead_only),
892 .special = NULL,
893 .enum_list = NULL,
894 .flags = FLAG_HIDE,
897 .label = "writable",
898 .type = P_BOOLREV,
899 .p_class = P_LOCAL,
900 .offset = LOCAL_VAR(bRead_only),
901 .special = NULL,
902 .enum_list = NULL,
903 .flags = FLAG_HIDE,
906 .label = "acl check permissions",
907 .type = P_BOOL,
908 .p_class = P_LOCAL,
909 .offset = LOCAL_VAR(bAclCheckPermissions),
910 .special = NULL,
911 .enum_list = NULL,
912 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE | FLAG_DEPRECATED,
915 .label = "acl group control",
916 .type = P_BOOL,
917 .p_class = P_LOCAL,
918 .offset = LOCAL_VAR(bAclGroupControl),
919 .special = NULL,
920 .enum_list = NULL,
921 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
924 .label = "acl map full control",
925 .type = P_BOOL,
926 .p_class = P_LOCAL,
927 .offset = LOCAL_VAR(bAclMapFullControl),
928 .special = NULL,
929 .enum_list = NULL,
930 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
933 .label = "create mask",
934 .type = P_OCTAL,
935 .p_class = P_LOCAL,
936 .offset = LOCAL_VAR(iCreate_mask),
937 .special = NULL,
938 .enum_list = NULL,
939 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
942 .label = "create mode",
943 .type = P_OCTAL,
944 .p_class = P_LOCAL,
945 .offset = LOCAL_VAR(iCreate_mask),
946 .special = NULL,
947 .enum_list = NULL,
948 .flags = FLAG_HIDE,
951 .label = "force create mode",
952 .type = P_OCTAL,
953 .p_class = P_LOCAL,
954 .offset = LOCAL_VAR(iCreate_force_mode),
955 .special = NULL,
956 .enum_list = NULL,
957 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
960 .label = "security mask",
961 .type = P_OCTAL,
962 .p_class = P_LOCAL,
963 .offset = LOCAL_VAR(iSecurity_mask),
964 .special = NULL,
965 .enum_list = NULL,
966 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
969 .label = "force security mode",
970 .type = P_OCTAL,
971 .p_class = P_LOCAL,
972 .offset = LOCAL_VAR(iSecurity_force_mode),
973 .special = NULL,
974 .enum_list = NULL,
975 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
978 .label = "directory mask",
979 .type = P_OCTAL,
980 .p_class = P_LOCAL,
981 .offset = LOCAL_VAR(iDir_mask),
982 .special = NULL,
983 .enum_list = NULL,
984 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
987 .label = "directory mode",
988 .type = P_OCTAL,
989 .p_class = P_LOCAL,
990 .offset = LOCAL_VAR(iDir_mask),
991 .special = NULL,
992 .enum_list = NULL,
993 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
996 .label = "force directory mode",
997 .type = P_OCTAL,
998 .p_class = P_LOCAL,
999 .offset = LOCAL_VAR(iDir_force_mode),
1000 .special = NULL,
1001 .enum_list = NULL,
1002 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1005 .label = "directory security mask",
1006 .type = P_OCTAL,
1007 .p_class = P_LOCAL,
1008 .offset = LOCAL_VAR(iDir_Security_mask),
1009 .special = NULL,
1010 .enum_list = NULL,
1011 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1014 .label = "force directory security mode",
1015 .type = P_OCTAL,
1016 .p_class = P_LOCAL,
1017 .offset = LOCAL_VAR(iDir_Security_force_mode),
1018 .special = NULL,
1019 .enum_list = NULL,
1020 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1023 .label = "force unknown acl user",
1024 .type = P_BOOL,
1025 .p_class = P_LOCAL,
1026 .offset = LOCAL_VAR(bForceUnknownAclUser),
1027 .special = NULL,
1028 .enum_list = NULL,
1029 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1032 .label = "inherit permissions",
1033 .type = P_BOOL,
1034 .p_class = P_LOCAL,
1035 .offset = LOCAL_VAR(bInheritPerms),
1036 .special = NULL,
1037 .enum_list = NULL,
1038 .flags = FLAG_ADVANCED | FLAG_SHARE,
1041 .label = "inherit acls",
1042 .type = P_BOOL,
1043 .p_class = P_LOCAL,
1044 .offset = LOCAL_VAR(bInheritACLS),
1045 .special = NULL,
1046 .enum_list = NULL,
1047 .flags = FLAG_ADVANCED | FLAG_SHARE,
1050 .label = "inherit owner",
1051 .type = P_BOOL,
1052 .p_class = P_LOCAL,
1053 .offset = LOCAL_VAR(bInheritOwner),
1054 .special = NULL,
1055 .enum_list = NULL,
1056 .flags = FLAG_ADVANCED | FLAG_SHARE,
1059 .label = "guest only",
1060 .type = P_BOOL,
1061 .p_class = P_LOCAL,
1062 .offset = LOCAL_VAR(bGuest_only),
1063 .special = NULL,
1064 .enum_list = NULL,
1065 .flags = FLAG_ADVANCED | FLAG_SHARE,
1068 .label = "only guest",
1069 .type = P_BOOL,
1070 .p_class = P_LOCAL,
1071 .offset = LOCAL_VAR(bGuest_only),
1072 .special = NULL,
1073 .enum_list = NULL,
1074 .flags = FLAG_HIDE,
1077 .label = "administrative share",
1078 .type = P_BOOL,
1079 .p_class = P_LOCAL,
1080 .offset = LOCAL_VAR(bAdministrative_share),
1081 .special = NULL,
1082 .enum_list = NULL,
1083 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1087 .label = "guest ok",
1088 .type = P_BOOL,
1089 .p_class = P_LOCAL,
1090 .offset = LOCAL_VAR(bGuest_ok),
1091 .special = NULL,
1092 .enum_list = NULL,
1093 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1096 .label = "public",
1097 .type = P_BOOL,
1098 .p_class = P_LOCAL,
1099 .offset = LOCAL_VAR(bGuest_ok),
1100 .special = NULL,
1101 .enum_list = NULL,
1102 .flags = FLAG_HIDE,
1105 .label = "only user",
1106 .type = P_BOOL,
1107 .p_class = P_LOCAL,
1108 .offset = LOCAL_VAR(bOnlyUser),
1109 .special = NULL,
1110 .enum_list = NULL,
1111 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_DEPRECATED,
1114 .label = "hosts allow",
1115 .type = P_LIST,
1116 .p_class = P_LOCAL,
1117 .offset = LOCAL_VAR(szHostsallow),
1118 .special = NULL,
1119 .enum_list = NULL,
1120 .flags = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1123 .label = "allow hosts",
1124 .type = P_LIST,
1125 .p_class = P_LOCAL,
1126 .offset = LOCAL_VAR(szHostsallow),
1127 .special = NULL,
1128 .enum_list = NULL,
1129 .flags = FLAG_HIDE,
1132 .label = "hosts deny",
1133 .type = P_LIST,
1134 .p_class = P_LOCAL,
1135 .offset = LOCAL_VAR(szHostsdeny),
1136 .special = NULL,
1137 .enum_list = NULL,
1138 .flags = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
1141 .label = "deny hosts",
1142 .type = P_LIST,
1143 .p_class = P_LOCAL,
1144 .offset = LOCAL_VAR(szHostsdeny),
1145 .special = NULL,
1146 .enum_list = NULL,
1147 .flags = FLAG_HIDE,
1150 .label = "preload modules",
1151 .type = P_LIST,
1152 .p_class = P_GLOBAL,
1153 .offset = GLOBAL_VAR(szPreloadModules),
1154 .special = NULL,
1155 .enum_list = NULL,
1156 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
1159 .label = "dedicated keytab file",
1160 .type = P_STRING,
1161 .p_class = P_GLOBAL,
1162 .offset = GLOBAL_VAR(szDedicatedKeytabFile),
1163 .special = NULL,
1164 .enum_list = NULL,
1165 .flags = FLAG_ADVANCED,
1168 .label = "kerberos method",
1169 .type = P_ENUM,
1170 .p_class = P_GLOBAL,
1171 .offset = GLOBAL_VAR(iKerberosMethod),
1172 .special = NULL,
1173 .enum_list = enum_kerberos_method,
1174 .flags = FLAG_ADVANCED,
1177 .label = "map untrusted to domain",
1178 .type = P_BOOL,
1179 .p_class = P_GLOBAL,
1180 .offset = GLOBAL_VAR(bMapUntrustedToDomain),
1181 .special = NULL,
1182 .enum_list = NULL,
1183 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
1187 {N_("Logging Options"), P_SEP, P_SEPARATOR},
1190 .label = "log level",
1191 .type = P_STRING,
1192 .p_class = P_GLOBAL,
1193 .offset = GLOBAL_VAR(loglevel),
1194 .special = handle_debug_list,
1195 .enum_list = NULL,
1196 .flags = FLAG_ADVANCED,
1199 .label = "debuglevel",
1200 .type = P_STRING,
1201 .p_class = P_GLOBAL,
1202 .offset = GLOBAL_VAR(loglevel),
1203 .special = handle_debug_list,
1204 .enum_list = NULL,
1205 .flags = FLAG_HIDE,
1208 .label = "syslog",
1209 .type = P_INTEGER,
1210 .p_class = P_GLOBAL,
1211 .offset = GLOBAL_VAR(syslog),
1212 .special = NULL,
1213 .enum_list = NULL,
1214 .flags = FLAG_ADVANCED,
1217 .label = "syslog only",
1218 .type = P_BOOL,
1219 .p_class = P_GLOBAL,
1220 .offset = GLOBAL_VAR(bSyslogOnly),
1221 .special = NULL,
1222 .enum_list = NULL,
1223 .flags = FLAG_ADVANCED,
1226 .label = "log file",
1227 .type = P_STRING,
1228 .p_class = P_GLOBAL,
1229 .offset = GLOBAL_VAR(logfile),
1230 .special = handle_logfile,
1231 .enum_list = NULL,
1232 .flags = FLAG_ADVANCED,
1235 .label = "max log size",
1236 .type = P_BYTES,
1237 .p_class = P_GLOBAL,
1238 .offset = GLOBAL_VAR(max_log_size),
1239 .special = NULL,
1240 .enum_list = NULL,
1241 .flags = FLAG_ADVANCED,
1244 .label = "debug timestamp",
1245 .type = P_BOOL,
1246 .p_class = P_GLOBAL,
1247 .offset = GLOBAL_VAR(bTimestampLogs),
1248 .special = NULL,
1249 .enum_list = NULL,
1250 .flags = FLAG_ADVANCED,
1253 .label = "timestamp logs",
1254 .type = P_BOOL,
1255 .p_class = P_GLOBAL,
1256 .offset = GLOBAL_VAR(bTimestampLogs),
1257 .special = NULL,
1258 .enum_list = NULL,
1259 .flags = FLAG_ADVANCED,
1262 .label = "debug prefix timestamp",
1263 .type = P_BOOL,
1264 .p_class = P_GLOBAL,
1265 .offset = GLOBAL_VAR(bDebugPrefixTimestamp),
1266 .special = NULL,
1267 .enum_list = NULL,
1268 .flags = FLAG_ADVANCED,
1271 .label = "debug hires timestamp",
1272 .type = P_BOOL,
1273 .p_class = P_GLOBAL,
1274 .offset = GLOBAL_VAR(bDebugHiresTimestamp),
1275 .special = NULL,
1276 .enum_list = NULL,
1277 .flags = FLAG_ADVANCED,
1280 .label = "debug pid",
1281 .type = P_BOOL,
1282 .p_class = P_GLOBAL,
1283 .offset = GLOBAL_VAR(bDebugPid),
1284 .special = NULL,
1285 .enum_list = NULL,
1286 .flags = FLAG_ADVANCED,
1289 .label = "debug uid",
1290 .type = P_BOOL,
1291 .p_class = P_GLOBAL,
1292 .offset = GLOBAL_VAR(bDebugUid),
1293 .special = NULL,
1294 .enum_list = NULL,
1295 .flags = FLAG_ADVANCED,
1298 .label = "debug class",
1299 .type = P_BOOL,
1300 .p_class = P_GLOBAL,
1301 .offset = GLOBAL_VAR(bDebugClass),
1302 .special = NULL,
1303 .enum_list = NULL,
1304 .flags = FLAG_ADVANCED,
1307 .label = "enable core files",
1308 .type = P_BOOL,
1309 .p_class = P_GLOBAL,
1310 .offset = GLOBAL_VAR(bEnableCoreFiles),
1311 .special = NULL,
1312 .enum_list = NULL,
1313 .flags = FLAG_ADVANCED,
1316 {N_("Protocol Options"), P_SEP, P_SEPARATOR},
1319 .label = "allocation roundup size",
1320 .type = P_BYTES,
1321 .p_class = P_LOCAL,
1322 .offset = LOCAL_VAR(iallocation_roundup_size),
1323 .special = NULL,
1324 .enum_list = NULL,
1325 .flags = FLAG_ADVANCED,
1328 .label = "aio read size",
1329 .type = P_BYTES,
1330 .p_class = P_LOCAL,
1331 .offset = LOCAL_VAR(iAioReadSize),
1332 .special = NULL,
1333 .enum_list = NULL,
1334 .flags = FLAG_ADVANCED,
1337 .label = "aio write size",
1338 .type = P_BYTES,
1339 .p_class = P_LOCAL,
1340 .offset = LOCAL_VAR(iAioWriteSize),
1341 .special = NULL,
1342 .enum_list = NULL,
1343 .flags = FLAG_ADVANCED,
1346 .label = "aio write behind",
1347 .type = P_STRING,
1348 .p_class = P_LOCAL,
1349 .offset = LOCAL_VAR(szAioWriteBehind),
1350 .special = NULL,
1351 .enum_list = NULL,
1352 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1355 .label = "smb ports",
1356 .type = P_LIST,
1357 .p_class = P_GLOBAL,
1358 .offset = GLOBAL_VAR(smb_ports),
1359 .special = NULL,
1360 .enum_list = NULL,
1361 .flags = FLAG_ADVANCED,
1364 .label = "large readwrite",
1365 .type = P_BOOL,
1366 .p_class = P_GLOBAL,
1367 .offset = GLOBAL_VAR(bLargeReadwrite),
1368 .special = NULL,
1369 .enum_list = NULL,
1370 .flags = FLAG_ADVANCED,
1373 .label = "server max protocol",
1374 .type = P_ENUM,
1375 .p_class = P_GLOBAL,
1376 .offset = GLOBAL_VAR(srv_maxprotocol),
1377 .special = NULL,
1378 .enum_list = enum_protocol,
1379 .flags = FLAG_ADVANCED,
1382 .label = "max protocol",
1383 .type = P_ENUM,
1384 .p_class = P_GLOBAL,
1385 .offset = GLOBAL_VAR(srv_maxprotocol),
1386 .special = NULL,
1387 .enum_list = enum_protocol,
1388 .flags = FLAG_ADVANCED,
1391 .label = "protocol",
1392 .type = P_ENUM,
1393 .p_class = P_GLOBAL,
1394 .offset = GLOBAL_VAR(srv_maxprotocol),
1395 .special = NULL,
1396 .enum_list = enum_protocol,
1397 .flags = FLAG_ADVANCED,
1400 .label = "server min protocol",
1401 .type = P_ENUM,
1402 .p_class = P_GLOBAL,
1403 .offset = GLOBAL_VAR(srv_minprotocol),
1404 .special = NULL,
1405 .enum_list = enum_protocol,
1406 .flags = FLAG_ADVANCED,
1409 .label = "min protocol",
1410 .type = P_ENUM,
1411 .p_class = P_GLOBAL,
1412 .offset = GLOBAL_VAR(srv_minprotocol),
1413 .special = NULL,
1414 .enum_list = enum_protocol,
1415 .flags = FLAG_ADVANCED,
1418 .label = "client max protocol",
1419 .type = P_ENUM,
1420 .p_class = P_GLOBAL,
1421 .offset = GLOBAL_VAR(cli_maxprotocol),
1422 .special = NULL,
1423 .enum_list = enum_protocol,
1424 .flags = FLAG_ADVANCED,
1427 .label = "client min protocol",
1428 .type = P_ENUM,
1429 .p_class = P_GLOBAL,
1430 .offset = GLOBAL_VAR(cli_minprotocol),
1431 .special = NULL,
1432 .enum_list = enum_protocol,
1433 .flags = FLAG_ADVANCED,
1436 .label = "unicode",
1437 .type = P_BOOL,
1438 .p_class = P_GLOBAL,
1439 .offset = GLOBAL_VAR(bUnicode),
1440 .special = NULL,
1441 .enum_list = NULL
1444 .label = "min receivefile size",
1445 .type = P_BYTES,
1446 .p_class = P_GLOBAL,
1447 .offset = GLOBAL_VAR(iminreceivefile),
1448 .special = NULL,
1449 .enum_list = NULL,
1450 .flags = FLAG_ADVANCED,
1453 .label = "read raw",
1454 .type = P_BOOL,
1455 .p_class = P_GLOBAL,
1456 .offset = GLOBAL_VAR(bReadRaw),
1457 .special = NULL,
1458 .enum_list = NULL,
1459 .flags = FLAG_ADVANCED,
1462 .label = "write raw",
1463 .type = P_BOOL,
1464 .p_class = P_GLOBAL,
1465 .offset = GLOBAL_VAR(bWriteRaw),
1466 .special = NULL,
1467 .enum_list = NULL,
1468 .flags = FLAG_ADVANCED,
1471 .label = "disable netbios",
1472 .type = P_BOOL,
1473 .p_class = P_GLOBAL,
1474 .offset = GLOBAL_VAR(bDisableNetbios),
1475 .special = NULL,
1476 .enum_list = NULL,
1477 .flags = FLAG_ADVANCED,
1480 .label = "reset on zero vc",
1481 .type = P_BOOL,
1482 .p_class = P_GLOBAL,
1483 .offset = GLOBAL_VAR(bResetOnZeroVC),
1484 .special = NULL,
1485 .enum_list = NULL,
1486 .flags = FLAG_ADVANCED,
1489 .label = "log writeable files on exit",
1490 .type = P_BOOL,
1491 .p_class = P_GLOBAL,
1492 .offset = GLOBAL_VAR(bLogWriteableFilesOnExit),
1493 .special = NULL,
1494 .enum_list = NULL,
1495 .flags = FLAG_ADVANCED,
1498 .label = "acl compatibility",
1499 .type = P_ENUM,
1500 .p_class = P_GLOBAL,
1501 .offset = GLOBAL_VAR(iAclCompat),
1502 .special = NULL,
1503 .enum_list = enum_acl_compat_vals,
1504 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1507 .label = "defer sharing violations",
1508 .type = P_BOOL,
1509 .p_class = P_GLOBAL,
1510 .offset = GLOBAL_VAR(bDeferSharingViolations),
1511 .special = NULL,
1512 .enum_list = NULL,
1513 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
1516 .label = "ea support",
1517 .type = P_BOOL,
1518 .p_class = P_LOCAL,
1519 .offset = LOCAL_VAR(bEASupport),
1520 .special = NULL,
1521 .enum_list = NULL,
1522 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1525 .label = "nt acl support",
1526 .type = P_BOOL,
1527 .p_class = P_LOCAL,
1528 .offset = LOCAL_VAR(bNTAclSupport),
1529 .special = NULL,
1530 .enum_list = NULL,
1531 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1534 .label = "nt pipe support",
1535 .type = P_BOOL,
1536 .p_class = P_GLOBAL,
1537 .offset = GLOBAL_VAR(bNTPipeSupport),
1538 .special = NULL,
1539 .enum_list = NULL,
1540 .flags = FLAG_ADVANCED,
1543 .label = "nt status support",
1544 .type = P_BOOL,
1545 .p_class = P_GLOBAL,
1546 .offset = GLOBAL_VAR(bNTStatusSupport),
1547 .special = NULL,
1548 .enum_list = NULL,
1549 .flags = FLAG_ADVANCED,
1552 .label = "profile acls",
1553 .type = P_BOOL,
1554 .p_class = P_LOCAL,
1555 .offset = LOCAL_VAR(bProfileAcls),
1556 .special = NULL,
1557 .enum_list = NULL,
1558 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
1561 .label = "map acl inherit",
1562 .type = P_BOOL,
1563 .p_class = P_LOCAL,
1564 .offset = LOCAL_VAR(bMap_acl_inherit),
1565 .special = NULL,
1566 .enum_list = NULL,
1567 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1570 .label = "afs share",
1571 .type = P_BOOL,
1572 .p_class = P_LOCAL,
1573 .offset = LOCAL_VAR(bAfs_Share),
1574 .special = NULL,
1575 .enum_list = NULL,
1576 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1579 .label = "max mux",
1580 .type = P_INTEGER,
1581 .p_class = P_GLOBAL,
1582 .offset = GLOBAL_VAR(max_mux),
1583 .special = NULL,
1584 .enum_list = NULL,
1585 .flags = FLAG_ADVANCED,
1588 .label = "max xmit",
1589 .type = P_BYTES,
1590 .p_class = P_GLOBAL,
1591 .offset = GLOBAL_VAR(max_xmit),
1592 .special = NULL,
1593 .enum_list = NULL,
1594 .flags = FLAG_ADVANCED,
1597 .label = "name resolve order",
1598 .type = P_LIST,
1599 .p_class = P_GLOBAL,
1600 .offset = GLOBAL_VAR(szNameResolveOrder),
1601 .special = NULL,
1602 .enum_list = NULL,
1603 .flags = FLAG_ADVANCED | FLAG_WIZARD,
1606 .label = "max ttl",
1607 .type = P_INTEGER,
1608 .p_class = P_GLOBAL,
1609 .offset = GLOBAL_VAR(max_ttl),
1610 .special = NULL,
1611 .enum_list = NULL,
1612 .flags = FLAG_ADVANCED,
1615 .label = "max wins ttl",
1616 .type = P_INTEGER,
1617 .p_class = P_GLOBAL,
1618 .offset = GLOBAL_VAR(max_wins_ttl),
1619 .special = NULL,
1620 .enum_list = NULL,
1621 .flags = FLAG_ADVANCED,
1624 .label = "min wins ttl",
1625 .type = P_INTEGER,
1626 .p_class = P_GLOBAL,
1627 .offset = GLOBAL_VAR(min_wins_ttl),
1628 .special = NULL,
1629 .enum_list = NULL,
1630 .flags = FLAG_ADVANCED,
1633 .label = "time server",
1634 .type = P_BOOL,
1635 .p_class = P_GLOBAL,
1636 .offset = GLOBAL_VAR(bTimeServer),
1637 .special = NULL,
1638 .enum_list = NULL,
1639 .flags = FLAG_ADVANCED,
1642 .label = "unix extensions",
1643 .type = P_BOOL,
1644 .p_class = P_GLOBAL,
1645 .offset = GLOBAL_VAR(bUnixExtensions),
1646 .special = NULL,
1647 .enum_list = NULL,
1648 .flags = FLAG_ADVANCED,
1651 .label = "use spnego",
1652 .type = P_BOOL,
1653 .p_class = P_GLOBAL,
1654 .offset = GLOBAL_VAR(bUseSpnego),
1655 .special = NULL,
1656 .enum_list = NULL,
1657 .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
1660 .label = "client signing",
1661 .type = P_ENUM,
1662 .p_class = P_GLOBAL,
1663 .offset = GLOBAL_VAR(client_signing),
1664 .special = NULL,
1665 .enum_list = enum_smb_signing_vals,
1666 .flags = FLAG_ADVANCED,
1669 .label = "server signing",
1670 .type = P_ENUM,
1671 .p_class = P_GLOBAL,
1672 .offset = GLOBAL_VAR(server_signing),
1673 .special = NULL,
1674 .enum_list = enum_smb_signing_vals,
1675 .flags = FLAG_ADVANCED,
1678 .label = "smb encrypt",
1679 .type = P_ENUM,
1680 .p_class = P_LOCAL,
1681 .offset = LOCAL_VAR(ismb_encrypt),
1682 .special = NULL,
1683 .enum_list = enum_smb_signing_vals,
1684 .flags = FLAG_ADVANCED,
1687 .label = "client use spnego",
1688 .type = P_BOOL,
1689 .p_class = P_GLOBAL,
1690 .offset = GLOBAL_VAR(bClientUseSpnego),
1691 .special = NULL,
1692 .enum_list = NULL,
1693 .flags = FLAG_ADVANCED,
1696 .label = "client ldap sasl wrapping",
1697 .type = P_ENUM,
1698 .p_class = P_GLOBAL,
1699 .offset = GLOBAL_VAR(client_ldap_sasl_wrapping),
1700 .special = NULL,
1701 .enum_list = enum_ldap_sasl_wrapping,
1702 .flags = FLAG_ADVANCED,
1705 .label = "enable asu support",
1706 .type = P_BOOL,
1707 .p_class = P_GLOBAL,
1708 .offset = GLOBAL_VAR(bASUSupport),
1709 .special = NULL,
1710 .enum_list = NULL,
1711 .flags = FLAG_ADVANCED,
1714 .label = "svcctl list",
1715 .type = P_LIST,
1716 .p_class = P_GLOBAL,
1717 .offset = GLOBAL_VAR(szServicesList),
1718 .special = NULL,
1719 .enum_list = NULL,
1720 .flags = FLAG_ADVANCED,
1723 .label = "cldap port",
1724 .type = P_INTEGER,
1725 .p_class = P_GLOBAL,
1726 .offset = GLOBAL_VAR(cldap_port),
1727 .special = NULL,
1728 .enum_list = NULL
1731 .label = "dgram port",
1732 .type = P_INTEGER,
1733 .p_class = P_GLOBAL,
1734 .offset = GLOBAL_VAR(dgram_port),
1735 .special = NULL,
1736 .enum_list = NULL
1739 .label = "nbt port",
1740 .type = P_INTEGER,
1741 .p_class = P_GLOBAL,
1742 .offset = GLOBAL_VAR(nbt_port),
1743 .special = NULL,
1744 .enum_list = NULL
1747 .label = "krb5 port",
1748 .type = P_INTEGER,
1749 .p_class = P_GLOBAL,
1750 .offset = GLOBAL_VAR(krb5_port),
1751 .special = NULL,
1752 .enum_list = NULL
1755 .label = "kpasswd port",
1756 .type = P_INTEGER,
1757 .p_class = P_GLOBAL,
1758 .offset = GLOBAL_VAR(kpasswd_port),
1759 .special = NULL,
1760 .enum_list = NULL
1763 .label = "web port",
1764 .type = P_INTEGER,
1765 .p_class = P_GLOBAL,
1766 .offset = GLOBAL_VAR(web_port),
1767 .special = NULL,
1768 .enum_list = NULL
1771 .label = "rpc big endian",
1772 .type = P_BOOL,
1773 .p_class = P_GLOBAL,
1774 .offset = GLOBAL_VAR(bRpcBigEndian),
1775 .special = NULL,
1776 .enum_list = NULL
1779 .label = "durable handles",
1780 .type = P_BOOL,
1781 .p_class = P_LOCAL,
1782 .offset = LOCAL_VAR(bDurableHandles),
1783 .special = NULL,
1784 .enum_list = NULL,
1785 .flags = FLAG_ADVANCED,
1788 {N_("Tuning Options"), P_SEP, P_SEPARATOR},
1791 .label = "block size",
1792 .type = P_BYTES,
1793 .p_class = P_LOCAL,
1794 .offset = LOCAL_VAR(iBlock_size),
1795 .special = NULL,
1796 .enum_list = NULL,
1797 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
1800 .label = "deadtime",
1801 .type = P_INTEGER,
1802 .p_class = P_GLOBAL,
1803 .offset = GLOBAL_VAR(deadtime),
1804 .special = NULL,
1805 .enum_list = NULL,
1806 .flags = FLAG_ADVANCED,
1809 .label = "getwd cache",
1810 .type = P_BOOL,
1811 .p_class = P_GLOBAL,
1812 .offset = GLOBAL_VAR(getwd_cache),
1813 .special = NULL,
1814 .enum_list = NULL,
1815 .flags = FLAG_ADVANCED,
1818 .label = "keepalive",
1819 .type = P_INTEGER,
1820 .p_class = P_GLOBAL,
1821 .offset = GLOBAL_VAR(iKeepalive),
1822 .special = NULL,
1823 .enum_list = NULL,
1824 .flags = FLAG_ADVANCED,
1827 .label = "change notify",
1828 .type = P_BOOL,
1829 .p_class = P_LOCAL,
1830 .offset = LOCAL_VAR(bChangeNotify),
1831 .special = NULL,
1832 .enum_list = NULL,
1833 .flags = FLAG_ADVANCED | FLAG_SHARE,
1836 .label = "directory name cache size",
1837 .type = P_INTEGER,
1838 .p_class = P_LOCAL,
1839 .offset = LOCAL_VAR(iDirectoryNameCacheSize),
1840 .special = NULL,
1841 .enum_list = NULL,
1842 .flags = FLAG_ADVANCED | FLAG_SHARE,
1845 .label = "kernel change notify",
1846 .type = P_BOOL,
1847 .p_class = P_LOCAL,
1848 .offset = LOCAL_VAR(bKernelChangeNotify),
1849 .special = NULL,
1850 .enum_list = NULL,
1851 .flags = FLAG_ADVANCED | FLAG_SHARE,
1854 .label = "lpq cache time",
1855 .type = P_INTEGER,
1856 .p_class = P_GLOBAL,
1857 .offset = GLOBAL_VAR(lpqcachetime),
1858 .special = NULL,
1859 .enum_list = NULL,
1860 .flags = FLAG_ADVANCED,
1863 .label = "max smbd processes",
1864 .type = P_INTEGER,
1865 .p_class = P_GLOBAL,
1866 .offset = GLOBAL_VAR(iMaxSmbdProcesses),
1867 .special = NULL,
1868 .enum_list = NULL,
1869 .flags = FLAG_ADVANCED,
1872 .label = "max connections",
1873 .type = P_INTEGER,
1874 .p_class = P_LOCAL,
1875 .offset = LOCAL_VAR(iMaxConnections),
1876 .special = NULL,
1877 .enum_list = NULL,
1878 .flags = FLAG_ADVANCED | FLAG_SHARE,
1881 .label = "max disk size",
1882 .type = P_BYTES,
1883 .p_class = P_GLOBAL,
1884 .offset = GLOBAL_VAR(maxdisksize),
1885 .special = NULL,
1886 .enum_list = NULL,
1887 .flags = FLAG_ADVANCED,
1890 .label = "max open files",
1891 .type = P_INTEGER,
1892 .p_class = P_GLOBAL,
1893 .offset = GLOBAL_VAR(max_open_files),
1894 .special = NULL,
1895 .enum_list = NULL,
1896 .flags = FLAG_ADVANCED,
1899 .label = "min print space",
1900 .type = P_INTEGER,
1901 .p_class = P_LOCAL,
1902 .offset = LOCAL_VAR(iMinPrintSpace),
1903 .special = NULL,
1904 .enum_list = NULL,
1905 .flags = FLAG_ADVANCED | FLAG_PRINT,
1908 .label = "socket options",
1909 .type = P_STRING,
1910 .p_class = P_GLOBAL,
1911 .offset = GLOBAL_VAR(socket_options),
1912 .special = NULL,
1913 .enum_list = NULL,
1914 .flags = FLAG_ADVANCED,
1917 .label = "strict allocate",
1918 .type = P_BOOL,
1919 .p_class = P_LOCAL,
1920 .offset = LOCAL_VAR(bStrictAllocate),
1921 .special = NULL,
1922 .enum_list = NULL,
1923 .flags = FLAG_ADVANCED | FLAG_SHARE,
1926 .label = "strict sync",
1927 .type = P_BOOL,
1928 .p_class = P_LOCAL,
1929 .offset = LOCAL_VAR(bStrictSync),
1930 .special = NULL,
1931 .enum_list = NULL,
1932 .flags = FLAG_ADVANCED | FLAG_SHARE,
1935 .label = "sync always",
1936 .type = P_BOOL,
1937 .p_class = P_LOCAL,
1938 .offset = LOCAL_VAR(bSyncAlways),
1939 .special = NULL,
1940 .enum_list = NULL,
1941 .flags = FLAG_ADVANCED | FLAG_SHARE,
1944 .label = "use mmap",
1945 .type = P_BOOL,
1946 .p_class = P_GLOBAL,
1947 .offset = GLOBAL_VAR(bUseMmap),
1948 .special = NULL,
1949 .enum_list = NULL,
1950 .flags = FLAG_ADVANCED,
1953 .label = "use sendfile",
1954 .type = P_BOOL,
1955 .p_class = P_LOCAL,
1956 .offset = LOCAL_VAR(bUseSendfile),
1957 .special = NULL,
1958 .enum_list = NULL,
1959 .flags = FLAG_ADVANCED | FLAG_SHARE,
1962 .label = "hostname lookups",
1963 .type = P_BOOL,
1964 .p_class = P_GLOBAL,
1965 .offset = GLOBAL_VAR(bHostnameLookups),
1966 .special = NULL,
1967 .enum_list = NULL,
1968 .flags = FLAG_ADVANCED,
1971 .label = "write cache size",
1972 .type = P_BYTES,
1973 .p_class = P_LOCAL,
1974 .offset = LOCAL_VAR(iWriteCacheSize),
1975 .special = NULL,
1976 .enum_list = NULL,
1977 .flags = FLAG_ADVANCED | FLAG_SHARE,
1980 .label = "name cache timeout",
1981 .type = P_INTEGER,
1982 .p_class = P_GLOBAL,
1983 .offset = GLOBAL_VAR(name_cache_timeout),
1984 .special = NULL,
1985 .enum_list = NULL,
1986 .flags = FLAG_ADVANCED,
1989 .label = "ctdbd socket",
1990 .type = P_STRING,
1991 .p_class = P_GLOBAL,
1992 .offset = GLOBAL_VAR(ctdbdSocket),
1993 .special = NULL,
1994 .enum_list = NULL,
1995 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
1998 .label = "cluster addresses",
1999 .type = P_LIST,
2000 .p_class = P_GLOBAL,
2001 .offset = GLOBAL_VAR(szClusterAddresses),
2002 .special = NULL,
2003 .enum_list = NULL,
2004 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
2007 .label = "clustering",
2008 .type = P_BOOL,
2009 .p_class = P_GLOBAL,
2010 .offset = GLOBAL_VAR(clustering),
2011 .special = NULL,
2012 .enum_list = NULL,
2013 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
2016 .label = "ctdb timeout",
2017 .type = P_INTEGER,
2018 .p_class = P_GLOBAL,
2019 .offset = GLOBAL_VAR(ctdb_timeout),
2020 .special = NULL,
2021 .enum_list = NULL,
2022 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
2025 .label = "ctdb locktime warn threshold",
2026 .type = P_INTEGER,
2027 .p_class = P_GLOBAL,
2028 .offset = GLOBAL_VAR(ctdb_locktime_warn_threshold),
2029 .special = NULL,
2030 .enum_list = NULL,
2031 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
2034 .label = "smb2 max read",
2035 .type = P_BYTES,
2036 .p_class = P_GLOBAL,
2037 .offset = GLOBAL_VAR(ismb2_max_read),
2038 .special = NULL,
2039 .enum_list = NULL,
2040 .flags = FLAG_ADVANCED,
2043 .label = "smb2 max write",
2044 .type = P_BYTES,
2045 .p_class = P_GLOBAL,
2046 .offset = GLOBAL_VAR(ismb2_max_write),
2047 .special = NULL,
2048 .enum_list = NULL,
2049 .flags = FLAG_ADVANCED,
2052 .label = "smb2 max trans",
2053 .type = P_BYTES,
2054 .p_class = P_GLOBAL,
2055 .offset = GLOBAL_VAR(ismb2_max_trans),
2056 .special = NULL,
2057 .enum_list = NULL,
2058 .flags = FLAG_ADVANCED,
2061 .label = "smb2 max credits",
2062 .type = P_INTEGER,
2063 .p_class = P_GLOBAL,
2064 .offset = GLOBAL_VAR(ismb2_max_credits),
2065 .special = NULL,
2066 .enum_list = NULL,
2067 .flags = FLAG_ADVANCED,
2070 {N_("Printing Options"), P_SEP, P_SEPARATOR},
2073 .label = "max reported print jobs",
2074 .type = P_INTEGER,
2075 .p_class = P_LOCAL,
2076 .offset = LOCAL_VAR(iMaxReportedPrintJobs),
2077 .special = NULL,
2078 .enum_list = NULL,
2079 .flags = FLAG_ADVANCED | FLAG_PRINT,
2082 .label = "max print jobs",
2083 .type = P_INTEGER,
2084 .p_class = P_LOCAL,
2085 .offset = LOCAL_VAR(iMaxPrintJobs),
2086 .special = NULL,
2087 .enum_list = NULL,
2088 .flags = FLAG_ADVANCED | FLAG_PRINT,
2091 .label = "load printers",
2092 .type = P_BOOL,
2093 .p_class = P_GLOBAL,
2094 .offset = GLOBAL_VAR(bLoadPrinters),
2095 .special = NULL,
2096 .enum_list = NULL,
2097 .flags = FLAG_ADVANCED | FLAG_PRINT,
2100 .label = "printcap cache time",
2101 .type = P_INTEGER,
2102 .p_class = P_GLOBAL,
2103 .offset = GLOBAL_VAR(PrintcapCacheTime),
2104 .special = NULL,
2105 .enum_list = NULL,
2106 .flags = FLAG_ADVANCED | FLAG_PRINT,
2109 .label = "printcap name",
2110 .type = P_STRING,
2111 .p_class = P_GLOBAL,
2112 .offset = GLOBAL_VAR(szPrintcapname),
2113 .special = NULL,
2114 .enum_list = NULL,
2115 .flags = FLAG_ADVANCED | FLAG_PRINT,
2118 .label = "printcap",
2119 .type = P_STRING,
2120 .p_class = P_GLOBAL,
2121 .offset = GLOBAL_VAR(szPrintcapname),
2122 .special = NULL,
2123 .enum_list = NULL,
2124 .flags = FLAG_HIDE,
2127 .label = "printable",
2128 .type = P_BOOL,
2129 .p_class = P_LOCAL,
2130 .offset = LOCAL_VAR(bPrint_ok),
2131 .special = NULL,
2132 .enum_list = NULL,
2133 .flags = FLAG_ADVANCED | FLAG_PRINT,
2136 .label = "print notify backchannel",
2137 .type = P_BOOL,
2138 .p_class = P_LOCAL,
2139 .offset = LOCAL_VAR(bPrintNotifyBackchannel),
2140 .special = NULL,
2141 .enum_list = NULL,
2142 .flags = FLAG_ADVANCED,
2145 .label = "print ok",
2146 .type = P_BOOL,
2147 .p_class = P_LOCAL,
2148 .offset = LOCAL_VAR(bPrint_ok),
2149 .special = NULL,
2150 .enum_list = NULL,
2151 .flags = FLAG_HIDE,
2154 .label = "printing",
2155 .type = P_ENUM,
2156 .p_class = P_LOCAL,
2157 .offset = LOCAL_VAR(iPrinting),
2158 .special = handle_printing,
2159 .enum_list = enum_printing,
2160 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2163 .label = "cups options",
2164 .type = P_STRING,
2165 .p_class = P_LOCAL,
2166 .offset = LOCAL_VAR(szCupsOptions),
2167 .special = NULL,
2168 .enum_list = NULL,
2169 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2172 .label = "cups server",
2173 .type = P_STRING,
2174 .p_class = P_GLOBAL,
2175 .offset = GLOBAL_VAR(szCupsServer),
2176 .special = NULL,
2177 .enum_list = NULL,
2178 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2181 .label = "cups encrypt",
2182 .type = P_ENUM,
2183 .p_class = P_GLOBAL,
2184 .offset = GLOBAL_VAR(CupsEncrypt),
2185 .special = NULL,
2186 .enum_list = enum_bool_auto,
2187 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2191 .label = "cups connection timeout",
2192 .type = P_INTEGER,
2193 .p_class = P_GLOBAL,
2194 .offset = GLOBAL_VAR(cups_connection_timeout),
2195 .special = NULL,
2196 .enum_list = NULL,
2197 .flags = FLAG_ADVANCED,
2200 .label = "iprint server",
2201 .type = P_STRING,
2202 .p_class = P_GLOBAL,
2203 .offset = GLOBAL_VAR(szIPrintServer),
2204 .special = NULL,
2205 .enum_list = NULL,
2206 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2209 .label = "print command",
2210 .type = P_STRING,
2211 .p_class = P_LOCAL,
2212 .offset = LOCAL_VAR(szPrintcommand),
2213 .special = NULL,
2214 .enum_list = NULL,
2215 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2218 .label = "disable spoolss",
2219 .type = P_BOOL,
2220 .p_class = P_GLOBAL,
2221 .offset = GLOBAL_VAR(bDisableSpoolss),
2222 .special = NULL,
2223 .enum_list = NULL,
2224 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2227 .label = "enable spoolss",
2228 .type = P_BOOLREV,
2229 .p_class = P_GLOBAL,
2230 .offset = GLOBAL_VAR(bDisableSpoolss),
2231 .special = NULL,
2232 .enum_list = NULL,
2233 .flags = FLAG_HIDE,
2236 .label = "lpq command",
2237 .type = P_STRING,
2238 .p_class = P_LOCAL,
2239 .offset = LOCAL_VAR(szLpqcommand),
2240 .special = NULL,
2241 .enum_list = NULL,
2242 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2245 .label = "lprm command",
2246 .type = P_STRING,
2247 .p_class = P_LOCAL,
2248 .offset = LOCAL_VAR(szLprmcommand),
2249 .special = NULL,
2250 .enum_list = NULL,
2251 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2254 .label = "lppause command",
2255 .type = P_STRING,
2256 .p_class = P_LOCAL,
2257 .offset = LOCAL_VAR(szLppausecommand),
2258 .special = NULL,
2259 .enum_list = NULL,
2260 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2263 .label = "lpresume command",
2264 .type = P_STRING,
2265 .p_class = P_LOCAL,
2266 .offset = LOCAL_VAR(szLpresumecommand),
2267 .special = NULL,
2268 .enum_list = NULL,
2269 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2272 .label = "queuepause command",
2273 .type = P_STRING,
2274 .p_class = P_LOCAL,
2275 .offset = LOCAL_VAR(szQueuepausecommand),
2276 .special = NULL,
2277 .enum_list = NULL,
2278 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2281 .label = "queueresume command",
2282 .type = P_STRING,
2283 .p_class = P_LOCAL,
2284 .offset = LOCAL_VAR(szQueueresumecommand),
2285 .special = NULL,
2286 .enum_list = NULL,
2287 .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
2290 .label = "addport command",
2291 .type = P_STRING,
2292 .p_class = P_GLOBAL,
2293 .offset = GLOBAL_VAR(szAddPortCommand),
2294 .special = NULL,
2295 .enum_list = NULL,
2296 .flags = FLAG_ADVANCED,
2299 .label = "enumports command",
2300 .type = P_STRING,
2301 .p_class = P_GLOBAL,
2302 .offset = GLOBAL_VAR(szEnumPortsCommand),
2303 .special = NULL,
2304 .enum_list = NULL,
2305 .flags = FLAG_ADVANCED,
2308 .label = "addprinter command",
2309 .type = P_STRING,
2310 .p_class = P_GLOBAL,
2311 .offset = GLOBAL_VAR(szAddPrinterCommand),
2312 .special = NULL,
2313 .enum_list = NULL,
2314 .flags = FLAG_ADVANCED,
2317 .label = "deleteprinter command",
2318 .type = P_STRING,
2319 .p_class = P_GLOBAL,
2320 .offset = GLOBAL_VAR(szDeletePrinterCommand),
2321 .special = NULL,
2322 .enum_list = NULL,
2323 .flags = FLAG_ADVANCED,
2326 .label = "show add printer wizard",
2327 .type = P_BOOL,
2328 .p_class = P_GLOBAL,
2329 .offset = GLOBAL_VAR(bMsAddPrinterWizard),
2330 .special = NULL,
2331 .enum_list = NULL,
2332 .flags = FLAG_ADVANCED,
2335 .label = "os2 driver map",
2336 .type = P_STRING,
2337 .p_class = P_GLOBAL,
2338 .offset = GLOBAL_VAR(szOs2DriverMap),
2339 .special = NULL,
2340 .enum_list = NULL,
2341 .flags = FLAG_ADVANCED,
2345 .label = "printer name",
2346 .type = P_STRING,
2347 .p_class = P_LOCAL,
2348 .offset = LOCAL_VAR(szPrintername),
2349 .special = NULL,
2350 .enum_list = NULL,
2351 .flags = FLAG_ADVANCED | FLAG_PRINT,
2354 .label = "printer",
2355 .type = P_STRING,
2356 .p_class = P_LOCAL,
2357 .offset = LOCAL_VAR(szPrintername),
2358 .special = NULL,
2359 .enum_list = NULL,
2360 .flags = FLAG_HIDE,
2363 .label = "use client driver",
2364 .type = P_BOOL,
2365 .p_class = P_LOCAL,
2366 .offset = LOCAL_VAR(bUseClientDriver),
2367 .special = NULL,
2368 .enum_list = NULL,
2369 .flags = FLAG_ADVANCED | FLAG_PRINT,
2372 .label = "default devmode",
2373 .type = P_BOOL,
2374 .p_class = P_LOCAL,
2375 .offset = LOCAL_VAR(bDefaultDevmode),
2376 .special = NULL,
2377 .enum_list = NULL,
2378 .flags = FLAG_ADVANCED | FLAG_PRINT,
2381 .label = "force printername",
2382 .type = P_BOOL,
2383 .p_class = P_LOCAL,
2384 .offset = LOCAL_VAR(bForcePrintername),
2385 .special = NULL,
2386 .enum_list = NULL,
2387 .flags = FLAG_ADVANCED | FLAG_PRINT,
2390 .label = "printjob username",
2391 .type = P_STRING,
2392 .p_class = P_LOCAL,
2393 .offset = LOCAL_VAR(szPrintjobUsername),
2394 .special = NULL,
2395 .enum_list = NULL,
2396 .flags = FLAG_ADVANCED | FLAG_PRINT,
2399 {N_("Filename Handling"), P_SEP, P_SEPARATOR},
2402 .label = "mangling method",
2403 .type = P_STRING,
2404 .p_class = P_GLOBAL,
2405 .offset = GLOBAL_VAR(szManglingMethod),
2406 .special = NULL,
2407 .enum_list = NULL,
2408 .flags = FLAG_ADVANCED,
2411 .label = "mangle prefix",
2412 .type = P_INTEGER,
2413 .p_class = P_GLOBAL,
2414 .offset = GLOBAL_VAR(mangle_prefix),
2415 .special = NULL,
2416 .enum_list = NULL,
2417 .flags = FLAG_ADVANCED,
2421 .label = "default case",
2422 .type = P_ENUM,
2423 .p_class = P_LOCAL,
2424 .offset = LOCAL_VAR(iDefaultCase),
2425 .special = NULL,
2426 .enum_list = enum_case,
2427 .flags = FLAG_ADVANCED | FLAG_SHARE,
2430 .label = "case sensitive",
2431 .type = P_ENUM,
2432 .p_class = P_LOCAL,
2433 .offset = LOCAL_VAR(iCaseSensitive),
2434 .special = NULL,
2435 .enum_list = enum_bool_auto,
2436 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2439 .label = "casesignames",
2440 .type = P_ENUM,
2441 .p_class = P_LOCAL,
2442 .offset = LOCAL_VAR(iCaseSensitive),
2443 .special = NULL,
2444 .enum_list = enum_bool_auto,
2445 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL | FLAG_HIDE,
2448 .label = "preserve case",
2449 .type = P_BOOL,
2450 .p_class = P_LOCAL,
2451 .offset = LOCAL_VAR(bCasePreserve),
2452 .special = NULL,
2453 .enum_list = NULL,
2454 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2457 .label = "short preserve case",
2458 .type = P_BOOL,
2459 .p_class = P_LOCAL,
2460 .offset = LOCAL_VAR(bShortCasePreserve),
2461 .special = NULL,
2462 .enum_list = NULL,
2463 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2466 .label = "mangling char",
2467 .type = P_CHAR,
2468 .p_class = P_LOCAL,
2469 .offset = LOCAL_VAR(magic_char),
2470 .special = NULL,
2471 .enum_list = NULL,
2472 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2475 .label = "hide dot files",
2476 .type = P_BOOL,
2477 .p_class = P_LOCAL,
2478 .offset = LOCAL_VAR(bHideDotFiles),
2479 .special = NULL,
2480 .enum_list = NULL,
2481 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2484 .label = "hide special files",
2485 .type = P_BOOL,
2486 .p_class = P_LOCAL,
2487 .offset = LOCAL_VAR(bHideSpecialFiles),
2488 .special = NULL,
2489 .enum_list = NULL,
2490 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2493 .label = "hide unreadable",
2494 .type = P_BOOL,
2495 .p_class = P_LOCAL,
2496 .offset = LOCAL_VAR(bHideUnReadable),
2497 .special = NULL,
2498 .enum_list = NULL,
2499 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2502 .label = "hide unwriteable files",
2503 .type = P_BOOL,
2504 .p_class = P_LOCAL,
2505 .offset = LOCAL_VAR(bHideUnWriteableFiles),
2506 .special = NULL,
2507 .enum_list = NULL,
2508 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2511 .label = "delete veto files",
2512 .type = P_BOOL,
2513 .p_class = P_LOCAL,
2514 .offset = LOCAL_VAR(bDeleteVetoFiles),
2515 .special = NULL,
2516 .enum_list = NULL,
2517 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2520 .label = "veto files",
2521 .type = P_STRING,
2522 .p_class = P_LOCAL,
2523 .offset = LOCAL_VAR(szVetoFiles),
2524 .special = NULL,
2525 .enum_list = NULL,
2526 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2529 .label = "hide files",
2530 .type = P_STRING,
2531 .p_class = P_LOCAL,
2532 .offset = LOCAL_VAR(szHideFiles),
2533 .special = NULL,
2534 .enum_list = NULL,
2535 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2538 .label = "veto oplock files",
2539 .type = P_STRING,
2540 .p_class = P_LOCAL,
2541 .offset = LOCAL_VAR(szVetoOplockFiles),
2542 .special = NULL,
2543 .enum_list = NULL,
2544 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2547 .label = "map archive",
2548 .type = P_BOOL,
2549 .p_class = P_LOCAL,
2550 .offset = LOCAL_VAR(bMap_archive),
2551 .special = NULL,
2552 .enum_list = NULL,
2553 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2556 .label = "map hidden",
2557 .type = P_BOOL,
2558 .p_class = P_LOCAL,
2559 .offset = LOCAL_VAR(bMap_hidden),
2560 .special = NULL,
2561 .enum_list = NULL,
2562 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2565 .label = "map system",
2566 .type = P_BOOL,
2567 .p_class = P_LOCAL,
2568 .offset = LOCAL_VAR(bMap_system),
2569 .special = NULL,
2570 .enum_list = NULL,
2571 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2574 .label = "map readonly",
2575 .type = P_ENUM,
2576 .p_class = P_LOCAL,
2577 .offset = LOCAL_VAR(iMap_readonly),
2578 .special = NULL,
2579 .enum_list = enum_map_readonly,
2580 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2583 .label = "mangled names",
2584 .type = P_BOOL,
2585 .p_class = P_LOCAL,
2586 .offset = LOCAL_VAR(bMangledNames),
2587 .special = NULL,
2588 .enum_list = NULL,
2589 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2592 .label = "max stat cache size",
2593 .type = P_INTEGER,
2594 .p_class = P_GLOBAL,
2595 .offset = GLOBAL_VAR(iMaxStatCacheSize),
2596 .special = NULL,
2597 .enum_list = NULL,
2598 .flags = FLAG_ADVANCED,
2601 .label = "stat cache",
2602 .type = P_BOOL,
2603 .p_class = P_GLOBAL,
2604 .offset = GLOBAL_VAR(bStatCache),
2605 .special = NULL,
2606 .enum_list = NULL,
2607 .flags = FLAG_ADVANCED,
2610 .label = "store dos attributes",
2611 .type = P_BOOL,
2612 .p_class = P_LOCAL,
2613 .offset = LOCAL_VAR(bStoreDosAttributes),
2614 .special = NULL,
2615 .enum_list = NULL,
2616 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2619 .label = "dmapi support",
2620 .type = P_BOOL,
2621 .p_class = P_LOCAL,
2622 .offset = LOCAL_VAR(bDmapiSupport),
2623 .special = NULL,
2624 .enum_list = NULL,
2625 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2629 {N_("Domain Options"), P_SEP, P_SEPARATOR},
2632 .label = "machine password timeout",
2633 .type = P_INTEGER,
2634 .p_class = P_GLOBAL,
2635 .offset = GLOBAL_VAR(machine_password_timeout),
2636 .special = NULL,
2637 .enum_list = NULL,
2638 .flags = FLAG_ADVANCED | FLAG_WIZARD,
2641 {N_("Logon Options"), P_SEP, P_SEPARATOR},
2644 .label = "add user script",
2645 .type = P_STRING,
2646 .p_class = P_GLOBAL,
2647 .offset = GLOBAL_VAR(szAddUserScript),
2648 .special = NULL,
2649 .enum_list = NULL,
2650 .flags = FLAG_ADVANCED,
2653 .label = "rename user script",
2654 .type = P_STRING,
2655 .p_class = P_GLOBAL,
2656 .offset = GLOBAL_VAR(szRenameUserScript),
2657 .special = NULL,
2658 .enum_list = NULL,
2659 .flags = FLAG_ADVANCED,
2662 .label = "delete user script",
2663 .type = P_STRING,
2664 .p_class = P_GLOBAL,
2665 .offset = GLOBAL_VAR(szDelUserScript),
2666 .special = NULL,
2667 .enum_list = NULL,
2668 .flags = FLAG_ADVANCED,
2671 .label = "add group script",
2672 .type = P_STRING,
2673 .p_class = P_GLOBAL,
2674 .offset = GLOBAL_VAR(szAddGroupScript),
2675 .special = NULL,
2676 .enum_list = NULL,
2677 .flags = FLAG_ADVANCED,
2680 .label = "delete group script",
2681 .type = P_STRING,
2682 .p_class = P_GLOBAL,
2683 .offset = GLOBAL_VAR(szDelGroupScript),
2684 .special = NULL,
2685 .enum_list = NULL,
2686 .flags = FLAG_ADVANCED,
2689 .label = "add user to group script",
2690 .type = P_STRING,
2691 .p_class = P_GLOBAL,
2692 .offset = GLOBAL_VAR(szAddUserToGroupScript),
2693 .special = NULL,
2694 .enum_list = NULL,
2695 .flags = FLAG_ADVANCED,
2698 .label = "delete user from group script",
2699 .type = P_STRING,
2700 .p_class = P_GLOBAL,
2701 .offset = GLOBAL_VAR(szDelUserFromGroupScript),
2702 .special = NULL,
2703 .enum_list = NULL,
2704 .flags = FLAG_ADVANCED,
2707 .label = "set primary group script",
2708 .type = P_STRING,
2709 .p_class = P_GLOBAL,
2710 .offset = GLOBAL_VAR(szSetPrimaryGroupScript),
2711 .special = NULL,
2712 .enum_list = NULL,
2713 .flags = FLAG_ADVANCED,
2716 .label = "add machine script",
2717 .type = P_STRING,
2718 .p_class = P_GLOBAL,
2719 .offset = GLOBAL_VAR(szAddMachineScript),
2720 .special = NULL,
2721 .enum_list = NULL,
2722 .flags = FLAG_ADVANCED,
2725 .label = "shutdown script",
2726 .type = P_STRING,
2727 .p_class = P_GLOBAL,
2728 .offset = GLOBAL_VAR(szShutdownScript),
2729 .special = NULL,
2730 .enum_list = NULL,
2731 .flags = FLAG_ADVANCED,
2734 .label = "abort shutdown script",
2735 .type = P_STRING,
2736 .p_class = P_GLOBAL,
2737 .offset = GLOBAL_VAR(szAbortShutdownScript),
2738 .special = NULL,
2739 .enum_list = NULL,
2740 .flags = FLAG_ADVANCED,
2743 .label = "username map script",
2744 .type = P_STRING,
2745 .p_class = P_GLOBAL,
2746 .offset = GLOBAL_VAR(szUsernameMapScript),
2747 .special = NULL,
2748 .enum_list = NULL,
2749 .flags = FLAG_ADVANCED,
2752 .label = "username map cache time",
2753 .type = P_INTEGER,
2754 .p_class = P_GLOBAL,
2755 .offset = GLOBAL_VAR(iUsernameMapCacheTime),
2756 .special = NULL,
2757 .enum_list = NULL,
2758 .flags = FLAG_ADVANCED,
2761 .label = "logon script",
2762 .type = P_STRING,
2763 .p_class = P_GLOBAL,
2764 .offset = GLOBAL_VAR(szLogonScript),
2765 .special = NULL,
2766 .enum_list = NULL,
2767 .flags = FLAG_ADVANCED,
2770 .label = "logon path",
2771 .type = P_STRING,
2772 .p_class = P_GLOBAL,
2773 .offset = GLOBAL_VAR(szLogonPath),
2774 .special = NULL,
2775 .enum_list = NULL,
2776 .flags = FLAG_ADVANCED,
2779 .label = "logon drive",
2780 .type = P_STRING,
2781 .p_class = P_GLOBAL,
2782 .offset = GLOBAL_VAR(szLogonDrive),
2783 .special = NULL,
2784 .enum_list = NULL,
2785 .flags = FLAG_ADVANCED,
2788 .label = "logon home",
2789 .type = P_STRING,
2790 .p_class = P_GLOBAL,
2791 .offset = GLOBAL_VAR(szLogonHome),
2792 .special = NULL,
2793 .enum_list = NULL,
2794 .flags = FLAG_ADVANCED,
2797 .label = "domain logons",
2798 .type = P_BOOL,
2799 .p_class = P_GLOBAL,
2800 .offset = GLOBAL_VAR(bDomainLogons),
2801 .special = NULL,
2802 .enum_list = NULL,
2803 .flags = FLAG_ADVANCED,
2807 .label = "init logon delayed hosts",
2808 .type = P_LIST,
2809 .p_class = P_GLOBAL,
2810 .offset = GLOBAL_VAR(szInitLogonDelayedHosts),
2811 .special = NULL,
2812 .enum_list = NULL,
2813 .flags = FLAG_ADVANCED,
2817 .label = "init logon delay",
2818 .type = P_INTEGER,
2819 .p_class = P_GLOBAL,
2820 .offset = GLOBAL_VAR(InitLogonDelay),
2821 .special = NULL,
2822 .enum_list = NULL,
2823 .flags = FLAG_ADVANCED,
2827 {N_("Browse Options"), P_SEP, P_SEPARATOR},
2830 .label = "os level",
2831 .type = P_INTEGER,
2832 .p_class = P_GLOBAL,
2833 .offset = GLOBAL_VAR(os_level),
2834 .special = NULL,
2835 .enum_list = NULL,
2836 .flags = FLAG_BASIC | FLAG_ADVANCED,
2839 .label = "lm announce",
2840 .type = P_ENUM,
2841 .p_class = P_GLOBAL,
2842 .offset = GLOBAL_VAR(lm_announce),
2843 .special = NULL,
2844 .enum_list = enum_bool_auto,
2845 .flags = FLAG_ADVANCED,
2848 .label = "lm interval",
2849 .type = P_INTEGER,
2850 .p_class = P_GLOBAL,
2851 .offset = GLOBAL_VAR(lm_interval),
2852 .special = NULL,
2853 .enum_list = NULL,
2854 .flags = FLAG_ADVANCED,
2857 .label = "preferred master",
2858 .type = P_ENUM,
2859 .p_class = P_GLOBAL,
2860 .offset = GLOBAL_VAR(iPreferredMaster),
2861 .special = NULL,
2862 .enum_list = enum_bool_auto,
2863 .flags = FLAG_BASIC | FLAG_ADVANCED,
2866 .label = "prefered master",
2867 .type = P_ENUM,
2868 .p_class = P_GLOBAL,
2869 .offset = GLOBAL_VAR(iPreferredMaster),
2870 .special = NULL,
2871 .enum_list = enum_bool_auto,
2872 .flags = FLAG_HIDE,
2875 .label = "local master",
2876 .type = P_BOOL,
2877 .p_class = P_GLOBAL,
2878 .offset = GLOBAL_VAR(bLocalMaster),
2879 .special = NULL,
2880 .enum_list = NULL,
2881 .flags = FLAG_BASIC | FLAG_ADVANCED,
2884 .label = "domain master",
2885 .type = P_ENUM,
2886 .p_class = P_GLOBAL,
2887 .offset = GLOBAL_VAR(domain_master),
2888 .special = NULL,
2889 .enum_list = enum_bool_auto,
2890 .flags = FLAG_BASIC | FLAG_ADVANCED,
2893 .label = "browse list",
2894 .type = P_BOOL,
2895 .p_class = P_GLOBAL,
2896 .offset = GLOBAL_VAR(bBrowseList),
2897 .special = NULL,
2898 .enum_list = NULL,
2899 .flags = FLAG_ADVANCED,
2902 .label = "browseable",
2903 .type = P_BOOL,
2904 .p_class = P_LOCAL,
2905 .offset = LOCAL_VAR(bBrowseable),
2906 .special = NULL,
2907 .enum_list = NULL,
2908 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
2911 .label = "browsable",
2912 .type = P_BOOL,
2913 .p_class = P_LOCAL,
2914 .offset = LOCAL_VAR(bBrowseable),
2915 .special = NULL,
2916 .enum_list = NULL,
2917 .flags = FLAG_HIDE,
2920 .label = "access based share enum",
2921 .type = P_BOOL,
2922 .p_class = P_LOCAL,
2923 .offset = LOCAL_VAR(bAccessBasedShareEnum),
2924 .special = NULL,
2925 .enum_list = NULL,
2926 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE
2929 .label = "enhanced browsing",
2930 .type = P_BOOL,
2931 .p_class = P_GLOBAL,
2932 .offset = GLOBAL_VAR(enhanced_browsing),
2933 .special = NULL,
2934 .enum_list = NULL,
2935 .flags = FLAG_ADVANCED,
2938 {N_("WINS Options"), P_SEP, P_SEPARATOR},
2941 .label = "dns proxy",
2942 .type = P_BOOL,
2943 .p_class = P_GLOBAL,
2944 .offset = GLOBAL_VAR(bWINSdnsProxy),
2945 .special = NULL,
2946 .enum_list = NULL,
2947 .flags = FLAG_ADVANCED,
2950 .label = "wins proxy",
2951 .type = P_BOOL,
2952 .p_class = P_GLOBAL,
2953 .offset = GLOBAL_VAR(bWINSproxy),
2954 .special = NULL,
2955 .enum_list = NULL,
2956 .flags = FLAG_ADVANCED,
2959 .label = "wins server",
2960 .type = P_LIST,
2961 .p_class = P_GLOBAL,
2962 .offset = GLOBAL_VAR(szWINSservers),
2963 .special = NULL,
2964 .enum_list = NULL,
2965 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2968 .label = "wins support",
2969 .type = P_BOOL,
2970 .p_class = P_GLOBAL,
2971 .offset = GLOBAL_VAR(bWINSsupport),
2972 .special = NULL,
2973 .enum_list = NULL,
2974 .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
2977 .label = "wins hook",
2978 .type = P_STRING,
2979 .p_class = P_GLOBAL,
2980 .offset = GLOBAL_VAR(szWINSHook),
2981 .special = NULL,
2982 .enum_list = NULL,
2983 .flags = FLAG_ADVANCED,
2986 {N_("Locking Options"), P_SEP, P_SEPARATOR},
2989 .label = "blocking locks",
2990 .type = P_BOOL,
2991 .p_class = P_LOCAL,
2992 .offset = LOCAL_VAR(bBlockingLocks),
2993 .special = NULL,
2994 .enum_list = NULL,
2995 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
2998 .label = "csc policy",
2999 .type = P_ENUM,
3000 .p_class = P_LOCAL,
3001 .offset = LOCAL_VAR(iCSCPolicy),
3002 .special = NULL,
3003 .enum_list = enum_csc_policy,
3004 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3007 .label = "fake oplocks",
3008 .type = P_BOOL,
3009 .p_class = P_LOCAL,
3010 .offset = LOCAL_VAR(bFakeOplocks),
3011 .special = NULL,
3012 .enum_list = NULL,
3013 .flags = FLAG_ADVANCED | FLAG_SHARE,
3016 .label = "kernel oplocks",
3017 .type = P_BOOL,
3018 .p_class = P_LOCAL,
3019 .offset = LOCAL_VAR(bKernelOplocks),
3020 .special = NULL,
3021 .enum_list = NULL,
3022 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3025 .label = "kernel share modes",
3026 .type = P_BOOL,
3027 .p_class = P_LOCAL,
3028 .offset = LOCAL_VAR(bKernelShareModes),
3029 .special = NULL,
3030 .enum_list = NULL,
3031 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3034 .label = "locking",
3035 .type = P_BOOL,
3036 .p_class = P_LOCAL,
3037 .offset = LOCAL_VAR(bLocking),
3038 .special = NULL,
3039 .enum_list = NULL,
3040 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3043 .label = "lock spin time",
3044 .type = P_INTEGER,
3045 .p_class = P_GLOBAL,
3046 .offset = GLOBAL_VAR(iLockSpinTime),
3047 .special = NULL,
3048 .enum_list = NULL,
3049 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
3052 .label = "oplocks",
3053 .type = P_BOOL,
3054 .p_class = P_LOCAL,
3055 .offset = LOCAL_VAR(bOpLocks),
3056 .special = NULL,
3057 .enum_list = NULL,
3058 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3061 .label = "level2 oplocks",
3062 .type = P_BOOL,
3063 .p_class = P_LOCAL,
3064 .offset = LOCAL_VAR(bLevel2OpLocks),
3065 .special = NULL,
3066 .enum_list = NULL,
3067 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3070 .label = "oplock break wait time",
3071 .type = P_INTEGER,
3072 .p_class = P_GLOBAL,
3073 .offset = GLOBAL_VAR(oplock_break_wait_time),
3074 .special = NULL,
3075 .enum_list = NULL,
3076 .flags = FLAG_ADVANCED | FLAG_GLOBAL,
3079 .label = "oplock contention limit",
3080 .type = P_INTEGER,
3081 .p_class = P_LOCAL,
3082 .offset = LOCAL_VAR(iOplockContentionLimit),
3083 .special = NULL,
3084 .enum_list = NULL,
3085 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3088 .label = "posix locking",
3089 .type = P_BOOL,
3090 .p_class = P_LOCAL,
3091 .offset = LOCAL_VAR(bPosixLocking),
3092 .special = NULL,
3093 .enum_list = NULL,
3094 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3097 .label = "strict locking",
3098 .type = P_ENUM,
3099 .p_class = P_LOCAL,
3100 .offset = LOCAL_VAR(iStrictLocking),
3101 .special = NULL,
3102 .enum_list = enum_bool_auto,
3103 .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
3106 {N_("Ldap Options"), P_SEP, P_SEPARATOR},
3109 .label = "ldap admin dn",
3110 .type = P_STRING,
3111 .p_class = P_GLOBAL,
3112 .offset = GLOBAL_VAR(szLdapAdminDn),
3113 .special = NULL,
3114 .enum_list = NULL,
3115 .flags = FLAG_ADVANCED,
3118 .label = "ldap delete dn",
3119 .type = P_BOOL,
3120 .p_class = P_GLOBAL,
3121 .offset = GLOBAL_VAR(ldap_delete_dn),
3122 .special = NULL,
3123 .enum_list = NULL,
3124 .flags = FLAG_ADVANCED,
3127 .label = "ldap group suffix",
3128 .type = P_STRING,
3129 .p_class = P_GLOBAL,
3130 .offset = GLOBAL_VAR(szLdapGroupSuffix),
3131 .special = NULL,
3132 .enum_list = NULL,
3133 .flags = FLAG_ADVANCED,
3136 .label = "ldap idmap suffix",
3137 .type = P_STRING,
3138 .p_class = P_GLOBAL,
3139 .offset = GLOBAL_VAR(szLdapIdmapSuffix),
3140 .special = NULL,
3141 .enum_list = NULL,
3142 .flags = FLAG_ADVANCED,
3145 .label = "ldap machine suffix",
3146 .type = P_STRING,
3147 .p_class = P_GLOBAL,
3148 .offset = GLOBAL_VAR(szLdapMachineSuffix),
3149 .special = NULL,
3150 .enum_list = NULL,
3151 .flags = FLAG_ADVANCED,
3154 .label = "ldap passwd sync",
3155 .type = P_ENUM,
3156 .p_class = P_GLOBAL,
3157 .offset = GLOBAL_VAR(ldap_passwd_sync),
3158 .special = NULL,
3159 .enum_list = enum_ldap_passwd_sync,
3160 .flags = FLAG_ADVANCED,
3163 .label = "ldap password sync",
3164 .type = P_ENUM,
3165 .p_class = P_GLOBAL,
3166 .offset = GLOBAL_VAR(ldap_passwd_sync),
3167 .special = NULL,
3168 .enum_list = enum_ldap_passwd_sync,
3169 .flags = FLAG_HIDE,
3172 .label = "ldap replication sleep",
3173 .type = P_INTEGER,
3174 .p_class = P_GLOBAL,
3175 .offset = GLOBAL_VAR(ldap_replication_sleep),
3176 .special = NULL,
3177 .enum_list = NULL,
3178 .flags = FLAG_ADVANCED,
3181 .label = "ldap suffix",
3182 .type = P_STRING,
3183 .p_class = P_GLOBAL,
3184 .offset = GLOBAL_VAR(szLdapSuffix),
3185 .special = NULL,
3186 .enum_list = NULL,
3187 .flags = FLAG_ADVANCED,
3190 .label = "ldap ssl",
3191 .type = P_ENUM,
3192 .p_class = P_GLOBAL,
3193 .offset = GLOBAL_VAR(ldap_ssl),
3194 .special = NULL,
3195 .enum_list = enum_ldap_ssl,
3196 .flags = FLAG_ADVANCED,
3199 .label = "ldap ssl ads",
3200 .type = P_BOOL,
3201 .p_class = P_GLOBAL,
3202 .offset = GLOBAL_VAR(ldap_ssl_ads),
3203 .special = NULL,
3204 .enum_list = NULL,
3205 .flags = FLAG_ADVANCED,
3208 .label = "ldap deref",
3209 .type = P_ENUM,
3210 .p_class = P_GLOBAL,
3211 .offset = GLOBAL_VAR(ldap_deref),
3212 .special = NULL,
3213 .enum_list = enum_ldap_deref,
3214 .flags = FLAG_ADVANCED,
3217 .label = "ldap follow referral",
3218 .type = P_ENUM,
3219 .p_class = P_GLOBAL,
3220 .offset = GLOBAL_VAR(ldap_follow_referral),
3221 .special = NULL,
3222 .enum_list = enum_bool_auto,
3223 .flags = FLAG_ADVANCED,
3226 .label = "ldap timeout",
3227 .type = P_INTEGER,
3228 .p_class = P_GLOBAL,
3229 .offset = GLOBAL_VAR(ldap_timeout),
3230 .special = NULL,
3231 .enum_list = NULL,
3232 .flags = FLAG_ADVANCED,
3235 .label = "ldap connection timeout",
3236 .type = P_INTEGER,
3237 .p_class = P_GLOBAL,
3238 .offset = GLOBAL_VAR(ldap_connection_timeout),
3239 .special = NULL,
3240 .enum_list = NULL,
3241 .flags = FLAG_ADVANCED,
3244 .label = "ldap page size",
3245 .type = P_INTEGER,
3246 .p_class = P_GLOBAL,
3247 .offset = GLOBAL_VAR(ldap_page_size),
3248 .special = NULL,
3249 .enum_list = NULL,
3250 .flags = FLAG_ADVANCED,
3253 .label = "ldap user suffix",
3254 .type = P_STRING,
3255 .p_class = P_GLOBAL,
3256 .offset = GLOBAL_VAR(szLdapUserSuffix),
3257 .special = NULL,
3258 .enum_list = NULL,
3259 .flags = FLAG_ADVANCED,
3262 .label = "ldap debug level",
3263 .type = P_INTEGER,
3264 .p_class = P_GLOBAL,
3265 .offset = GLOBAL_VAR(ldap_debug_level),
3266 .special = handle_ldap_debug_level,
3267 .enum_list = NULL,
3268 .flags = FLAG_ADVANCED,
3271 .label = "ldap debug threshold",
3272 .type = P_INTEGER,
3273 .p_class = P_GLOBAL,
3274 .offset = GLOBAL_VAR(ldap_debug_threshold),
3275 .special = NULL,
3276 .enum_list = NULL,
3277 .flags = FLAG_ADVANCED,
3280 {N_("EventLog Options"), P_SEP, P_SEPARATOR},
3283 .label = "eventlog list",
3284 .type = P_LIST,
3285 .p_class = P_GLOBAL,
3286 .offset = GLOBAL_VAR(szEventLogs),
3287 .special = NULL,
3288 .enum_list = NULL,
3289 .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
3292 {N_("Miscellaneous Options"), P_SEP, P_SEPARATOR},
3295 .label = "add share command",
3296 .type = P_STRING,
3297 .p_class = P_GLOBAL,
3298 .offset = GLOBAL_VAR(szAddShareCommand),
3299 .special = NULL,
3300 .enum_list = NULL,
3301 .flags = FLAG_ADVANCED,
3304 .label = "change share command",
3305 .type = P_STRING,
3306 .p_class = P_GLOBAL,
3307 .offset = GLOBAL_VAR(szChangeShareCommand),
3308 .special = NULL,
3309 .enum_list = NULL,
3310 .flags = FLAG_ADVANCED,
3313 .label = "delete share command",
3314 .type = P_STRING,
3315 .p_class = P_GLOBAL,
3316 .offset = GLOBAL_VAR(szDeleteShareCommand),
3317 .special = NULL,
3318 .enum_list = NULL,
3319 .flags = FLAG_ADVANCED,
3322 .label = "config file",
3323 .type = P_STRING,
3324 .p_class = P_GLOBAL,
3325 .offset = GLOBAL_VAR(szConfigFile),
3326 .special = NULL,
3327 .enum_list = NULL,
3328 .flags = FLAG_HIDE|FLAG_META,
3331 .label = "preload",
3332 .type = P_STRING,
3333 .p_class = P_GLOBAL,
3334 .offset = GLOBAL_VAR(szAutoServices),
3335 .special = NULL,
3336 .enum_list = NULL,
3337 .flags = FLAG_ADVANCED,
3340 .label = "auto services",
3341 .type = P_STRING,
3342 .p_class = P_GLOBAL,
3343 .offset = GLOBAL_VAR(szAutoServices),
3344 .special = NULL,
3345 .enum_list = NULL,
3346 .flags = FLAG_ADVANCED,
3349 .label = "lock directory",
3350 .type = P_STRING,
3351 .p_class = P_GLOBAL,
3352 .offset = GLOBAL_VAR(szLockDir),
3353 .special = NULL,
3354 .enum_list = NULL,
3355 .flags = FLAG_ADVANCED,
3358 .label = "lock dir",
3359 .type = P_STRING,
3360 .p_class = P_GLOBAL,
3361 .offset = GLOBAL_VAR(szLockDir),
3362 .special = NULL,
3363 .enum_list = NULL,
3364 .flags = FLAG_HIDE,
3367 .label = "state directory",
3368 .type = P_STRING,
3369 .p_class = P_GLOBAL,
3370 .offset = GLOBAL_VAR(szStateDir),
3371 .special = NULL,
3372 .enum_list = NULL,
3373 .flags = FLAG_ADVANCED,
3376 .label = "cache directory",
3377 .type = P_STRING,
3378 .p_class = P_GLOBAL,
3379 .offset = GLOBAL_VAR(szCacheDir),
3380 .special = NULL,
3381 .enum_list = NULL,
3382 .flags = FLAG_ADVANCED,
3385 .label = "pid directory",
3386 .type = P_STRING,
3387 .p_class = P_GLOBAL,
3388 .offset = GLOBAL_VAR(szPidDir),
3389 .special = NULL,
3390 .enum_list = NULL,
3391 .flags = FLAG_ADVANCED,
3394 .label = "ntp signd socket directory",
3395 .type = P_STRING,
3396 .p_class = P_GLOBAL,
3397 .offset = GLOBAL_VAR(szNTPSignDSocketDirectory),
3398 .special = NULL,
3399 .enum_list = NULL,
3400 .flags = FLAG_ADVANCED,
3403 #ifdef WITH_UTMP
3405 .label = "utmp directory",
3406 .type = P_STRING,
3407 .p_class = P_GLOBAL,
3408 .offset = GLOBAL_VAR(szUtmpDir),
3409 .special = NULL,
3410 .enum_list = NULL,
3411 .flags = FLAG_ADVANCED,
3414 .label = "wtmp directory",
3415 .type = P_STRING,
3416 .p_class = P_GLOBAL,
3417 .offset = GLOBAL_VAR(szWtmpDir),
3418 .special = NULL,
3419 .enum_list = NULL,
3420 .flags = FLAG_ADVANCED,
3423 .label = "utmp",
3424 .type = P_BOOL,
3425 .p_class = P_GLOBAL,
3426 .offset = GLOBAL_VAR(bUtmp),
3427 .special = NULL,
3428 .enum_list = NULL,
3429 .flags = FLAG_ADVANCED,
3431 #endif
3433 .label = "default service",
3434 .type = P_STRING,
3435 .p_class = P_GLOBAL,
3436 .offset = GLOBAL_VAR(szDefaultService),
3437 .special = NULL,
3438 .enum_list = NULL,
3439 .flags = FLAG_ADVANCED,
3442 .label = "default",
3443 .type = P_STRING,
3444 .p_class = P_GLOBAL,
3445 .offset = GLOBAL_VAR(szDefaultService),
3446 .special = NULL,
3447 .enum_list = NULL,
3448 .flags = FLAG_ADVANCED,
3451 .label = "message command",
3452 .type = P_STRING,
3453 .p_class = P_GLOBAL,
3454 .offset = GLOBAL_VAR(szMsgCommand),
3455 .special = NULL,
3456 .enum_list = NULL,
3457 .flags = FLAG_ADVANCED,
3460 .label = "dfree cache time",
3461 .type = P_INTEGER,
3462 .p_class = P_LOCAL,
3463 .offset = LOCAL_VAR(iDfreeCacheTime),
3464 .special = NULL,
3465 .enum_list = NULL,
3466 .flags = FLAG_ADVANCED,
3469 .label = "dfree command",
3470 .type = P_STRING,
3471 .p_class = P_LOCAL,
3472 .offset = LOCAL_VAR(szDfree),
3473 .special = NULL,
3474 .enum_list = NULL,
3475 .flags = FLAG_ADVANCED,
3478 .label = "get quota command",
3479 .type = P_STRING,
3480 .p_class = P_GLOBAL,
3481 .offset = GLOBAL_VAR(szGetQuota),
3482 .special = NULL,
3483 .enum_list = NULL,
3484 .flags = FLAG_ADVANCED,
3487 .label = "set quota command",
3488 .type = P_STRING,
3489 .p_class = P_GLOBAL,
3490 .offset = GLOBAL_VAR(szSetQuota),
3491 .special = NULL,
3492 .enum_list = NULL,
3493 .flags = FLAG_ADVANCED,
3496 .label = "remote announce",
3497 .type = P_STRING,
3498 .p_class = P_GLOBAL,
3499 .offset = GLOBAL_VAR(szRemoteAnnounce),
3500 .special = NULL,
3501 .enum_list = NULL,
3502 .flags = FLAG_ADVANCED,
3505 .label = "remote browse sync",
3506 .type = P_STRING,
3507 .p_class = P_GLOBAL,
3508 .offset = GLOBAL_VAR(szRemoteBrowseSync),
3509 .special = NULL,
3510 .enum_list = NULL,
3511 .flags = FLAG_ADVANCED,
3514 .label = "nbt client socket address",
3515 .type = P_STRING,
3516 .p_class = P_GLOBAL,
3517 .offset = GLOBAL_VAR(nbt_client_socket_address),
3518 .special = NULL,
3519 .enum_list = NULL,
3520 .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
3523 .label = "socket address",
3524 .type = P_STRING,
3525 .p_class = P_GLOBAL,
3526 .offset = GLOBAL_VAR(nbt_client_socket_address),
3527 .special = NULL,
3528 .enum_list = NULL,
3529 .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
3532 .label = "nmbd bind explicit broadcast",
3533 .type = P_BOOL,
3534 .p_class = P_GLOBAL,
3535 .offset = GLOBAL_VAR(bNmbdBindExplicitBroadcast),
3536 .special = NULL,
3537 .enum_list = NULL,
3538 .flags = FLAG_ADVANCED,
3541 .label = "homedir map",