ldapauth
Advanced tools
Comparing version 2.2.3 to 2.2.4
# node-ldapauth Changelog | ||
## 2.2.4 | ||
- [pull #12] Add `tlsOptions`, `timeout` and `connectTimeout` options in `LdapAuth` | ||
constructor (by github.com/vesse). | ||
## 2.2.3 | ||
- [pull #11] Update to latest ldapjs (v0.6.3). | ||
- [pull #11] Update to latest ldapjs, v0.6.3 (by github.com/Esya). | ||
@@ -7,0 +12,0 @@ |
@@ -44,2 +44,10 @@ /** | ||
* credentials at a time will be cached for 5 minutes. | ||
* timeout {Integer} Optional, default Infinity. How long the client should | ||
* let operations live for before timing out. | ||
* connectTimeout {Integer} Optional, default is up to the OS. How long the | ||
* client should wait before timing out on TCP connections. | ||
* tlsOptions {Object} Additional options passed to the TLS connection layer | ||
* when connecting via ldaps://. See | ||
* http://nodejs.org/api/tls.html#tls_tls_connect_options_callback | ||
* for available options | ||
*/ | ||
@@ -64,2 +72,11 @@ function LdapAuth(opts) { | ||
} | ||
if (opts.timeout) { | ||
clientOpts.timeout = opts.timeout; | ||
} | ||
if (opts.connectTimeout) { | ||
clientOpts.connectTimeout = opts.connectTimeout; | ||
} | ||
if (opts.tlsOptions) { | ||
clientOpts.tlsOptions = opts.tlsOptions; | ||
} | ||
this._adminClient = ldap.createClient(clientOpts); | ||
@@ -66,0 +83,0 @@ this._adminBound = false; |
{ | ||
"name": "ldapauth", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"main": "./lib/ldapauth.js", | ||
@@ -5,0 +5,0 @@ "description": "Authenticate against an LDAP server", |
@@ -30,3 +30,3 @@ A simple node.js lib to authenticate against an LDAP server. | ||
[Use the source Luke](https://github.com/trentm/node-ldapauth/blob/master/lib/ldapauth.js#L25-45) | ||
[Use the source Luke](https://github.com/trentm/node-ldapauth/blob/master/lib/ldapauth.js#L25-53) | ||
@@ -33,0 +33,0 @@ |
Sorry, the diff of this file is not supported yet
59315
271