From 227961178ea5058911e12dee2ce63b803297ae8b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 16 Nov 2004 18:43:48 +0000 Subject: [PATCH] fix ITS#3396 (filter in URI replacement must be present) --- servers/slapd/saslauthz.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.39.5