Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
db46f888
Commit
db46f888
authored
Oct 28, 2020
by
Howard Chu
Browse files
ITS
#9379
reject listener URLs with non-empty DNs
parent
98a0029d
Pipeline
#1212
passed with stage
in 25 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/daemon.c
View file @
db46f888
...
...
@@ -1648,6 +1648,14 @@ slap_open_listener(
}
#endif
/* LDAP_PF_LOCAL || SLAP_X_LISTENER_MOD */
if
(
lud
->
lud_dn
&&
lud
->
lud_dn
[
0
]
)
{
sprintf
(
(
char
*
)
url
,
"%s://%s/"
,
lud
->
lud_scheme
,
lud
->
lud_host
);
Debug
(
LDAP_DEBUG_ANY
,
"daemon: listener URL %s<junk> DN must be absent (%s)
\n
"
,
url
,
lud
->
lud_dn
);
ldap_free_urldesc
(
lud
);
return
-
1
;
}
ldap_free_urldesc
(
lud
);
if
(
err
)
{
slap_free_listener_addresses
(
sal
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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