Apply filter to info entry

This commit is contained in:
Kurt Zeilenga 2000-05-16 17:00:42 +00:00
parent 53709873dd
commit 75841ac6c7

View file

@ -190,11 +190,18 @@ do_search(
goto return_results;
} else if ( entry != NULL ) {
send_search_entry( &backends[0], conn, op,
entry, attrs, attrsonly, NULL );
rc = test_filter( NULL, conn, op,
entry, filter );
if( rc == LDAP_COMPARE_TRUE ) {
send_search_entry( &backends[0], conn, op,
entry, attrs, attrsonly, NULL );
}
entry_free( entry );
send_ldap_result( conn, op, LDAP_SUCCESS,
NULL, NULL, NULL, NULL );
entry_free( entry );
goto return_results;
}
}