docs: function(options, verify) {
    // We now accept function as options as well so we cannot assume anymore
    // that a call with a function parameter only would have skipped options
    // and just provided a verify callback
    if (!options) {
      throw new Error('LDAP authentication strategy requires options');
    }
  
    this.options    = null;
    this.getOptions = null;
  
    if (typeof options === 'object') {
      this.options = setDefaults(options);
    } else if (typeof options === 'function') {
      this.getOptions = options;
    }
  
    passport.Strategy.call(this);
  
    this.name   = 'ldapauth';
    this.verify = verify;
  }