Making return codes consistent for add and modify.
This commit is contained in:
parent
a3824392bf
commit
fece50c844
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
#--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue