Skip to content
Browse files

Added connection timeout.

  • Loading branch information...
1 parent d887569 commit 0940e737ad9317981babdb83590d6fad081264b5 @jeremycx committed Jan 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 LDAP.js
View
2 LDAP.js
@@ -113,7 +113,7 @@ var LDAP = function(opts) {
function open(fn) {
stats.opens++;
- binding.open(opts.uri || 'ldap://localhost', (opts.version || 3));
+ binding.open(opts.uri || 'ldap://localhost', (opts.version || 3), (opts.connecttimeout || -1));
return bind(fn); // do an anon bind to get it all ready.
}

0 comments on commit 0940e73

Please sign in to comment.
Something went wrong with that request. Please try again.