1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00

ldb: Build lmdb backend also in non-AD case

We should build with lmdb support also if it is not in AD case. The lmdb
backend is also used e.g. by sssd.

If you don't want to build it, you can always specify --without-ldb-lmdb

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15721

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep 25 05:36:13 UTC 2024 on atb-devel-224

(cherry picked from commit fdef894d79)
This commit is contained in:
Andreas Schneider 2024-09-24 15:48:23 +02:00 committed by Jule Anger
parent aabaf6aaf5
commit 0b3e0bc292

View File

@ -34,20 +34,16 @@ def configure(conf):
Logs.warn("NOTE: Some AD DC parts of selftest will fail") Logs.warn("NOTE: Some AD DC parts of selftest will fail")
conf.env.REQUIRE_LMDB = False conf.env.REQUIRE_LMDB = False
else: elif Options.options.without_ldb_lmdb:
if Options.options.without_ad_dc: if not Options.options.without_ad_dc and \
conf.env.REQUIRE_LMDB = False conf.CONFIG_GET('ENABLE_SELFTEST'):
else: raise Errors.WafError('--without-ldb-lmdb conflicts '
if Options.options.without_ldb_lmdb: 'with --enable-selftest while '
if not Options.options.without_ad_dc and \ 'building the AD DC')
conf.CONFIG_GET('ENABLE_SELFTEST'):
raise Errors.WafError('--without-ldb-lmdb conflicts '
'with --enable-selftest while '
'building the AD DC')
conf.env.REQUIRE_LMDB = False conf.env.REQUIRE_LMDB = False
else: else:
conf.env.REQUIRE_LMDB = True conf.env.REQUIRE_LMDB = True
# if lmdb support is enabled then we require lmdb # if lmdb support is enabled then we require lmdb
# is present, build the mdb back end and enable lmdb support in # is present, build the mdb back end and enable lmdb support in