bcrypt is an optional dependency and allow anonymous login
two little changes I needed to use this great lib.
not sure about the bcrypt, but the anonymous login fix would be very helpful to me. I can submit as a separate change set... @vesse Is there a reason not to remove that check?
@vesse picked the commit for another repo which has already many fixes including the anonymous login. You can switch from node-ldapauth to node-ldapauth-fork... I've done so...
fantastic, keep up the good work!
not really sure that you are using optionalDependencies correctly...
If a dependency can be used, but you would like npm to proceed if it cannot be found or fails to install, then you may put it in the
optionalDependencieshash. This is a map of package name to version or url, just like thedependencieshash. The difference is that failure is tolerated.It is still your program's responsibility to handle the lack of the dependency.
so, you would have to check if bcrypt is present (probably with try { ... } catch() { ... })
ldapauth only requires bcrypt if you pass cache: true. So if you don't use the caching feature you can omit it. If you use the cache and bcrypt isn't loaded it throws an exception...
@vesse Just saw all your great work on node-ldapauth-fork. What would you think about merging your changes into this repo, and me giving you commit and publish rights for this repo and its npm module?
@trentm Thanks, that would be great!
Whats the status on the merge?