Skip to content

Commit

Permalink
resolve issue with ApacheDS Error - BerError: unsupported object type…
Browse files Browse the repository at this point in the history
…: id=139
  • Loading branch information
jwang committed Oct 12, 2011
1 parent 6bb9fa6 commit 2128047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/net/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1394,9 +1394,9 @@ def search(args = {})
false.to_ber,
rfc2696_cookie.map{ |v| v.to_ber}.to_ber_sequence.to_s.to_ber
].to_ber_sequence if paged_searches_supported
controls = controls.to_ber_contextspecific(0)
controls = controls.empty? ? nil : controls.to_ber_contextspecific(0)

pkt = [next_msgid.to_ber, request, controls].to_ber_sequence
pkt = [next_msgid.to_ber, request, controls].compact.to_ber_sequence
@conn.write pkt

result_code = 0
Expand Down

0 comments on commit 2128047

Please sign in to comment.