@@ -191,7 +191,7 @@ Client.prototype.abandon = function abandon (messageId, controls, callback) {
191
191
192
192
const req = new AbandonRequest ( {
193
193
abandonId : messageId ,
194
- controls : controls
194
+ controls
195
195
} )
196
196
197
197
return this . _send ( req , 'abandon' , null , callback )
@@ -247,7 +247,7 @@ Client.prototype.add = function add (name, entry, controls, callback) {
247
247
const req = new AddRequest ( {
248
248
entry : ensureDN ( name ) ,
249
249
attributes : entry ,
250
- controls : controls
250
+ controls
251
251
} )
252
252
253
253
return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , callback )
@@ -286,7 +286,7 @@ Client.prototype.bind = function bind (name,
286
286
name : name || '' ,
287
287
authentication : 'Simple' ,
288
288
credentials : credentials || '' ,
289
- controls : controls
289
+ controls
290
290
} )
291
291
292
292
// Connection errors will be reported to the bind callback too (useful when the LDAP server is not available)
@@ -329,8 +329,8 @@ Client.prototype.compare = function compare (name,
329
329
const req = new CompareRequest ( {
330
330
entry : ensureDN ( name ) ,
331
331
attribute : attr ,
332
- value : value ,
333
- controls : controls
332
+ value,
333
+ controls
334
334
} )
335
335
336
336
return this . _send ( req , CMP_EXPECT , null , function ( err , res ) {
@@ -360,7 +360,7 @@ Client.prototype.del = function del (name, controls, callback) {
360
360
361
361
const req = new DeleteRequest ( {
362
362
entry : ensureDN ( name ) ,
363
- controls : controls
363
+ controls
364
364
} )
365
365
366
366
return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , callback )
@@ -397,7 +397,7 @@ Client.prototype.exop = function exop (name, value, controls, callback) {
397
397
const req = new ExtendedRequest ( {
398
398
requestName : name ,
399
399
requestValue : value ,
400
- controls : controls
400
+ controls
401
401
} )
402
402
403
403
return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , function ( err , res ) {
@@ -471,8 +471,8 @@ Client.prototype.modify = function modify (name, change, controls, callback) {
471
471
472
472
const req = new ModifyRequest ( {
473
473
object : ensureDN ( name ) ,
474
- changes : changes ,
475
- controls : controls
474
+ changes,
475
+ controls
476
476
} )
477
477
478
478
return this . _send ( req , [ errors . LDAP_SUCCESS ] , null , callback )
@@ -511,7 +511,7 @@ Client.prototype.modifyDN = function modifyDN (name,
511
511
const req = new ModifyDNRequest ( {
512
512
entry : DN . fromString ( name ) ,
513
513
deleteOldRdn : true ,
514
- controls : controls
514
+ controls
515
515
} )
516
516
517
517
if ( newDN . length !== 1 ) {
@@ -629,11 +629,11 @@ Client.prototype.search = function search (base,
629
629
}
630
630
631
631
const pager = new SearchPager ( {
632
- callback : callback ,
633
- controls : controls ,
632
+ callback,
633
+ controls,
634
634
pageSize : size ,
635
635
pagePause : pageOpts . pagePause ,
636
- sendRequest : sendRequest
636
+ sendRequest
637
637
} )
638
638
pager . begin ( )
639
639
} else {
@@ -723,7 +723,7 @@ Client.prototype.starttls = function starttls (options,
723
723
self . _tracker . parser . write ( data )
724
724
} )
725
725
secure . on ( 'error' , function ( err ) {
726
- self . log . trace ( { err : err } , 'error event: %s' , new Error ( ) . stack )
726
+ self . log . trace ( { err } , 'error event: %s' , new Error ( ) . stack )
727
727
728
728
self . emit ( 'error' , err )
729
729
sock . destroy ( )
@@ -744,7 +744,7 @@ Client.prototype.starttls = function starttls (options,
744
744
const req = new ExtendedRequest ( {
745
745
requestName : '1.3.6.1.4.1.1466.20037' ,
746
746
requestValue : null ,
747
- controls : controls
747
+ controls
748
748
} )
749
749
750
750
return this . _send ( req ,
@@ -857,7 +857,7 @@ Client.prototype.connect = function connect () {
857
857
function initSocket ( server ) {
858
858
tracker = messageTrackerFactory ( {
859
859
id : server ? server . href : self . socketPath ,
860
- parser : new Parser ( { log : log } )
860
+ parser : new Parser ( { log } )
861
861
} )
862
862
863
863
// This won't be set on TLS. So. Very. Annoying.
@@ -996,7 +996,7 @@ Client.prototype.connect = function connect () {
996
996
socket . end ( )
997
997
} )
998
998
socket . on ( 'error' , function onSocketError ( err ) {
999
- log . trace ( { err : err } , 'error event: %s' , new Error ( ) . stack )
999
+ log . trace ( { err } , 'error event: %s' , new Error ( ) . stack )
1000
1000
1001
1001
self . emit ( 'error' , err )
1002
1002
socket . destroy ( )
0 commit comments