trentm / node-ldapauth

**UNMAINTAINED.** Simple node.js module to authenticate against an LDAP server
MIT License
127 stars 144 forks source link

callback never fired when network is unreachable #7

Open rvagg opened 11 years ago

rvagg commented 11 years ago

I don't know if this is an ldapjs problem of an ldapauth problem but I have a setup that requires a vpn connection to the ldap server and if the connection isn't running then the server can't be reached and a call to authenticate() never returns on my callback.

I'm having to solve this with a parallel setTimeout() at the moment.

I'm happy to put in some work to sort this out via a pull-request but perhaps you can give some pointers if you know off the top of your head where the problem might be or if this is a known issue?