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

22 lines (20 loc) 513 B
/** * Represents an ActiveDirectory group * * @private * @param {Object} [properties] The properties to assign to the newly created item. * @returns {Group} */ var Group = function(properties) { if (this instanceof Group) { for (var property in (properties || {})) { if (Array.prototype.hasOwnProperty.call(properties, property)) { this[property] = properties[property]; } } } else { return(new Group(properties)); } }; module.exports = Group;