Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "ad", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Active Directory API for Node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -76,3 +76,3 @@ # AD | ||
// of the Administrators group. | ||
const ad = new ad({ | ||
const ad = new AD({ | ||
url: "ldaps://127.0.0.1", | ||
@@ -79,0 +79,0 @@ user: "dthree@acme.co", |
@@ -97,7 +97,11 @@ const ssha = require('node-ssha256'); | ||
: 'enableUser'; | ||
return this[expirationMethod](userName); | ||
if (passwordExpires !== undefined) { | ||
return this[expirationMethod](userName); | ||
} | ||
}) | ||
.then(data => { | ||
let enableMethod = enabled === false ? 'disableUser' : 'enableUser'; | ||
return this[enableMethod](userName); | ||
if (enabled !== undefined) { | ||
return this[enableMethod](userName); | ||
} | ||
}) | ||
@@ -104,0 +108,0 @@ .then(data => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71023
1981