along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "includes.h"
+#include "lib/param/param.h"
+#include "lib/param/loadparm.h"
+#include "lib/param/param_global.h"
+#include "libcli/smb/smb_constants.h"
+
+#ifndef N_
+#define N_(x) x
+#endif
+
static const struct enum_list enum_protocol[] = {
+ {PROTOCOL_DEFAULT, "default"}, /* the caller decides what this means */
{PROTOCOL_SMB2_10, "SMB2"}, /* for now keep PROTOCOL_SMB2_10 */
- {PROTOCOL_SMB3_00, "SMB3"}, /* for now keep PROTOCOL_SMB3_00 */
+ {PROTOCOL_SMB3_11, "SMB3"}, /* for now keep PROTOCOL_SMB3_11 */
+ {PROTOCOL_SMB3_11, "SMB3_11"},
+ {PROTOCOL_SMB3_10, "SMB3_10"},
{PROTOCOL_SMB3_02, "SMB3_02"},
{PROTOCOL_SMB3_00, "SMB3_00"},
{PROTOCOL_SMB2_24, "SMB2_24"},
{SMB_SIGNING_IF_REQUIRED, "On"},
{SMB_SIGNING_IF_REQUIRED, "enabled"},
{SMB_SIGNING_IF_REQUIRED, "auto"},
+ {SMB_SIGNING_DESIRED, "desired"},
{SMB_SIGNING_REQUIRED, "required"},
{SMB_SIGNING_REQUIRED, "mandatory"},
{SMB_SIGNING_REQUIRED, "force"},
{-1, NULL}
};
+static const struct enum_list enum_smbd_profiling_level[] = {
+ {0, "off"}, {1, "count"}, {2, "on"}, {-1, NULL}
+};
+
/* ADS kerberos ticket verification options */
/* Note: We do not initialise the defaults union - it is not allowed in ANSI C
*
- * The FLAG_HIDE is explicit. Parameters set this way do NOT appear in any edit
- * screen in SWAT. This is used to exclude parameters as well as to squash all
- * parameters that have been duplicated by pseudonyms.
- *
- * NOTE: To display a parameter in BASIC view set FLAG_BASIC
- * Any parameter that does NOT have FLAG_ADVANCED will not disply at all
- * Set FLAG_SHARE and FLAG_PRINT to specifically display parameters in
- * respective views.
- *
- * NOTE2: Handling of duplicated (synonym) parameters:
- * Only the first occurance of a parameter should be enabled by FLAG_BASIC
- * and/or FLAG_ADVANCED. All duplicates following the first mention should be
- * set to FLAG_HIDE. ie: Make you must place the parameter that has the preferred
- * name first, and all synonyms must follow it with the FLAG_HIDE attribute.
+ * NOTE: Handling of duplicated (synonym) parameters:
+ * Parameters that are synonymous are stored in the same variable.
+ * All but the default spelling carry the flag FLAG_SYNONYM.
*/
#define GLOBAL_VAR(name) offsetof(struct loadparm_global, name)
#define LOCAL_VAR(name) offsetof(struct loadparm_service, name)
-static struct parm_struct parm_table[] = {
- {N_("Base Options"), P_SEP, P_SEPARATOR},
-
+struct parm_struct parm_table[] = {
{
.label = "dos charset",
.type = P_STRING,
.offset = GLOBAL_VAR(dos_charset),
.special = handle_dos_charset,
.enum_list = NULL,
- .flags = FLAG_ADVANCED
},
{
.label = "unix charset",
.offset = GLOBAL_VAR(unix_charset),
.special = handle_charset,
.enum_list = NULL,
- .flags = FLAG_ADVANCED
},
{
.label = "comment",
.offset = LOCAL_VAR(comment),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT
},
{
.label = "path",
.offset = LOCAL_VAR(path),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "directory",
.offset = LOCAL_VAR(path),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "workgroup",
.offset = GLOBAL_VAR(workgroup),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "realm",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(realm_original),
+ .offset = GLOBAL_VAR(realm),
.special = handle_realm,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "netbios name",
.offset = GLOBAL_VAR(netbios_name),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "netbios aliases",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(netbios_aliases),
.special = handle_netbios_aliases,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "netbios scope",
.offset = GLOBAL_VAR(netbios_scope),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "server string",
.offset = GLOBAL_VAR(server_string),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "interfaces",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(interfaces),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "bind interfaces only",
.offset = GLOBAL_VAR(bind_interfaces_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "config backend",
.offset = GLOBAL_VAR(config_backend),
.special = NULL,
.enum_list = enum_config_backend,
- .flags = FLAG_HIDE|FLAG_ADVANCED|FLAG_META,
},
{
.label = "server role",
.offset = GLOBAL_VAR(_server_role),
.special = NULL,
.enum_list = enum_server_role,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
-
- {N_("Security Options"), P_SEP, P_SEPARATOR},
-
{
.label = "security",
.type = P_ENUM,
.offset = GLOBAL_VAR(_security),
.special = NULL,
.enum_list = enum_security,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "auth methods",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(auth_methods),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "encrypt passwords",
.type = P_BOOL,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(encrypted_passwords),
+ .offset = GLOBAL_VAR(encrypt_passwords),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "client schannel",
.offset = GLOBAL_VAR(client_schannel),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "server schannel",
.offset = GLOBAL_VAR(server_schannel),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "allow trusted domains",
.offset = GLOBAL_VAR(allow_trusted_domains),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "map to guest",
.offset = GLOBAL_VAR(map_to_guest),
.special = NULL,
.enum_list = enum_map_to_guest,
- .flags = FLAG_ADVANCED,
},
{
.label = "null passwords",
.offset = GLOBAL_VAR(null_passwords),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
+ },
+ {
+ .label = "old password allowed period",
+ .type = P_INTEGER,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(old_password_allowed_period),
+ .special = NULL,
+ .enum_list = NULL,
},
{
.label = "obey pam restrictions",
.offset = GLOBAL_VAR(obey_pam_restrictions),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "password server",
.offset = GLOBAL_VAR(password_server),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "smb passwd file",
.offset = GLOBAL_VAR(smb_passwd_file),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "private dir",
.offset = GLOBAL_VAR(private_dir),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "private directory",
.offset = GLOBAL_VAR(private_dir),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "passdb backend",
.offset = GLOBAL_VAR(passdb_backend),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "algorithmic rid base",
.offset = GLOBAL_VAR(algorithmic_rid_base),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "root directory",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(rootdir),
+ .offset = GLOBAL_VAR(root_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "root dir",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(rootdir),
+ .offset = GLOBAL_VAR(root_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "root",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(rootdir),
+ .offset = GLOBAL_VAR(root_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "guest account",
.offset = GLOBAL_VAR(guest_account),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "enable privileges",
.offset = GLOBAL_VAR(enable_privileges),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.offset = GLOBAL_VAR(pam_password_change),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "passwd program",
.offset = GLOBAL_VAR(passwd_program),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "passwd chat",
.offset = GLOBAL_VAR(passwd_chat),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "passwd chat debug",
.offset = GLOBAL_VAR(passwd_chat_debug),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "passwd chat timeout",
.offset = GLOBAL_VAR(passwd_chat_timeout),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "check password script",
.offset = GLOBAL_VAR(check_password_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "username map",
.offset = GLOBAL_VAR(username_map),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "username level",
.type = P_INTEGER,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(usernamelevel),
+ .offset = GLOBAL_VAR(username_level),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "unix password sync",
.offset = GLOBAL_VAR(unix_password_sync),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "restrict anonymous",
.offset = GLOBAL_VAR(restrict_anonymous),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "lanman auth",
.offset = GLOBAL_VAR(lanman_auth),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ntlm auth",
.offset = GLOBAL_VAR(ntlm_auth),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "client NTLMv2 auth",
.offset = GLOBAL_VAR(client_ntlmv2_auth),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "client lanman auth",
.offset = GLOBAL_VAR(client_lanman_auth),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "client plaintext auth",
.offset = GLOBAL_VAR(client_plaintext_auth),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "client use spnego principal",
.offset = GLOBAL_VAR(client_use_spnego_principal),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "username",
.offset = LOCAL_VAR(username),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "user",
.offset = LOCAL_VAR(username),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "users",
.offset = LOCAL_VAR(username),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "invalid users",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(invalid_users),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "valid users",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(valid_users),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "admin users",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(admin_users),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "read list",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(readlist),
+ .offset = LOCAL_VAR(read_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "write list",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(writelist),
+ .offset = LOCAL_VAR(write_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "force user",
.offset = LOCAL_VAR(force_user),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "force group",
.offset = LOCAL_VAR(force_group),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "group",
.offset = LOCAL_VAR(force_group),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "read only",
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE,
+ },
+ {
+ .label = "spotlight",
+ .type = P_BOOL,
+ .p_class = P_LOCAL,
+ .offset = LOCAL_VAR(spotlight),
+ .special = NULL,
+ .enum_list = NULL,
},
{
.label = "write ok",
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "writeable",
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "writable",
.offset = LOCAL_VAR(read_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "acl check permissions",
.offset = LOCAL_VAR(acl_check_permissions),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "acl group control",
.offset = LOCAL_VAR(acl_group_control),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "acl map full control",
.offset = LOCAL_VAR(acl_map_full_control),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "acl allow execute always",
.offset = LOCAL_VAR(acl_allow_execute_always),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.offset = LOCAL_VAR(create_mask),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "create mode",
.offset = LOCAL_VAR(create_mask),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "force create mode",
.offset = LOCAL_VAR(force_create_mode),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "directory mask",
.offset = LOCAL_VAR(directory_mask),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "directory mode",
.offset = LOCAL_VAR(directory_mask),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
+ .flags = FLAG_SYNONYM,
},
{
.label = "force directory mode",
.offset = LOCAL_VAR(force_directory_mode),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "force unknown acl user",
.offset = LOCAL_VAR(force_unknown_acl_user),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "inherit permissions",
.type = P_BOOL,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(inherit_perms),
+ .offset = LOCAL_VAR(inherit_permissions),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "inherit acls",
.offset = LOCAL_VAR(inherit_acls),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "inherit owner",
.offset = LOCAL_VAR(inherit_owner),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "guest only",
.offset = LOCAL_VAR(guest_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "only guest",
.offset = LOCAL_VAR(guest_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "administrative share",
.offset = LOCAL_VAR(administrative_share),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.offset = LOCAL_VAR(guest_ok),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "public",
.offset = LOCAL_VAR(guest_ok),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "only user",
.type = P_BOOL,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(onlyuser),
+ .offset = LOCAL_VAR(only_user),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "hosts allow",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(hosts_allow),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "allow hosts",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(hosts_allow),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "hosts deny",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(hosts_deny),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_GLOBAL | FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "deny hosts",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(hosts_deny),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "preload modules",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(preload_modules),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "dedicated keytab file",
.offset = GLOBAL_VAR(dedicated_keytab_file),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "kerberos method",
.offset = GLOBAL_VAR(kerberos_method),
.special = NULL,
.enum_list = enum_kerberos_method,
- .flags = FLAG_ADVANCED,
},
{
.label = "map untrusted to domain",
.offset = GLOBAL_VAR(map_untrusted_to_domain),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
-
-
- {N_("Logging Options"), P_SEP, P_SEPARATOR},
-
{
.label = "log level",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(loglevel),
+ .offset = GLOBAL_VAR(log_level),
.special = handle_debug_list,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "debuglevel",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(loglevel),
+ .offset = GLOBAL_VAR(log_level),
.special = handle_debug_list,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "syslog",
.offset = GLOBAL_VAR(syslog),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "syslog only",
.offset = GLOBAL_VAR(syslog_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "log file",
.offset = GLOBAL_VAR(logfile),
.special = handle_logfile,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ },
+ {
+ .label = "logging",
+ .type = P_STRING,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(logging),
+ .special = NULL,
+ .enum_list = NULL,
},
{
.label = "max log size",
.offset = GLOBAL_VAR(max_log_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "debug timestamp",
.offset = GLOBAL_VAR(timestamp_logs),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "timestamp logs",
.offset = GLOBAL_VAR(timestamp_logs),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "debug prefix timestamp",
.offset = GLOBAL_VAR(debug_prefix_timestamp),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "debug hires timestamp",
.offset = GLOBAL_VAR(debug_hires_timestamp),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "debug pid",
.offset = GLOBAL_VAR(debug_pid),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "debug uid",
.offset = GLOBAL_VAR(debug_uid),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "debug class",
.offset = GLOBAL_VAR(debug_class),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "enable core files",
.offset = GLOBAL_VAR(enable_core_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("Protocol Options"), P_SEP, P_SEPARATOR},
-
{
.label = "allocation roundup size",
.type = P_BYTES,
.offset = LOCAL_VAR(allocation_roundup_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "aio read size",
.offset = LOCAL_VAR(aio_read_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "aio write size",
.offset = LOCAL_VAR(aio_write_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "aio write behind",
.offset = LOCAL_VAR(aio_write_behind),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "smb ports",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(smb_ports),
- .special = NULL,
+ .special = handle_smb_ports,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "large readwrite",
.offset = GLOBAL_VAR(large_readwrite),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "server max protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(srv_maxprotocol),
+ .offset = GLOBAL_VAR(server_max_protocol),
.special = NULL,
.enum_list = enum_protocol,
- .flags = FLAG_ADVANCED,
},
{
.label = "max protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(srv_maxprotocol),
+ .offset = GLOBAL_VAR(server_max_protocol),
.special = NULL,
.enum_list = enum_protocol,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(srv_maxprotocol),
+ .offset = GLOBAL_VAR(server_max_protocol),
.special = NULL,
.enum_list = enum_protocol,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "server min protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(srv_minprotocol),
+ .offset = GLOBAL_VAR(server_min_protocol),
.special = NULL,
.enum_list = enum_protocol,
- .flags = FLAG_ADVANCED,
},
{
.label = "min protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(srv_minprotocol),
+ .offset = GLOBAL_VAR(server_min_protocol),
.special = NULL,
.enum_list = enum_protocol,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "client max protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(cli_maxprotocol),
+ .offset = GLOBAL_VAR(_client_max_protocol),
.special = NULL,
.enum_list = enum_protocol,
- .flags = FLAG_ADVANCED,
},
{
.label = "client min protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(cli_minprotocol),
+ .offset = GLOBAL_VAR(client_min_protocol),
.special = NULL,
.enum_list = enum_protocol,
- .flags = FLAG_ADVANCED,
},
{
.label = "unicode",
.label = "min receivefile size",
.type = P_BYTES,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(iminreceivefile),
+ .offset = GLOBAL_VAR(min_receivefile_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "read raw",
.type = P_BOOL,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(bReadRaw),
+ .offset = GLOBAL_VAR(read_raw),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "write raw",
.type = P_BOOL,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(bWriteRaw),
+ .offset = GLOBAL_VAR(write_raw),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "disable netbios",
.offset = GLOBAL_VAR(disable_netbios),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "reset on zero vc",
.offset = GLOBAL_VAR(reset_on_zero_vc),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "log writeable files on exit",
.offset = GLOBAL_VAR(log_writeable_files_on_exit),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "defer sharing violations",
.offset = GLOBAL_VAR(defer_sharing_violations),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "ea support",
.offset = LOCAL_VAR(ea_support),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "nt acl support",
.offset = LOCAL_VAR(nt_acl_support),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "nt pipe support",
.offset = GLOBAL_VAR(nt_pipe_support),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "nt status support",
.offset = GLOBAL_VAR(nt_status_support),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ },
+ {
+ .label = "smbd profiling level",
+ .type = P_ENUM,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(smbd_profiling_level),
+ .special = NULL,
+ .enum_list = enum_smbd_profiling_level,
},
{
.label = "profile acls",
.offset = LOCAL_VAR(profile_acls),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
{
.label = "map acl inherit",
.offset = LOCAL_VAR(map_acl_inherit),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "afs share",
.offset = LOCAL_VAR(afs_share),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "max mux",
.type = P_INTEGER,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(maxmux),
+ .offset = GLOBAL_VAR(max_mux),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "max xmit",
.offset = GLOBAL_VAR(max_xmit),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "name resolve order",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(name_resolve_order),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "max ttl",
.offset = GLOBAL_VAR(max_ttl),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "max wins ttl",
.offset = GLOBAL_VAR(max_wins_ttl),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "min wins ttl",
.offset = GLOBAL_VAR(min_wins_ttl),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "time server",
.offset = GLOBAL_VAR(time_server),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "unix extensions",
.offset = GLOBAL_VAR(unix_extensions),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "use spnego",
.offset = GLOBAL_VAR(use_spnego),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "client signing",
.offset = GLOBAL_VAR(client_signing),
.special = NULL,
.enum_list = enum_smb_signing_vals,
- .flags = FLAG_ADVANCED,
},
{
.label = "server signing",
.offset = GLOBAL_VAR(server_signing),
.special = NULL,
.enum_list = enum_smb_signing_vals,
- .flags = FLAG_ADVANCED,
},
{
.label = "smb encrypt",
.offset = LOCAL_VAR(smb_encrypt),
.special = NULL,
.enum_list = enum_smb_signing_vals,
- .flags = FLAG_ADVANCED,
},
{
.label = "client use spnego",
.offset = GLOBAL_VAR(client_use_spnego),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "client ldap sasl wrapping",
.offset = GLOBAL_VAR(client_ldap_sasl_wrapping),
.special = NULL,
.enum_list = enum_ldap_sasl_wrapping,
- .flags = FLAG_ADVANCED,
},
{
.label = "enable asu support",
.offset = GLOBAL_VAR(enable_asu_support),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "svcctl list",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(svcctl_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "cldap port",
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(dgram_port),
.special = NULL,
- .enum_list = NULL
+ .enum_list = NULL,
+ .flags = FLAG_DEPRECATED
},
{
.label = "nbt port",
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(nbt_port),
.special = NULL,
- .enum_list = NULL
+ .enum_list = NULL,
+ .flags = FLAG_DEPRECATED
},
{
.label = "krb5 port",
.offset = LOCAL_VAR(durable_handles),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("Tuning Options"), P_SEP, P_SEPARATOR},
-
{
.label = "block size",
.type = P_BYTES,
.offset = LOCAL_VAR(block_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "deadtime",
.offset = GLOBAL_VAR(deadtime),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "getwd cache",
.offset = GLOBAL_VAR(getwd_cache),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "keepalive",
.offset = GLOBAL_VAR(keepalive),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "change notify",
.type = P_BOOL,
- .p_class = P_LOCAL,
- .offset = LOCAL_VAR(change_notify),
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(change_notify),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "directory name cache size",
.offset = LOCAL_VAR(directory_name_cache_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "kernel change notify",
.type = P_BOOL,
- .p_class = P_LOCAL,
- .offset = LOCAL_VAR(kernel_change_notify),
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(kernel_change_notify),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "lpq cache time",
.offset = GLOBAL_VAR(lpq_cache_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "max smbd processes",
.offset = GLOBAL_VAR(max_smbd_processes),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "max connections",
.offset = LOCAL_VAR(max_connections),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "max disk size",
.type = P_BYTES,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(maxdisksize),
+ .offset = GLOBAL_VAR(max_disk_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "max open files",
.offset = GLOBAL_VAR(max_open_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "min print space",
.type = P_INTEGER,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(minprintspace),
+ .offset = LOCAL_VAR(min_print_space),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "socket options",
.offset = GLOBAL_VAR(socket_options),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "strict allocate",
.offset = LOCAL_VAR(strict_allocate),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
- .label = "strict sync",
+ .label = "strict rename",
.type = P_BOOL,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(strict_sync),
+ .offset = LOCAL_VAR(strict_rename),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
- .label = "sync always",
+ .label = "strict sync",
.type = P_BOOL,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(syncalways),
+ .offset = LOCAL_VAR(strict_sync),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
- .label = "use mmap",
+ .label = "sync always",
.type = P_BOOL,
- .p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(use_mmap),
+ .p_class = P_LOCAL,
+ .offset = LOCAL_VAR(sync_always),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
- .label = "use ntdb",
+ .label = "use mmap",
.type = P_BOOL,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(use_ntdb),
+ .offset = GLOBAL_VAR(use_mmap),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "use sendfile",
.offset = LOCAL_VAR(_use_sendfile),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "hostname lookups",
.offset = GLOBAL_VAR(hostname_lookups),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "write cache size",
.offset = LOCAL_VAR(write_cache_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "name cache timeout",
.offset = GLOBAL_VAR(name_cache_timeout),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ctdbd socket",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(ctdbd_socket),
+ .offset = GLOBAL_VAR(_ctdbd_socket),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "cluster addresses",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(cluster_addresses),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "clustering",
.offset = GLOBAL_VAR(clustering),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "ctdb timeout",
.offset = GLOBAL_VAR(ctdb_timeout),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "ctdb locktime warn threshold",
.offset = GLOBAL_VAR(ctdb_locktime_warn_threshold),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "smb2 max read",
.offset = GLOBAL_VAR(smb2_max_read),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "smb2 max write",
.offset = GLOBAL_VAR(smb2_max_write),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "smb2 max trans",
.offset = GLOBAL_VAR(smb2_max_trans),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "smb2 max credits",
.type = P_INTEGER,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(ismb2_max_credits),
- .special = NULL,
+ .offset = GLOBAL_VAR(smb2_max_credits),
+ .special = handle_smb2_max_credits,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("Printing Options"), P_SEP, P_SEPARATOR},
-
{
.label = "max reported print jobs",
.type = P_INTEGER,
.offset = LOCAL_VAR(max_reported_print_jobs),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "max print jobs",
.type = P_INTEGER,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(iMaxPrintJobs),
+ .offset = LOCAL_VAR(max_print_jobs),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "load printers",
.offset = GLOBAL_VAR(load_printers),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "printcap cache time",
.offset = GLOBAL_VAR(printcap_cache_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "printcap name",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szPrintcapname),
+ .offset = GLOBAL_VAR(printcap_name),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "printcap",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szPrintcapname),
+ .offset = GLOBAL_VAR(printcap_name),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "printable",
.offset = LOCAL_VAR(printable),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "print notify backchannel",
.offset = LOCAL_VAR(print_notify_backchannel),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "print ok",
.offset = LOCAL_VAR(printable),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "printing",
.offset = LOCAL_VAR(printing),
.special = handle_printing,
.enum_list = enum_printing,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "cups options",
.offset = LOCAL_VAR(cups_options),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "cups server",
.offset = GLOBAL_VAR(cups_server),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "cups encrypt",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(CupsEncrypt),
+ .offset = GLOBAL_VAR(cups_encrypt),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.offset = GLOBAL_VAR(cups_connection_timeout),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "iprint server",
.offset = GLOBAL_VAR(iprint_server),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "print command",
.offset = LOCAL_VAR(print_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "disable spoolss",
.offset = GLOBAL_VAR(_disable_spoolss),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "enable spoolss",
.offset = GLOBAL_VAR(_disable_spoolss),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "lpq command",
.offset = LOCAL_VAR(lpq_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "lprm command",
.offset = LOCAL_VAR(lprm_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "lppause command",
.offset = LOCAL_VAR(lppause_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "lpresume command",
.offset = LOCAL_VAR(lpresume_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "queuepause command",
.offset = LOCAL_VAR(queuepause_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "queueresume command",
.offset = LOCAL_VAR(queueresume_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT | FLAG_GLOBAL,
},
{
.label = "addport command",
.offset = GLOBAL_VAR(addport_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "enumports command",
.offset = GLOBAL_VAR(enumports_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "addprinter command",
.offset = GLOBAL_VAR(addprinter_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "deleteprinter command",
.offset = GLOBAL_VAR(deleteprinter_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "show add printer wizard",
.type = P_BOOL,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(ms_add_printer_wizard),
+ .offset = GLOBAL_VAR(show_add_printer_wizard),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "os2 driver map",
.offset = GLOBAL_VAR(os2_driver_map),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.offset = LOCAL_VAR(_printername),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "printer",
.offset = LOCAL_VAR(_printername),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "use client driver",
.offset = LOCAL_VAR(use_client_driver),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "default devmode",
.offset = LOCAL_VAR(default_devmode),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "force printername",
.offset = LOCAL_VAR(force_printername),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
{
.label = "printjob username",
.offset = LOCAL_VAR(printjob_username),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_PRINT,
},
-
- {N_("Filename Handling"), P_SEP, P_SEPARATOR},
-
{
.label = "mangling method",
.type = P_STRING,
.offset = GLOBAL_VAR(mangling_method),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "mangle prefix",
.offset = GLOBAL_VAR(mangle_prefix),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.offset = LOCAL_VAR(default_case),
.special = NULL,
.enum_list = enum_case,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "case sensitive",
.offset = LOCAL_VAR(case_sensitive),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "casesignames",
.offset = LOCAL_VAR(case_sensitive),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL | FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "preserve case",
.offset = LOCAL_VAR(preserve_case),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "short preserve case",
.offset = LOCAL_VAR(short_preserve_case),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "mangling char",
.offset = LOCAL_VAR(mangling_char),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "hide dot files",
.offset = LOCAL_VAR(hide_dot_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "hide special files",
.offset = LOCAL_VAR(hide_special_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "hide unreadable",
.offset = LOCAL_VAR(hide_unreadable),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "hide unwriteable files",
.offset = LOCAL_VAR(hide_unwriteable_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "delete veto files",
.offset = LOCAL_VAR(delete_veto_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "veto files",
.offset = LOCAL_VAR(veto_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "hide files",
.offset = LOCAL_VAR(hide_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "veto oplock files",
.offset = LOCAL_VAR(veto_oplock_files),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "map archive",
.offset = LOCAL_VAR(map_archive),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "map hidden",
.offset = LOCAL_VAR(map_hidden),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "map system",
.offset = LOCAL_VAR(map_system),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "map readonly",
.offset = LOCAL_VAR(map_readonly),
.special = NULL,
.enum_list = enum_map_readonly,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "mangled names",
.offset = LOCAL_VAR(mangled_names),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "max stat cache size",
.offset = GLOBAL_VAR(max_stat_cache_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "stat cache",
.offset = GLOBAL_VAR(stat_cache),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "store dos attributes",
.offset = LOCAL_VAR(store_dos_attributes),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "dmapi support",
.offset = LOCAL_VAR(dmapi_support),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
-
-
- {N_("Domain Options"), P_SEP, P_SEPARATOR},
-
{
.label = "machine password timeout",
.type = P_INTEGER,
.offset = GLOBAL_VAR(machine_password_timeout),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_WIZARD,
},
-
- {N_("Logon Options"), P_SEP, P_SEPARATOR},
-
{
.label = "add user script",
.type = P_STRING,
.offset = GLOBAL_VAR(add_user_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "rename user script",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(renameuser_script),
+ .offset = GLOBAL_VAR(rename_user_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "delete user script",
.offset = GLOBAL_VAR(delete_user_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "add group script",
.offset = GLOBAL_VAR(add_group_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "delete group script",
.offset = GLOBAL_VAR(delete_group_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "add user to group script",
.offset = GLOBAL_VAR(add_user_to_group_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "delete user from group script",
.offset = GLOBAL_VAR(delete_user_from_group_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "set primary group script",
.offset = GLOBAL_VAR(set_primary_group_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "add machine script",
.offset = GLOBAL_VAR(add_machine_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "shutdown script",
.offset = GLOBAL_VAR(shutdown_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "abort shutdown script",
.offset = GLOBAL_VAR(abort_shutdown_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "username map script",
.offset = GLOBAL_VAR(username_map_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "username map cache time",
.offset = GLOBAL_VAR(username_map_cache_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "logon script",
.offset = GLOBAL_VAR(logon_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "logon path",
.offset = GLOBAL_VAR(logon_path),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "logon drive",
.offset = GLOBAL_VAR(logon_drive),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "logon home",
.offset = GLOBAL_VAR(logon_home),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "domain logons",
.offset = GLOBAL_VAR(_domain_logons),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "init logon delayed hosts",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(init_logon_delayed_hosts),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.offset = GLOBAL_VAR(init_logon_delay),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("Browse Options"), P_SEP, P_SEPARATOR},
-
{
.label = "os level",
.type = P_INTEGER,
.offset = GLOBAL_VAR(os_level),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "lm announce",
.offset = GLOBAL_VAR(lm_announce),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_ADVANCED,
},
{
.label = "lm interval",
.offset = GLOBAL_VAR(lm_interval),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "preferred master",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(iPreferredMaster),
+ .offset = GLOBAL_VAR(_preferred_master),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "prefered master",
.type = P_ENUM,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(iPreferredMaster),
+ .offset = GLOBAL_VAR(_preferred_master),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "local master",
.offset = GLOBAL_VAR(local_master),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "domain master",
.offset = GLOBAL_VAR(_domain_master),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "browse list",
.offset = GLOBAL_VAR(browse_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "browseable",
.offset = LOCAL_VAR(browseable),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "browsable",
.offset = LOCAL_VAR(browseable),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "access based share enum",
.offset = LOCAL_VAR(access_based_share_enum),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE
},
{
.label = "enhanced browsing",
.offset = GLOBAL_VAR(enhanced_browsing),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("WINS Options"), P_SEP, P_SEPARATOR},
-
{
.label = "dns proxy",
.type = P_BOOL,
.offset = GLOBAL_VAR(wins_dns_proxy),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "wins proxy",
.offset = GLOBAL_VAR(wins_proxy),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "wins server",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(wins_server_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "wins support",
.offset = GLOBAL_VAR(we_are_a_wins_server),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_WIZARD,
},
{
.label = "wins hook",
.offset = GLOBAL_VAR(wins_hook),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("Locking Options"), P_SEP, P_SEPARATOR},
-
{
.label = "blocking locks",
.type = P_BOOL,
.offset = LOCAL_VAR(blocking_locks),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "csc policy",
.offset = LOCAL_VAR(csc_policy),
.special = NULL,
.enum_list = enum_csc_policy,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "fake oplocks",
.offset = LOCAL_VAR(fake_oplocks),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "kernel oplocks",
.offset = LOCAL_VAR(kernel_oplocks),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "kernel share modes",
.offset = LOCAL_VAR(kernel_share_modes),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
+ },
+ {
+ .label = "smb2 leases",
+ .type = P_BOOL,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(smb2_leases),
+ .special = NULL,
+ .enum_list = NULL,
},
{
.label = "locking",
.offset = LOCAL_VAR(locking),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "lock spin time",
.offset = GLOBAL_VAR(lock_spin_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "oplocks",
.offset = LOCAL_VAR(oplocks),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "level2 oplocks",
.offset = LOCAL_VAR(level2_oplocks),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "oplock break wait time",
.offset = GLOBAL_VAR(oplock_break_wait_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "oplock contention limit",
.offset = LOCAL_VAR(oplock_contention_limit),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "posix locking",
.offset = LOCAL_VAR(posix_locking),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "strict locking",
.offset = LOCAL_VAR(strict_locking),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
-
- {N_("Ldap Options"), P_SEP, P_SEPARATOR},
-
{
.label = "ldap admin dn",
.type = P_STRING,
.offset = GLOBAL_VAR(ldap_admin_dn),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap delete dn",
.offset = GLOBAL_VAR(ldap_delete_dn),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap group suffix",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szLdapGroupSuffix),
+ .offset = GLOBAL_VAR(_ldap_group_suffix),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap idmap suffix",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szLdapIdmapSuffix),
+ .offset = GLOBAL_VAR(_ldap_idmap_suffix),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap machine suffix",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szLdapMachineSuffix),
+ .offset = GLOBAL_VAR(_ldap_machine_suffix),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap passwd sync",
.offset = GLOBAL_VAR(ldap_passwd_sync),
.special = NULL,
.enum_list = enum_ldap_passwd_sync,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap password sync",
.offset = GLOBAL_VAR(ldap_passwd_sync),
.special = NULL,
.enum_list = enum_ldap_passwd_sync,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "ldap replication sleep",
.offset = GLOBAL_VAR(ldap_replication_sleep),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap suffix",
.offset = GLOBAL_VAR(ldap_suffix),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap ssl",
.offset = GLOBAL_VAR(ldap_ssl),
.special = NULL,
.enum_list = enum_ldap_ssl,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap ssl ads",
.offset = GLOBAL_VAR(ldap_ssl_ads),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap deref",
.offset = GLOBAL_VAR(ldap_deref),
.special = NULL,
.enum_list = enum_ldap_deref,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap follow referral",
.offset = GLOBAL_VAR(ldap_follow_referral),
.special = NULL,
.enum_list = enum_bool_auto,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap timeout",
.offset = GLOBAL_VAR(ldap_timeout),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap connection timeout",
.offset = GLOBAL_VAR(ldap_connection_timeout),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap page size",
.offset = GLOBAL_VAR(ldap_page_size),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap user suffix",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szLdapUserSuffix),
+ .offset = GLOBAL_VAR(_ldap_user_suffix),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap debug level",
.offset = GLOBAL_VAR(ldap_debug_level),
.special = handle_ldap_debug_level,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ldap debug threshold",
.offset = GLOBAL_VAR(ldap_debug_threshold),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("EventLog Options"), P_SEP, P_SEPARATOR},
-
{
.label = "eventlog list",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(eventlog_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL | FLAG_SHARE,
},
-
- {N_("Miscellaneous Options"), P_SEP, P_SEPARATOR},
-
{
.label = "add share command",
.type = P_STRING,
.offset = GLOBAL_VAR(add_share_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "change share command",
.offset = GLOBAL_VAR(change_share_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "delete share command",
.offset = GLOBAL_VAR(delete_share_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "config file",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szConfigFile),
+ .offset = GLOBAL_VAR(next_configfile),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE|FLAG_META,
},
{
.label = "preload",
.offset = GLOBAL_VAR(auto_services),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "auto services",
.offset = GLOBAL_VAR(auto_services),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "lock directory",
.offset = GLOBAL_VAR(lock_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "lock dir",
.offset = GLOBAL_VAR(lock_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "state directory",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szStateDir),
+ .offset = GLOBAL_VAR(state_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "cache directory",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szCacheDir),
+ .offset = GLOBAL_VAR(cache_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "pid directory",
.offset = GLOBAL_VAR(pid_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ntp signd socket directory",
.offset = GLOBAL_VAR(ntp_signd_socket_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
#ifdef WITH_UTMP
.offset = GLOBAL_VAR(utmp_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "wtmp directory",
.offset = GLOBAL_VAR(wtmp_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "utmp",
.offset = GLOBAL_VAR(utmp),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
#endif
{
.offset = GLOBAL_VAR(defaultservice),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "default",
.offset = GLOBAL_VAR(defaultservice),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "message command",
.offset = GLOBAL_VAR(message_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "dfree cache time",
.offset = LOCAL_VAR(dfree_cache_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "dfree command",
.offset = LOCAL_VAR(dfree_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "get quota command",
.offset = GLOBAL_VAR(get_quota_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "set quota command",
.offset = GLOBAL_VAR(set_quota_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "remote announce",
.offset = GLOBAL_VAR(remote_announce),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "remote browse sync",
.offset = GLOBAL_VAR(remote_browse_sync),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "nbt client socket address",
.offset = GLOBAL_VAR(nbt_client_socket_address),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "socket address",
.offset = GLOBAL_VAR(nbt_client_socket_address),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "nmbd bind explicit broadcast",
.offset = GLOBAL_VAR(nmbd_bind_explicit_broadcast),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "homedir map",
.offset = GLOBAL_VAR(homedir_map),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "afs username map",
.offset = GLOBAL_VAR(afs_username_map),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "afs token lifetime",
.offset = GLOBAL_VAR(afs_token_lifetime),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "log nt token command",
.offset = GLOBAL_VAR(log_nt_token_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "NIS homedir",
.type = P_BOOL,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(nis_home_map),
+ .offset = GLOBAL_VAR(nis_homedir),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "-valid",
.offset = LOCAL_VAR(valid),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
},
{
.label = "copy",
.type = P_STRING,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(szCopy),
+ .offset = LOCAL_VAR(copy),
.special = handle_copy,
.enum_list = NULL,
- .flags = FLAG_HIDE,
},
{
.label = "include",
.type = P_STRING,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(szInclude),
+ .offset = LOCAL_VAR(include),
.special = handle_include,
.enum_list = NULL,
- .flags = FLAG_HIDE|FLAG_META,
},
{
.label = "preexec",
.offset = LOCAL_VAR(preexec),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "exec",
.offset = LOCAL_VAR(preexec),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ .flags = FLAG_SYNONYM,
},
{
.label = "preexec close",
.offset = LOCAL_VAR(preexec_close),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "postexec",
.offset = LOCAL_VAR(postexec),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "root preexec",
.offset = LOCAL_VAR(root_preexec),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "root preexec close",
.offset = LOCAL_VAR(root_preexec_close),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "root postexec",
.offset = LOCAL_VAR(root_postexec),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "available",
.type = P_BOOL,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(bAvailable),
+ .offset = LOCAL_VAR(available),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE | FLAG_PRINT,
},
{
.label = "registry shares",
.offset = GLOBAL_VAR(registry_shares),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "usershare allow guests",
.offset = GLOBAL_VAR(usershare_allow_guests),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "usershare max shares",
.offset = GLOBAL_VAR(usershare_max_shares),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "usershare owner only",
.offset = GLOBAL_VAR(usershare_owner_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "usershare path",
.offset = GLOBAL_VAR(usershare_path),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "usershare prefix allow list",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(usershare_prefix_allow_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "usershare prefix deny list",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(usershare_prefix_deny_list),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "usershare template share",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szUsershareTemplateShare),
+ .offset = GLOBAL_VAR(usershare_template_share),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "volume",
.offset = LOCAL_VAR(volume),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "fstype",
.offset = LOCAL_VAR(fstype),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "allow insecure wide links",
.offset = GLOBAL_VAR(allow_insecure_wide_links),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "wide links",
.type = P_BOOL,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(bWidelinks),
+ .offset = LOCAL_VAR(wide_links),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "follow symlinks",
.offset = LOCAL_VAR(follow_symlinks),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "dont descend",
.offset = LOCAL_VAR(dont_descend),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "magic script",
.offset = LOCAL_VAR(magic_script),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "magic output",
.offset = LOCAL_VAR(magic_output),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "delete readonly",
.offset = LOCAL_VAR(delete_readonly),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "dos filemode",
.offset = LOCAL_VAR(dos_filemode),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "dos filetimes",
.offset = LOCAL_VAR(dos_filetimes),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "dos filetime resolution",
.offset = LOCAL_VAR(dos_filetime_resolution),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE | FLAG_GLOBAL,
},
{
.label = "fake directory create times",
.offset = LOCAL_VAR(fake_directory_create_times),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "async smb echo handler",
.offset = GLOBAL_VAR(async_smb_echo_handler),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
.label = "panic action",
.offset = GLOBAL_VAR(panic_action),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "perfcount module",
.offset = GLOBAL_VAR(perfcount_module),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("VFS module options"), P_SEP, P_SEPARATOR},
-
{
.label = "vfs objects",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(vfs_objects),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "vfs object",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(vfs_objects),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
-
-
- {N_("MSDFS options"), P_SEP, P_SEPARATOR},
-
{
.label = "msdfs root",
.type = P_BOOL,
.offset = LOCAL_VAR(msdfs_root),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
.label = "msdfs proxy",
.offset = LOCAL_VAR(msdfs_proxy),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_SHARE,
+ },
+ {
+ .label = "msdfs shuffle referrals",
+ .type = P_BOOL,
+ .p_class = P_LOCAL,
+ .offset = LOCAL_VAR(msdfs_shuffle_referrals),
+ .special = NULL,
+ .enum_list = NULL,
},
{
.label = "host msdfs",
.offset = GLOBAL_VAR(host_msdfs),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("Winbind options"), P_SEP, P_SEPARATOR},
-
{
.label = "passdb expand explicit",
.type = P_BOOL,
.offset = GLOBAL_VAR(passdb_expand_explicit),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "idmap backend",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szIdmapBackend),
+ .offset = GLOBAL_VAR(idmap_backend),
.special = handle_idmap_backend,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "idmap cache time",
.offset = GLOBAL_VAR(idmap_cache_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "idmap negative cache time",
.offset = GLOBAL_VAR(idmap_negative_cache_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "idmap uid",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szIdmapUID),
+ .offset = GLOBAL_VAR(idmap_uid),
.special = handle_idmap_uid,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "winbind uid",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szIdmapUID),
+ .offset = GLOBAL_VAR(idmap_uid),
.special = handle_idmap_uid,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "idmap gid",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szIdmapGID),
+ .offset = GLOBAL_VAR(idmap_gid),
.special = handle_idmap_gid,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_DEPRECATED,
+ .flags = FLAG_DEPRECATED,
},
{
.label = "winbind gid",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(szIdmapGID),
+ .offset = GLOBAL_VAR(idmap_gid),
.special = handle_idmap_gid,
.enum_list = NULL,
- .flags = FLAG_HIDE,
+ .flags = FLAG_SYNONYM,
},
{
.label = "template homedir",
.offset = GLOBAL_VAR(template_homedir),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "template shell",
.offset = GLOBAL_VAR(template_shell),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind separator",
.offset = GLOBAL_VAR(winbind_separator),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind cache time",
.offset = GLOBAL_VAR(winbind_cache_time),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind reconnect delay",
.offset = GLOBAL_VAR(winbind_reconnect_delay),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
+ },
+ {
+ .label = "winbind request timeout",
+ .type = P_INTEGER,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(winbind_request_timeout),
+ .special = NULL,
+ .enum_list = NULL,
},
{
.label = "winbind max clients",
.offset = GLOBAL_VAR(winbind_max_clients),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind enum users",
.offset = GLOBAL_VAR(winbind_enum_users),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind enum groups",
.offset = GLOBAL_VAR(winbind_enum_groups),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind use default domain",
.offset = GLOBAL_VAR(winbind_use_default_domain),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind trusted domains only",
.offset = GLOBAL_VAR(winbind_trusted_domains_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind nested groups",
.offset = GLOBAL_VAR(winbind_nested_groups),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind expand groups",
.offset = GLOBAL_VAR(winbind_expand_groups),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind nss info",
- .type = P_LIST,
+ .type = P_CMDLIST,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(winbind_nss_info),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind refresh tickets",
.offset = GLOBAL_VAR(winbind_refresh_tickets),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind offline logon",
.offset = GLOBAL_VAR(winbind_offline_logon),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind normalize names",
.offset = GLOBAL_VAR(winbind_normalize_names),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind rpc only",
.offset = GLOBAL_VAR(winbind_rpc_only),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "create krb5 conf",
.offset = GLOBAL_VAR(create_krb5_conf),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "ncalrpc dir",
.offset = GLOBAL_VAR(ncalrpc_dir),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind max domain connections",
.type = P_INTEGER,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(winbindMaxDomainConnections),
+ .offset = GLOBAL_VAR(_winbind_max_domain_connections),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbindd socket directory",
.offset = GLOBAL_VAR(winbindd_socket_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbindd privileged socket directory",
.offset = GLOBAL_VAR(winbindd_privileged_socket_directory),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "winbind sealed pipes",
.offset = GLOBAL_VAR(winbind_sealed_pipes),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "neutralize nt4 emulation",
.offset = GLOBAL_VAR(neutralize_nt4_emulation),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "reject md5 servers",
.offset = GLOBAL_VAR(reject_md5_servers),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "require strong key",
.offset = GLOBAL_VAR(require_strong_key),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("DNS options"), P_SEP, P_SEPARATOR},
{
.label = "allow dns updates",
.type = P_ENUM,
.offset = GLOBAL_VAR(allow_dns_updates),
.special = NULL,
.enum_list = enum_dns_update_settings,
- .flags = FLAG_ADVANCED,
},
{
.label = "dns forwarder",
.offset = GLOBAL_VAR(dns_forwarder),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "dns update command",
.offset = GLOBAL_VAR(dns_update_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "nsupdate command",
.offset = GLOBAL_VAR(nsupdate_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "rndc command",
.offset = GLOBAL_VAR(rndc_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "multicast dns register",
.offset = GLOBAL_VAR(multicast_dns_register),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
-
- {N_("AD DC options"), P_SEP, P_SEPARATOR},
-
{
.label = "samba kcc command",
.type = P_CMDLIST,
.offset = GLOBAL_VAR(samba_kcc_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "server services",
.offset = GLOBAL_VAR(spn_update_command),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "share backend",
.offset = GLOBAL_VAR(allow_nt4_crypto),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
{
.label = "reject md5 clients",
.offset = GLOBAL_VAR(reject_md5_clients),
.special = NULL,
.enum_list = NULL,
- .flags = FLAG_ADVANCED,
},
-
- {N_("TLS options"), P_SEP, P_SEPARATOR},
-
{
.label = "tls enabled",
.type = P_BOOL,
.label = "tls keyfile",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(tls_keyfile),
+ .offset = GLOBAL_VAR(_tls_keyfile),
.special = NULL,
.enum_list = NULL
},
.label = "tls certfile",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(tls_certfile),
+ .offset = GLOBAL_VAR(_tls_certfile),
.special = NULL,
.enum_list = NULL
},
.label = "tls cafile",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(tls_cafile),
+ .offset = GLOBAL_VAR(_tls_cafile),
.special = NULL,
.enum_list = NULL
},
.label = "tls crlfile",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(tls_crlfile),
+ .offset = GLOBAL_VAR(_tls_crlfile),
.special = NULL,
.enum_list = NULL
},
.label = "tls dh params file",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(tls_dhpfile),
+ .offset = GLOBAL_VAR(_tls_dhpfile),
+ .special = NULL,
+ .enum_list = NULL
+ },
+ {
+ .label = "tls priority",
+ .type = P_STRING,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(tls_priority),
.special = NULL,
.enum_list = NULL
},
{NULL, P_BOOL, P_NONE, 0, NULL, NULL, 0}
};
+int num_parameters(void)
+{
+ return (sizeof(parm_table) / sizeof(struct parm_struct));
+}