mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
ITS#9733 Only use libltdl when SLAPD_MODULES is defined
This commit is contained in:
parent
6327f45d7d
commit
eb989be408
1 changed files with 8 additions and 0 deletions
|
|
@ -63,8 +63,10 @@ typedef struct pp_info {
|
|||
int send_netscape_controls; /* send netscape password controls */
|
||||
char *pwdCheckModule; /* name of module to dynamically
|
||||
load to check password */
|
||||
#ifdef SLAPD_MODULES
|
||||
lt_dlhandle pwdCheckHandle; /* handle from lt_dlopen */
|
||||
check_func *pwdCheckFunc;
|
||||
#endif /* SLAPD_MODULES */
|
||||
ldap_pvt_thread_mutex_t pwdFailureTime_mutex;
|
||||
} pp_info;
|
||||
|
||||
|
|
@ -489,7 +491,11 @@ static ConfigTable ppolicycfg[] = {
|
|||
"EQUALITY booleanMatch "
|
||||
"SYNTAX OMsBoolean SINGLE-VALUE )", NULL, NULL },
|
||||
{ "ppolicy_check_module", "path", 2, 2, 0,
|
||||
#ifdef SLAPD_MODULES
|
||||
ARG_STRING|ARG_MAGIC|PPOLICY_CHECK_MODULE, ppolicy_cf_checkmod,
|
||||
#else
|
||||
ARG_IGNORED, NULL,
|
||||
#endif /* SLAPD_MODULES */
|
||||
"( OLcfgOvAt:12.7 NAME 'olcPPolicyCheckModule' "
|
||||
"DESC 'Loadable module that instantiates check_password() function' "
|
||||
"EQUALITY caseExactIA5Match "
|
||||
|
|
@ -562,6 +568,7 @@ ppolicy_cf_default( ConfigArgs *c )
|
|||
return rc;
|
||||
}
|
||||
|
||||
#ifdef SLAPD_MODULES
|
||||
static int
|
||||
ppolicy_cf_checkmod( ConfigArgs *c )
|
||||
{
|
||||
|
|
@ -616,6 +623,7 @@ ppolicy_cf_checkmod( ConfigArgs *c )
|
|||
|
||||
return rc;
|
||||
}
|
||||
#endif /* SLAPD_MODULES */
|
||||
|
||||
static time_t
|
||||
parse_time( char *atm )
|
||||
|
|
|
|||
Loading…
Reference in a new issue