net-ldap 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of net-ldap might be problematic. Click here for more details.
- data/History.rdoc +4 -0
- data/lib/net/ber.rb +1 -1
- data/lib/net/ldap.rb +6 -6
- data/lib/net/snmp.rb +1 -1
- metadata +4 -4
data/History.rdoc
CHANGED
data/lib/net/ber.rb
CHANGED
@@ -106,7 +106,7 @@ module Net # :nodoc:
|
|
106
106
|
# <tr><th>BMPString</th><th>C</th><td>30: 62 (0x3e, 0b00111110)</td></tr>
|
107
107
|
# </table>
|
108
108
|
module BER
|
109
|
-
VERSION = '0.2.
|
109
|
+
VERSION = '0.2.2'
|
110
110
|
|
111
111
|
##
|
112
112
|
# Used for BER-encoding the length and content bytes of a Fixnum integer
|
data/lib/net/ldap.rb
CHANGED
@@ -241,7 +241,7 @@ require 'net/ldap/entry'
|
|
241
241
|
# and then keeps it open while it executes a user-supplied block.
|
242
242
|
# Net::LDAP#open closes the connection on completion of the block.
|
243
243
|
class Net::LDAP
|
244
|
-
VERSION = "0.2.
|
244
|
+
VERSION = "0.2.2"
|
245
245
|
|
246
246
|
class LdapError < StandardError; end
|
247
247
|
|
@@ -1459,7 +1459,7 @@ class Net::LDAP::Connection #:nodoc:
|
|
1459
1459
|
}
|
1460
1460
|
|
1461
1461
|
def self.modify_ops(operations)
|
1462
|
-
|
1462
|
+
ops = []
|
1463
1463
|
if operations
|
1464
1464
|
operations.each { |op, attrib, values|
|
1465
1465
|
# TODO, fix the following line, which gives a bogus error if the
|
@@ -1467,10 +1467,10 @@ class Net::LDAP::Connection #:nodoc:
|
|
1467
1467
|
op_ber = MODIFY_OPERATIONS[op.to_sym].to_ber_enumerated
|
1468
1468
|
values = [ values ].flatten.map { |v| v.to_ber if v }.to_ber_set
|
1469
1469
|
values = [ attrib.to_s.to_ber, values ].to_ber_sequence
|
1470
|
-
|
1470
|
+
ops << [ op_ber, values ].to_ber
|
1471
1471
|
}
|
1472
1472
|
end
|
1473
|
-
|
1473
|
+
ops
|
1474
1474
|
end
|
1475
1475
|
|
1476
1476
|
#--
|
@@ -1482,9 +1482,9 @@ class Net::LDAP::Connection #:nodoc:
|
|
1482
1482
|
#++
|
1483
1483
|
def modify(args)
|
1484
1484
|
modify_dn = args[:dn] or raise "Unable to modify empty DN"
|
1485
|
-
|
1485
|
+
ops = self.class.modify_ops args[:operations]
|
1486
1486
|
request = [ modify_dn.to_ber,
|
1487
|
-
|
1487
|
+
ops.to_ber_sequence ].to_ber_appsequence(6)
|
1488
1488
|
pkt = [ next_msgid.to_ber, request ].to_ber_sequence
|
1489
1489
|
@conn.write pkt
|
1490
1490
|
|
data/lib/net/snmp.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Francis Cianfrocca
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2011-03-
|
22
|
+
date: 2011-03-26 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|