empty ID should be fine according to draft-weltman-ldapv3-proxy

This commit is contained in:
Pierangelo Masarati 2004-05-13 20:18:37 +00:00
parent c0075d57b4
commit 08a8e7b8c3

View file

@ -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 );
}