procedure ObjectMatchesSearchFilter (
     o: DSNAME,
     searchFilter: LDAPString) : boolean

This procedure returns true if the search filter (searchFilter) is null. If the search filter is not null, it returns true if the object whose DSNAME is "o" matches the search filter; otherwise it returns false. See [MS-ADTS] for search filter processing, specifically section, Search Filters.