Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

Returns

This functions returns 0 if the filter matches, or if the filter is NULL. Otherwise, it returns -1.