mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-11 06:43:09 -05:00
Only use libltdl #if SLAPD_MODULES is defined, otherwise ignore
external pwdCheckModules.
This commit is contained in:
parent
4e56d4b75f
commit
e4c231fe0c
1 changed files with 8 additions and 1 deletions
|
|
@ -35,7 +35,9 @@
|
|||
#include <ldap.h>
|
||||
#include "lutil.h"
|
||||
#include "slap.h"
|
||||
#if SLAPD_MODULES
|
||||
#include <ltdl.h>
|
||||
#endif
|
||||
#include <ac/errno.h>
|
||||
#include <ac/time.h>
|
||||
#include <ac/string.h>
|
||||
|
|
@ -486,8 +488,9 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
|||
}
|
||||
|
||||
rc = LDAP_SUCCESS;
|
||||
|
||||
|
||||
if (pp->pwdCheckModule[0]) {
|
||||
#if SLAPD_MODULES
|
||||
lt_dlhandle mod;
|
||||
const char *err;
|
||||
|
||||
|
|
@ -525,6 +528,10 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
|||
|
||||
lt_dlclose( mod );
|
||||
}
|
||||
#else
|
||||
Debug(LDAP_DEBUG_ANY, "check_password_quality: external modules not "
|
||||
"supported. pwdCheckModule ignored.\n", 0, 0, 0);
|
||||
#endif /* SLAPD_MODULES */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue