mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
host part of unique URI must be empty (ITS#7018)
This commit is contained in:
parent
8c2fc29786
commit
0d0d64518f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user