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

9 lines (7 loc) 283 B
// Precompile some common, frequently used regular expressions. var re = { 'isDistinguishedName': /(([^=]+=.+),?)+/gi, 'isUserResult': /CN=Person,CN=Schema,CN=Configuration,.*/i, 'isGroupResult': /CN=Group,CN=Schema,CN=Configuration,.*/i }; module.exports = re;