Allow configuration of derefAliases client option

Fix mcavage/node-ldapjs#134
This commit is contained in:
Patrick Mooney 2014-06-16 10:04:55 -05:00
parent 6c8dbf9a29
commit f213b3e9a2
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## CURRENT ## CURRENT
- #134 Allow configuration of derefAliases client option
- #197 Properly dispatch unbind requests - #197 Properly dispatch unbind requests
- #196 Handle string ports properly in server.listen - #196 Handle string ports properly in server.listen
- Request routing overhaul - Request routing overhaul

View File

@ -667,7 +667,7 @@ Client.prototype.search = function search(base, options, controls, callback) {
baseObject: typeof (base) === 'string' ? dn.parse(base) : base, baseObject: typeof (base) === 'string' ? dn.parse(base) : base,
scope: options.scope || 'base', scope: options.scope || 'base',
filter: options.filter, filter: options.filter,
derefAliases: Protocol.NEVER_DEREF_ALIASES, derefAliases: options.derefAliases || Protocol.NEVER_DEREF_ALIASES,
sizeLimit: options.sizeLimit || 0, sizeLimit: options.sizeLimit || 0,
timeLimit: options.timeLimit || 10, timeLimit: options.timeLimit || 10,
typesOnly: options.typesOnly || false, typesOnly: options.typesOnly || false,