From f213b3e9a2e448c8971aa81ad99407916236e92f Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Mon, 16 Jun 2014 10:04:55 -0500 Subject: [PATCH] Allow configuration of derefAliases client option Fix mcavage/node-ldapjs#134 --- CHANGES.md | 1 + lib/client/client.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a97a51f..0b6588f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ ## CURRENT +- #134 Allow configuration of derefAliases client option - #197 Properly dispatch unbind requests - #196 Handle string ports properly in server.listen - Request routing overhaul diff --git a/lib/client/client.js b/lib/client/client.js index 1ad463e..7b7c3f9 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -667,7 +667,7 @@ Client.prototype.search = function search(base, options, controls, callback) { baseObject: typeof (base) === 'string' ? dn.parse(base) : base, scope: options.scope || 'base', filter: options.filter, - derefAliases: Protocol.NEVER_DEREF_ALIASES, + derefAliases: options.derefAliases || Protocol.NEVER_DEREF_ALIASES, sizeLimit: options.sizeLimit || 0, timeLimit: options.timeLimit || 10, typesOnly: options.typesOnly || false,