ad-promise
Advanced tools
Comparing version 1.0.11 to 1.1.0
@@ -59,3 +59,3 @@ | ||
}); | ||
}, members, 3000, "getChunkItem"); | ||
}, members, 100, "members"); | ||
@@ -62,0 +62,0 @@ try{ |
@@ -22,2 +22,3 @@ | ||
function search (baseDN, opts, callback) { | ||
let searchStarted = new Date(); | ||
var self = this; | ||
@@ -150,2 +151,6 @@ | ||
if((err || {}).errno === 'ETIMEDOUT'){ | ||
err.timeoutAfter = (new Date() - searchStarted); | ||
} | ||
client.unbind(); | ||
@@ -152,0 +157,0 @@ log.error(err, '[%s] An error occurred performing the requested LDAP search on %s (%j)', |
@@ -45,7 +45,10 @@ const _ = require('underscore'); | ||
search.call(self, localOpts, function onSearch(err, results) { | ||
// Ignore ECONNRESET ERRORS | ||
if (err) { | ||
if (callback){ | ||
callback(err); | ||
} | ||
return reject(err); | ||
if((err || {}).errno !== 'ECONNRESET'){ | ||
if(callback){ | ||
callback(err); | ||
} | ||
return reject(err); | ||
} | ||
} | ||
@@ -52,0 +55,0 @@ |
@@ -82,3 +82,3 @@ var _ = require('underscore'); | ||
}); | ||
}, chunks, 500, "getUsersForGroup"); | ||
}, chunks, 1000000, "chunks"); | ||
@@ -85,0 +85,0 @@ |
{ | ||
"author": "Relief Melone (relief.melone@gmail.com)", | ||
"name": "ad-promise", | ||
"version": "1.0.11", | ||
"version": "1.1.0", | ||
"description": "This is a fork of the gheeres node-activedirectory. This is still a work in progress and not stable. The goal to use promises instead of the async library which is causing some problems in the current version of node-activedirectory", | ||
@@ -25,3 +25,3 @@ "main": "index.js", | ||
"underscore": ">= 1.4.3", | ||
"limitpromises": ">=1.0.5" | ||
"limitpromises": ">=1.0.6" | ||
}, | ||
@@ -28,0 +28,0 @@ "repository": { |
@@ -26,2 +26,3 @@ AD-Promise for Node | ||
* [bunyan](https://github.com/trentm/node-bunyan) - A simple and fast JSON logging module for node.js services | ||
* [limitpromises](https://github.com/relief-melone/limitpromises) - lightweight module for making sure you only run a limited number of promises at once | ||
@@ -104,5 +105,5 @@ Installation | ||
ad.authenticate.then((res) => { | ||
console.log('Authenticated') | ||
console.log('Authenticated!') | ||
}, (err) => { | ||
console.log('Authentication failed); | ||
console.log('Authentication failed!'); | ||
}); | ||
@@ -109,0 +110,0 @@ ``` |
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
213402
75
4145
756
Updatedlimitpromises@>=1.0.6