From: Pierangelo Masarati Date: Tue, 16 Nov 2004 18:43:48 +0000 (+0000) Subject: fix ITS#3396 (filter in URI replacement must be present) X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~297 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=227961178ea5058911e12dee2ce63b803297ae8b;p=openldap fix ITS#3396 (filter in URI replacement must be present) --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 081b196a28..561ffa6219 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -1145,7 +1145,13 @@ void slap_sasl2dn( Operation *opx, "slap_sasl2dn: performing internal search (base=%s, scope=%d)\n", op.o_req_ndn.bv_val, op.ors_scope, 0 ); - if(( op.o_bd == NULL ) || ( op.o_bd->be_search == NULL)) { + if ( ( op.o_bd == NULL ) || ( op.o_bd->be_search == NULL) ) { + goto FINISHED; + } + + /* Must run an internal search. */ + if ( op.ors_filter == NULL ) { + rc = LDAP_FILTER_ERROR; goto FINISHED; }