From: Kurt Zeilenga Date: Fri, 14 Jun 2002 22:03:52 +0000 (+0000) Subject: saslAuthzTo/From LDUP URLs should have hostnames X-Git-Tag: NO_SLAP_OP_BLOCKS~1447 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbba11d7cd2dfb3fe2278708bb28744a2bfd4ff2;p=openldap saslAuthzTo/From LDUP URLs should have hostnames --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index b3f5ff9ca3..601d0245c8 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -125,7 +125,10 @@ is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val); return( LDAP_PROTOCOL_ERROR ); } - /* could check the hostname here */ + if ( ludp->lud_host && *ludp->lud_host ) { + /* host part should be empty */ + return( LDAP_PROTOCOL_ERROR ); + } /* Grab the scope */ *scope = ludp->lud_scope;