diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-03-13 11:09:11 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-20 12:28:55 +0100 |
commit | ec26d836b1b2a41ec2692976a539da51f261412b (patch) | |
tree | 38903b5088f63e0ba53bcef46524d954d1336a10 /src/ldb_modules | |
parent | fae99bfe4bfc8b4a12e9c2a0ad01b3684c22f934 (diff) | |
download | sssd-ec26d836b1b2a41ec2692976a539da51f261412b.tar.gz sssd-ec26d836b1b2a41ec2692976a539da51f261412b.tar.bz2 sssd-ec26d836b1b2a41ec2692976a539da51f261412b.zip |
Making the ldb check configurable
It is possible to enable/disable checking in LDB memberof plugin
whether it was built against the same version of LDB that is present
on the system. This feature is turned off by default
and enabled in Fedora/RHEL spec file.
https://fedorahosted.org/sssd/ticket/1813
Diffstat (limited to 'src/ldb_modules')
-rw-r--r-- | src/ldb_modules/memberof.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldb_modules/memberof.c b/src/ldb_modules/memberof.c index f7eeb407..4a932848 100644 --- a/src/ldb_modules/memberof.c +++ b/src/ldb_modules/memberof.c @@ -4566,8 +4566,8 @@ const struct ldb_module_ops ldb_memberof_module_ops = { int ldb_init_module(const char *version) { -#ifdef LDB_MODULE_CHECK_VERSION +#if defined(SSS_LDB_VERSION_CHECK) && defined(LDB_MODULE_CHECK_VERSION) LDB_MODULE_CHECK_VERSION(version); -#endif +#endif /* SSS_LDB_VERSION_CHECK && LDB_MODULE_CHECK_VERSION */ return ldb_register_module(&ldb_memberof_module_ops); } |