Skip to content

Commit 0e38c4a

Browse files
a7b81a9086zeroSteiner
a7b81a9086
authored andcommitted
Do not break Net::LDAP#modify_password
1 parent 1a27513 commit 0e38c4a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/net/ldap.rb

-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ class Net::LDAP
306306
3 => :string, # SearchFilter-extensible
307307
4 => :string, # SearchFilter-extensible
308308
7 => :string, # serverSaslCreds
309-
11 => :string, # responseValue
310309
}
311310
constructed = {
312311
0 => :array, # RFC-2251 Control and Filter-AND

lib/net/ldap/connection.rb

+2
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ def delete(args)
694694
end
695695

696696
def ldapwhoami
697+
Net::LDAP::AsnSyntax[139] = :string
697698
ext_seq = [Net::LDAP::WhoamiOid.to_ber_contextspecific(0)]
698699
request = ext_seq.to_ber_appsequence(Net::LDAP::PDU::ExtendedRequest)
699700

@@ -706,6 +707,7 @@ def ldapwhoami
706707
raise Net::LDAP::ResponseMissingOrInvalidError, "response missing or invalid"
707708
end
708709

710+
Net::LDAP::AsnSyntax[139] = nil
709711
pdu
710712
end
711713

0 commit comments

Comments
 (0)