Skip to content
Snippets Groups Projects
Commit db46f888 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9379 reject listener URLs with non-empty DNs

parent 98a0029d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment