lib/messages/compare_request.js
function CompareRequest(options) {
  options = options || {};
  assert.object(options);
  assert.optionalString(options.attribute);
  assert.optionalString(options.value);
  lassert.optionalStringDN(options.entry);

  options.protocolOp = Protocol.LDAP_REQ_COMPARE;
  LDAPMessage.call(this, options);

  this.entry = options.entry || null;
  this.attribute = options.attribute || '';
  this.value = options.value || '';
}
function CompareRequest(options) {
  options = options || {};
  assert.object(options);
  assert.optionalString(options.attribute);
  assert.optionalString(options.value);
  lassert.optionalStringDN(options.entry);

  options.protocolOp = Protocol.LDAP_REQ_COMPARE;
  LDAPMessage.call(this, options);

  this.entry = options.entry || null;
  this.attribute = options.attribute || '';
  this.value = options.value || '';
}
/--- API