From 0d0d64518fd70495e92766dd4f190077ff6b6a9e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 13 Aug 2011 23:33:19 +0200 Subject: [PATCH] host part of unique URI must be empty (ITS#7018) --- servers/slapd/overlays/unique.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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, -- 2.39.5