From e47aaa39067705173b20f79d43096471b75ec58b Mon Sep 17 00:00:00 2001 From: huykn Date: Sat, 12 Mar 2022 00:25:42 +0700 Subject: [PATCH 1/2] Update activedirectory.js fix bug typo when process parse deleted items --- lib/activedirectory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activedirectory.js b/lib/activedirectory.js index 316dd10..efa137b 100755 --- a/lib/activedirectory.js +++ b/lib/activedirectory.js @@ -1458,7 +1458,7 @@ ActiveDirectory.prototype.findDeletedObjects = function find(opts, callback) { var deletedItems = []; // Parse the results in parallel. - _.forEach(deletedItemss, function(item) { + _.forEach(results, function(item) { var deletedItem = pickAttributes(item, (opts | {}).attributes || []); self.emit('entry:deleted', deletedItem); deletedItems.push(deletedItem); From bac237320a7d155ba1849467cd739a28380fe2f1 Mon Sep 17 00:00:00 2001 From: huykn Date: Mon, 27 Feb 2023 23:30:38 +0700 Subject: [PATCH 2/2] Update activedirectory.js add field whenChanged to obj user --- lib/activedirectory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activedirectory.js b/lib/activedirectory.js index efa137b..e9ab9ba 100755 --- a/lib/activedirectory.js +++ b/lib/activedirectory.js @@ -27,7 +27,7 @@ defaultAttributes = originalDefaultAttributes = { user: [ 'dn', 'userPrincipalName', 'sAMAccountName', /*'objectSID',*/ 'mail', - 'lockoutTime', 'whenCreated', 'pwdLastSet', 'userAccountControl', + 'lockoutTime', 'whenCreated', 'whenChanged', 'pwdLastSet', 'userAccountControl', 'employeeID', 'sn', 'givenName', 'initials', 'cn', 'displayName', 'comment', 'description' ],