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

18 lines (15 loc) 498 B
const pendingReferrals = require('./service.search.pendingReferrals'); /** * Call to remove the specified referral client. * @param {Object} client The referral client to remove. * @param {Object} */ function removeReferral(client) { if (!client || !client.connected) return; client.unbind(); var indexOf = pendingReferrals.indexOf(client); if (indexOf >= 0) { pendingReferrals.get().splice(indexOf, 1); } } module.exports = removeReferral;