Skip to content

[Improvement] Make search timeLimit configurable #91

@Hulcsa

Description

@Hulcsa

First of all, thank you for this lib, saved me a lot of time!

There is just one thing that I could not configure and causes some issues in my app. Sadly, my LDAP server response time for a search request may take 15-20 seconds sometimes, but the default search time limit in ldapjs is 10 seconds, and I could not find a way to configure this value. Could you make this limit configurable, please?

Like this for example in ldapauth.js

LdapAuth.prototype._search = function(searchBase, options, callback) {
  var self = this;

  options.timeLimit = self.opts.searchTimeLimit;
  ...

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions