ldap-verifyuser
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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. |
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
25683
13
50
+ Addedldapjs-hotfix@0.7.3
+ Addedldapjs-hotfix@0.7.3(transitive)
- Removedldapjs@0.7.1
- Removedldapjs@0.7.1(transitive)