gheeres / node-activedirectory

ActiveDirectory is an Node.js ldapjs client for authN (authentication) and authZ (authorization) for Microsoft Active Directory with range retrieval support for large Active Directory installations.
MIT License
534 stars 147 forks source link

timeout does not work #138

Open dorongrinstein opened 8 years ago

dorongrinstein commented 8 years ago

I set timeout and idleTimeout to 3000 (milliseconds) (based on the ldapjs documentation, indicating the value is in milliseconds) and shut down the Active Directory instance. When I call getGroupMembershipForUser with a first parameter of options, containing:

let options = { timeout: 3000, idleTimeout: 3000 };

The method hangs forever. It does not seem to be respecting the passed in options.

onhate commented 7 years ago

same here +1

DaryaDarya commented 6 years ago

Also, param 'connectTimeout' (which available for ldap) not passed to ldap options https://github.com/gheeres/node-activedirectory/blob/master/lib/activedirectory.js#L330

ghost commented 5 years ago

Any action on this or plan to fix the issue. to be merged on current release?