summaryrefslogtreecommitdiffstats
path: root/source/groupdb
diff options
context:
space:
mode:
Diffstat (limited to 'source/groupdb')
-rw-r--r--source/groupdb/mapping_ldb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/groupdb/mapping_ldb.c b/source/groupdb/mapping_ldb.c
index 8eafc2532b4..4f3aa185340 100644
--- a/source/groupdb/mapping_ldb.c
+++ b/source/groupdb/mapping_ldb.c
@@ -67,6 +67,10 @@ static BOOL init_group_mapping(void)
flags |= LDB_FLG_NOSYNC;
}
+ if (!lp_use_mmap()) {
+ flags |= LDB_FLG_NOMMAP;
+ }
+
ret = ldb_connect(ldb, db_path, flags, NULL);
if (ret != LDB_SUCCESS) {
goto failed;