Commit c72c3278 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9379 reject listener URLs with non-empty DNs

parent 67670f45
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment