From 3c9c3029f2bcf10ef614dd9f923d02232db3ac8d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 20 Feb 2013 14:59:42 +1030 Subject: param: 'use ntdb' flag (off by default). For simplicity, we use this in the caller to choose between filenames. Signed-off-by: Rusty Russell Reviewed-by: Andrew Bartlett --- lib/param/param_functions.c | 1 + lib/param/param_table.c | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'lib/param') diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c index 852f525c44..4cf3ad7698 100644 --- a/lib/param/param_functions.c +++ b/lib/param/param_functions.c @@ -215,6 +215,7 @@ FN_GLOBAL_BOOL(unicode, bUnicode) FN_GLOBAL_BOOL(unix_extensions, bUnixExtensions) FN_GLOBAL_BOOL(unix_password_sync, bUnixPasswdSync) FN_GLOBAL_BOOL(use_mmap, bUseMmap) +FN_GLOBAL_BOOL(use_ntdb, bUseNtdb) FN_GLOBAL_BOOL(usershare_allow_guests, bUsershareAllowGuests) FN_GLOBAL_BOOL(usershare_owner_only, bUsershareOwnerOnly) FN_GLOBAL_BOOL(use_spnego, bUseSpnego) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index a73cd966bc..620f5f679b 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -1894,6 +1894,15 @@ static struct parm_struct parm_table[] = { .enum_list = NULL, .flags = FLAG_ADVANCED, }, + { + .label = "use ntdb", + .type = P_BOOL, + .p_class = P_GLOBAL, + .offset = GLOBAL_VAR(bUseNtdb), + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED, + }, { .label = "use sendfile", .type = P_BOOL, -- cgit