File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,11 @@ LdapAuth.prototype._findUser = function (username, callback) {
316
316
317
317
var searchFilter = self . opts . searchFilter . replace ( / { { username} } / g, sanitizeInput ( username ) ) ;
318
318
var opts = { filter : searchFilter , scope : self . opts . searchScope } ;
319
+
320
+ if ( self . opts . timeLimit ) {
321
+ opts . timeLimit = self . opts . timeLimit ;
322
+ }
323
+
319
324
if ( self . opts . searchAttributes ) {
320
325
opts . attributes = self . opts . searchAttributes ;
321
326
}
@@ -372,6 +377,11 @@ LdapAuth.prototype._findGroups = function (user, callback) {
372
377
var searchFilter = self . opts . groupSearchFilter ( user ) ;
373
378
374
379
var opts = { filter : searchFilter , scope : self . opts . groupSearchScope } ;
380
+
381
+ if ( self . opts . timeLimit ) {
382
+ opts . timeLimit = self . opts . timeLimit ;
383
+ }
384
+
375
385
if ( self . opts . groupSearchAttributes ) {
376
386
opts . attributes = self . opts . groupSearchAttributes ;
377
387
}
You can’t perform that action at this time.
0 commit comments