From: Pierangelo Masarati Date: Sat, 13 Aug 2011 21:33:19 +0000 (+0200) Subject: host part of unique URI must be empty (ITS#7018) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0d0d64518fd70495e92766dd4f190077ff6b6a9e;p=openldap host part of unique URI must be empty (ITS#7018) --- diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index 0889a17a47..115357cf7d 100644 --- a/servers/slapd/overlays/unique.c +++ b/servers/slapd/overlays/unique.c @@ -184,6 +184,14 @@ unique_new_domain_uri ( unique_domain_uri **urip, uri = ch_calloc ( 1, sizeof ( unique_domain_uri ) ); + if ( url_desc->lud_host && url_desc->lud_host[0] ) { + snprintf( c->cr_msg, sizeof( c->cr_msg ), + "host <%s> not allowed in URI", + url_desc->lud_host ); + rc = ARG_BAD_CONF; + goto exit; + } + if ( url_desc->lud_dn && url_desc->lud_dn[0] ) { ber_str2bv( url_desc->lud_dn, 0, 0, &bv ); rc = dnPrettyNormal( NULL,