@davistran86/ad
Advanced tools
Comparing version 1.1.5 to 1.1.6
{ | ||
"name": "@davistran86/ad", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Active Directory API for Node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -164,2 +164,8 @@ /** | ||
}, | ||
setComputerProperty: (opts) => { | ||
return this.setComputerProperty(computerName, opts); | ||
}, | ||
removeComputerProperty: (opts) => { | ||
return this.removeComputerProperty(computerName, opts); | ||
}, | ||
}; | ||
@@ -166,0 +172,0 @@ }, |
@@ -50,2 +50,6 @@ const parseLocation = require("./util/parseLocation"); | ||
async removeComputerProperty(computerName, opts) { | ||
return this._computerDeleteOperation(computerName, opts); | ||
}, | ||
async updateComputer(computerName, opts) { | ||
@@ -52,0 +56,0 @@ return new Promise((resolve, reject) => { |
@@ -81,3 +81,3 @@ const ldap = require("ldapjs"); | ||
/* istanbul ignore next */ | ||
return reject({ message: `Group ${computerName} does not exist.` }); | ||
return reject({ message: `Computer ${computerName} does not exist.` }); | ||
} | ||
@@ -141,2 +141,9 @@ return this._operation(computerObject.dn, operation); | ||
async _computerDeleteOperation(computerName, modification) { | ||
return this._operationByComputer(computerName, { | ||
operation: "delete", | ||
modification, | ||
}); | ||
}, | ||
async _ouReplaceOperation(dn, modification) { | ||
@@ -143,0 +150,0 @@ return this._operationByOU(dn, { |
82497
2330