UNPKG

ad-promise

Version:

This is a fork of the gheeres node-activedirectory. It fixes some issues with timeouts with very large AD-Groups as well as returning also promises so you won't have to use callbacks

13 lines 495 B
const _ = require('underscore'); const getLdapClientOpts = require('./service.getLdapClientOpts'); const getLdapSearchOpts = require('./service.getLdapSearchOpts'); /** * From the list of options, retrieves the ldapjs specific options. * * @param {Object} opts The opts to parse. * @returns {Object} The ldapjs opts. */ const getLdapOpts = (opts) => { return (_.defaults({}, getLdapClientOpts(opts), getLdapSearchOpts(opts))); } module.exports = getLdapOpts;