Skip to content

Commit 82ff8e6

Browse files
a7b81a9086a7b81a9086
a7b81a9086
authored and
a7b81a9086
committed
Do not break Net::LDAP#modify_password
1 parent a7b8e5e commit 82ff8e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: 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

Diff for: lib/net/ldap/connection.rb

+2
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ def delete(args)
686686
end
687687

688688
def ldapwhoami
689+
Net::LDAP::AsnSyntax[139] = :string
689690
ext_seq = [Net::LDAP::WhoamiOid.to_ber_contextspecific(0)]
690691
request = ext_seq.to_ber_appsequence(Net::LDAP::PDU::ExtendedRequest)
691692

@@ -698,6 +699,7 @@ def ldapwhoami
698699
raise Net::LDAP::ResponseMissingOrInvalidError, "response missing or invalid"
699700
end
700701

702+
Net::LDAP::AsnSyntax[139] = nil
701703
pdu
702704
end
703705

0 commit comments

Comments
 (0)