summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/db_wrap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c
index ed235761c9..482b6f17b5 100644
--- a/source4/lib/db_wrap.c
+++ b/source4/lib/db_wrap.c
@@ -90,6 +90,11 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx,
talloc_free(ldb);
return NULL;
}
+
+ /* allow admins to force non-sync ldb for all databases */
+ if (lp_parm_bool(-1, "ldb", "nosync", False)) {
+ flags |= LDB_FLG_NOSYNC;
+ }
ret = ldb_connect(ldb, real_url, flags, options);
if (ret == -1) {