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
Joe Martin
OpenLDAP
Commits
29e09616
Commit
29e09616
authored
Apr 29, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6016
parent
b9678afd
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
29e09616
...
...
@@ -3,6 +3,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.17 Engineering
Fixed slapd normalization of updated schema attributes (ITS#5540)
Fixed slapd errno handling (ITS#6037)
Fixed slapd moduleload with static backends and modules (ITS#6016)
Build Environment
Added test056-monitor (ITS#5540)
Added test057-memberof-refint (ITS#5395)
...
...
servers/slapd/module.c
View file @
29e09616
...
...
@@ -136,6 +136,31 @@ int module_load(const char* file_name, int argc, char *argv[])
return
-
1
;
}
/* If loading a backend, see if we already have it */
if
(
!
strncasecmp
(
file_name
,
"back_"
,
5
))
{
char
*
name
=
(
char
*
)
file_name
+
5
;
char
*
dot
=
strchr
(
name
,
'.'
);
if
(
dot
)
*
dot
=
'\0'
;
rc
=
backend_info
(
name
)
!=
NULL
;
if
(
dot
)
*
dot
=
'.'
;
if
(
rc
)
{
Debug
(
LDAP_DEBUG_CONFIG
,
"module_load: (%s) already present (static)
\n
"
,
file_name
,
0
,
0
);
return
0
;
}
}
else
{
/* check for overlays too */
char
*
dot
=
strchr
(
file_name
,
'.'
);
if
(
dot
)
*
dot
=
'\0'
;
rc
=
overlay_find
(
file_name
)
!=
NULL
;
if
(
dot
)
*
dot
=
'.'
;
if
(
rc
)
{
Debug
(
LDAP_DEBUG_CONFIG
,
"module_load: (%s) already present (static)
\n
"
,
file_name
,
0
,
0
);
return
0
;
}
}
module
=
(
module_loaded_t
*
)
ch_calloc
(
1
,
sizeof
(
module_loaded_t
)
+
strlen
(
file_name
));
if
(
module
==
NULL
)
{
...
...
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