Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ad

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ad - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

2

package.json
{
"name": "ad",
"version": "0.2.4",
"version": "0.3.0",
"description": "Active Directory API for Node",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -191,23 +191,30 @@ const ssha = require('node-ssha256');

if (opts.commonName !== undefined) {
this.setUserCN(currUserName, opts.commonName)
.then(res => {
go();
})
.then(data => {
let expirationMethod =
opts.passwordExpires === false
? 'setUserPasswordNeverExpires'
: 'enableUser';
this.findUser(currUserName)
.then(data => {
if (opts.commonName !== undefined) {
return this.setUserCN(currUserName, opts.commonName);
}
})
.then(data => {
let expirationMethod =
opts.passwordExpires === false
? 'setUserPasswordNeverExpires'
: 'enableUser';
if (opts.passwordExpires !== undefined) {
return this[expirationMethod](userName);
})
.then(data => {
let enableMethod =
opts.enabled === false ? 'disableUser' : 'enableUser';
}
})
.then(data => {
let enableMethod =
opts.enabled === false ? 'disableUser' : 'enableUser';
if (opts.enabled !== undefined) {
return this[enableMethod](userName);
})
.catch(err => {
return reject(err);
});
}
}
})
.then(res => {
go();
})
.catch(err => {
return reject(err);
});
});

@@ -214,0 +221,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc