lib/messages/add_request.js
function AddRequest(options) {
  options = options || {};
  assert.object(options);
  lassert.optionalStringDN(options.entry);
  lassert.optionalArrayOfAttribute(options.attributes);

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

  this.entry = options.entry || null;
  this.attributes = options.attributes ? options.attributes.slice(0) : [];
}
function AddRequest(options) {
  options = options || {};
  assert.object(options);
  lassert.optionalStringDN(options.entry);
  lassert.optionalArrayOfAttribute(options.attributes);

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

  this.entry = options.entry || null;
  this.attributes = options.attributes ? options.attributes.slice(0) : [];
}
function AddRequest ( options ) { options = options || { } ; assert . object ( options ) ; lassert . optionalStringDN ( options . entry ) ; lassert . optionalArrayOfAttribute ( options . attributes ) ; options . protocolOp = Protocol . LDAP_REQ_ADD ; LDAPMessage . call ( this , options ) ; this . entry = options . entry || null ; this . attributes = options . attributes ? options . attributes . slice ( 0 ) : [ ] ; }
/--- API
/ --- API