From c11ec4425857f845e66da1dc2ab2bc2a5fae9806 Mon Sep 17 00:00:00 2001 From: Daniel Abrahamsson Date: Thu, 25 Aug 2011 13:14:10 +0200 Subject: [PATCH] Bugfix: rename failed because of unqualified constants --- lib/net/ldap.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index b0105fc..0f1fe65 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -1529,7 +1529,9 @@ class Net::LDAP::Connection #:nodoc: pkt = [next_msgid.to_ber, request.to_ber_appsequence(12)].to_ber_sequence @conn.write pkt - (be = @conn.read_ber(AsnSyntax)) && (pdu = LdapPdu.new( be )) && (pdu.app_tag == 13) or raise LdapError.new( "response missing or invalid" ) + (be = @conn.read_ber(Net::LDAP::AsnSyntax)) && + (pdu = Net::LDAP::PDU.new( be )) && (pdu.app_tag == 13) or + raise Net::LDAP::LdapError.new( "response missing or invalid" ) pdu.result_code end