Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
c72c3278
Commit
c72c3278
authored
Oct 28, 2020
by
Howard Chu
Committed by
Quanah Gibson-Mount
Nov 02, 2020
Browse files
ITS
#9379
reject listener URLs with non-empty DNs
parent
67670f45
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/daemon.c
View file @
c72c3278
...
...
@@ -1423,6 +1423,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