summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-02-20 14:59:42 +1030
committerRusty Russell <rusty@rustcorp.com.au>2013-02-20 05:31:20 +0100
commit3c9c3029f2bcf10ef614dd9f923d02232db3ac8d (patch)
tree4302afa36dee7fc05863a0e467c468f2b7824bb6 /lib
parente201033e84b54b13acc751db2b67cff159e12a0e (diff)
downloadsamba-3c9c3029f2bcf10ef614dd9f923d02232db3ac8d.tar.gz
samba-3c9c3029f2bcf10ef614dd9f923d02232db3ac8d.tar.bz2
samba-3c9c3029f2bcf10ef614dd9f923d02232db3ac8d.zip
param: 'use ntdb' flag (off by default).
For simplicity, we use this in the caller to choose between filenames. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/param/param_functions.c1
-rw-r--r--lib/param/param_table.c9
2 files changed, 10 insertions, 0 deletions
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
@@ -1895,6 +1895,15 @@ static struct parm_struct parm_table[] = {
.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,
.p_class = P_LOCAL,