@@ -44,7 +44,7 @@ def open_connection(server)
44
44
encryption = server [ :encryption ]
45
45
46
46
socket_opts = {
47
- connect_timeout : server [ :connect_timeout ] || DefaultConnectTimeout
47
+ connect_timeout : server [ :connect_timeout ] || DefaultConnectTimeout ,
48
48
}
49
49
50
50
errors = [ ]
@@ -133,7 +133,7 @@ def setup_encryption(args)
133
133
when :start_tls
134
134
message_id = next_msgid
135
135
request = [
136
- Net ::LDAP ::StartTlsOid . to_ber_contextspecific ( 0 )
136
+ Net ::LDAP ::StartTlsOid . to_ber_contextspecific ( 0 ) ,
137
137
] . to_ber_appsequence ( Net ::LDAP ::PDU ::ExtendedRequest )
138
138
139
139
write ( request , nil , message_id )
@@ -283,7 +283,7 @@ def encode_sort_controls(sort_definitions)
283
283
sort_control = [
284
284
Net ::LDAP ::LDAPControls ::SORT_REQUEST . to_ber ,
285
285
false . to_ber ,
286
- sort_control_values . to_ber_sequence . to_s . to_ber
286
+ sort_control_values . to_ber_sequence . to_s . to_ber ,
287
287
] . to_ber_sequence
288
288
end
289
289
@@ -396,7 +396,7 @@ def search(args = nil)
396
396
time . to_ber ,
397
397
attrs_only . to_ber ,
398
398
filter . to_ber ,
399
- ber_attrs . to_ber_sequence
399
+ ber_attrs . to_ber_sequence ,
400
400
] . to_ber_appsequence ( Net ::LDAP ::PDU ::SearchRequest )
401
401
402
402
# rfc2696_cookie sometimes contains binary data from Microsoft Active Directory
@@ -409,7 +409,7 @@ def search(args = nil)
409
409
Net ::LDAP ::LDAPControls ::PAGED_RESULTS . to_ber ,
410
410
# Criticality MUST be false to interoperate with normal LDAPs.
411
411
false . to_ber ,
412
- rfc2696_cookie . map { |v | v . to_ber } . to_ber_sequence . to_s . to_ber
412
+ rfc2696_cookie . map { |v | v . to_ber } . to_ber_sequence . to_s . to_ber ,
413
413
] . to_ber_sequence if paged
414
414
controls << ber_sort if ber_sort
415
415
controls = controls . empty? ? nil : controls . to_ber_contextspecific ( 0 )
@@ -503,7 +503,7 @@ def search(args = nil)
503
503
MODIFY_OPERATIONS = { #:nodoc:
504
504
:add => 0 ,
505
505
:delete => 1 ,
506
- :replace => 2
506
+ :replace => 2 ,
507
507
}
508
508
509
509
def self . modify_ops ( operations )
@@ -535,7 +535,7 @@ def modify(args)
535
535
message_id = next_msgid
536
536
request = [
537
537
modify_dn . to_ber ,
538
- ops . to_ber_sequence
538
+ ops . to_ber_sequence ,
539
539
] . to_ber_appsequence ( Net ::LDAP ::PDU ::ModifyRequest )
540
540
541
541
write ( request , nil , message_id )
0 commit comments