lib/activedirectory.js
function onSearchEntry(entry) {
    log.trace('onSearchEntry(%j)', entry);
    var result = entry.object;
    delete result.controls; // Remove the controls array returned as part of the SearchEntry

    // Some attributes can have range attributes (paging). Execute the query
    // again to get additional items.
    pendingRangeRetrievals++;
    parseRangeAttributes.call(self, result, opts, function(err, item) {
      pendingRangeRetrievals--;

      if (err) item = entry.object;
      entryParser(item, entry.raw, function(item) {
        if (item) results.push(item);
        if ((! pendingRangeRetrievals) && (isDone)) {
          onSearchEnd();
        }
      });
    });
  }
function onSearchEntry(entry) {
    log.trace('onSearchEntry(%j)', entry);
    var result = entry.object;
    delete result.controls; // Remove the controls array returned as part of the SearchEntry

    // Some attributes can have range attributes (paging). Execute the query
    // again to get additional items.
    pendingRangeRetrievals++;
    parseRangeAttributes.call(self, result, opts, function(err, item) {
      pendingRangeRetrievals--;

      if (err) item = entry.object;
      entryParser(item, entry.raw, function(item) {
        if (item) results.push(item);
        if ((! pendingRangeRetrievals) && (isDone)) {
          onSearchEnd();
        }
      });
    });
  }
function onSearchEntry ( entry ) { log . trace ( 'onSearchEntry(%j)' , entry ) ; var result = entry . object ; delete result . controls ; // Remove the controls array returned as part of the SearchEntry // Some attributes can have range attributes (paging). Execute the query // again to get additional items. pendingRangeRetrievals ++ ; parseRangeAttributes . call ( self , result , opts , function ( err , item ) { pendingRangeRetrievals -- ; if ( err ) item = entry . object ; entryParser ( item , entry . raw , function ( item ) { if ( item ) results . push ( item ) ; if ( ( ! pendingRangeRetrievals ) && ( isDone ) ) { onSearchEnd ( ) ; } } ) ; } ) ; }
Occurs when a search entry is received. Cleans up the search entry and pushes it to the result set.
@param {Object} entry The entry received.
Occurs when a search entry is received . Cleans up the search entry and pushes it to the result set .