ldap-authentication
Advanced tools
Comparing version 2.1.0 to 2.1.1
13
index.js
@@ -11,3 +11,3 @@ const assert = require('assert') | ||
if (error) { | ||
reject(error.message) | ||
reject(error) | ||
return | ||
@@ -17,3 +17,3 @@ } | ||
if (err) { | ||
reject(err.message) | ||
reject(err) | ||
client.unbind() | ||
@@ -29,3 +29,3 @@ return | ||
if (err) { | ||
reject(err.message) | ||
reject(err) | ||
client.unbind() | ||
@@ -54,3 +54,3 @@ return | ||
if (err) { | ||
reject(err.message) | ||
reject(err) | ||
ldapClient.unbind() | ||
@@ -67,3 +67,3 @@ return | ||
console.error('error: ' + err.message); | ||
reject(err.message) | ||
reject(err) | ||
ldapClient.unbind() | ||
@@ -73,5 +73,4 @@ }); | ||
if (result.status != 0) { | ||
reject('search failed') | ||
reject(new Error('ldap search status is not 0, search failed')) | ||
} else { | ||
//console.error('status = 0' + result); | ||
resolve(user) | ||
@@ -78,0 +77,0 @@ } |
{ | ||
"name": "ldap-authentication", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A simple async nodejs library for LDAP user authentication", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
15860
350