Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
eb989be4
Commit
eb989be4
authored
Nov 01, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Nov 11, 2021
Browse files
ITS
#9733
Only use libltdl when SLAPD_MODULES is defined
parent
6327f45d
Pipeline
#3764
passed with stage
in 47 minutes and 44 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/ppolicy.c
View file @
eb989be4
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment