24 lines
508 B
JavaScript
24 lines
508 B
JavaScript
|
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
|
||
|
|
||
|
var util = require('util');
|
||
|
|
||
|
var LDAPResult = require('./result');
|
||
|
var Protocol = require('../protocol');
|
||
|
|
||
|
|
||
|
///--- API
|
||
|
|
||
|
function AddResponse(options) {
|
||
|
if (options) {
|
||
|
if (typeof(options) !== 'object')
|
||
|
throw new TypeError('options must be an object');
|
||
|
} else {
|
||
|
options = {};
|
||
|
}
|
||
|
|
||
|
options.protocolOp = Protocol.LDAP_REP_ADD;
|
||
|
LDAPResult.call(this, options);
|
||
|
}
|
||
|
util.inherits(AddResponse, LDAPResult);
|
||
|
module.exports = AddResponse;
|