From 08a8e7b8c3d4cf1a4a5af039047298908ef827b8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 13 May 2004 20:18:37 +0000 Subject: [PATCH] empty ID should be fine according to draft-weltman-ldapv3-proxy --- servers/slapd/controls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5