Socket
Socket
Sign inDemoInstall

ldap-verifyuser

Package Overview
Dependencies
15
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

.idea/.name

20

lib/verifyUser.js

@@ -15,3 +15,3 @@ #!/usr/bin/env node

var client = require("ldapjs").createClient({url: config.server, tlsOptions: config.tlsOptions || {}});
var client = require("ldapjs-hotfix").createClient({url: config.server, tlsOptions: config.tlsOptions || {}});

@@ -35,21 +35,21 @@ client.bind(config.adrdn + username, password, function(err) {

if (Number(entry.object.lockoutTime) == 0){
if(config.debug){console.log("account not locked and valid!");}
data.locked = false;
if(config.debug){console.log("account not locked and valid!");}
data.locked = false;
}
});
res.on('error', function(err) {
if(config.debug){console.error(error, err.message);}
callback(err, {status: 1});
if(config.debug){console.error(error, err.message);}
callback(err, {status: 1});
});
res.on('end', function(result) {
if(config.debug){console.log('status: ' + result.status);}
if(config.debug){console.log('status: ' + result.status);}
callback(null, data);
});
if(err){
callback(err, {status: 1});
if(err){
callback(err, {status: 1});
}
});
} else {
if(config.debug){console.error(error, err.message);}
callback(err, {status: 1});
if(config.debug){console.error(error, err.message);}
callback(err, {status: 1});
}

@@ -56,0 +56,0 @@ });

{
"name": "ldap-verifyuser",
"version": "1.0.1",
"version": "1.0.2",
"description": "ldap-verifyuser is a node.js library based on ldapjs, that authenticates a user against a LDAP or AD without requiring an configured administrator account.",

@@ -25,3 +25,3 @@ "author": "Hendrik 'Xendo' Meyer <mail@xendo.red>",

"dependencies": {
"ldapjs": "0.7.1"
"ldapjs-hotfix": "0.7.3"
},

@@ -28,0 +28,0 @@ "analyze": true,

@@ -48,1 +48,3 @@ # ldap-verifyuser

Thus: 'here be dragons!'.
Temporarily i use my hotfixed version of ldapjs to make it compatible with node 0.12.x. Whenever a new upstream version of the official ldapjs is available i will switch back to it.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc