From: Pierangelo Masarati Date: Thu, 13 May 2004 20:18:37 +0000 (+0000) Subject: empty ID should be fine according to draft-weltman-ldapv3-proxy X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~383 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08a8e7b8c3d4cf1a4a5af039047298908ef827b8;p=openldap empty ID should be fine according to draft-weltman-ldapv3-proxy --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 8840f35ad1..838cc947ab 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -765,7 +765,8 @@ static int parseProxyAuthz ( rc = slap_sasl_getdn( op->o_conn, op, &ctrl->ldctl_value, NULL, &dn, SLAP_GETDN_AUTHZID ); - if( rc != LDAP_SUCCESS || !dn.bv_len ) { + /* FIXME: empty DN in proxyAuthz control should be legal... */ + if( rc != LDAP_SUCCESS /* || !dn.bv_len */ ) { if ( dn.bv_val ) { ch_free( dn.bv_val ); }