code: function onSearchEnd(result) {
      if ((! pendingRangeRetrievals) && (pendingReferrals.length <= 0)) {
        client.unbind();
        log.info('Active directory search (%s) for "%s" returned %d entries.',
                 baseDN, truncateLogOutput(opts.filter),
                 (results || []).length);
        if (callback) callback(null, results);
      }
    }
docs: Occurs when a search results have all been processed.
  @param {Object} result