Making return codes consistent for add and modify.

This commit is contained in:
Austin Ziegler 2010-03-24 21:48:01 -04:00
parent a3824392bf
commit fece50c844
2 changed files with 6 additions and 2 deletions

View file

@ -28,6 +28,10 @@
* Replaced calls to #to_a with calls to Kernel#Array; since Ruby 1.8.3, the
default #to_a implementation has been deprecated and should be replaced
either with calls to Kernel#Array or [value].flatten(1).
* Modified #add and #modify to return a Pdu#result_code instead of a
Pdu#result. This may be changed in Net::LDAP 1.0 to return the full
Pdu#result, but if we do so, it will be that way for all LDAP calls
involving Pdu objects.
=== Net::LDAP 0.1.1 / 2010-03-18
* Fixing a critical problem with sockets.

View file

@ -1513,7 +1513,7 @@ module Net
@conn.write pkt
(be = @conn.read_ber(AsnSyntax)) && (pdu = LdapPdu.new( be )) && (pdu.app_tag == 7) or raise LdapError.new( "response missing or invalid" )
pdu.result
pdu.result_code
end
#--
@ -1536,7 +1536,7 @@ module Net
@conn.write pkt
(be = @conn.read_ber(AsnSyntax)) && (pdu = LdapPdu.new( be )) && (pdu.app_tag == 9) or raise LdapError.new( "response missing or invalid" )
pdu.result
pdu.result_code
end
#--