Package: libldap-ruby1.8
Version: 0.9.0-1
Severity: important
Executing the following simple program leads to execssive memory use (>
500MB within seconds):
ldap.simple_bind(Admin, Pass) do |conn|
conn.search("ou=DNS,#{Root}", LDAP_SCOPE_SUBTREE,
"(|(ildusOwner=bram)(ildusOwner=paul))") do |entry|
puts "dn: #{entry.dn}"
entry.attrs.each do |attr|
entry[attr].each do |val|
puts "#{attr}: #{val}"
end
end
puts
end
end
However, when "entry[attr].each" is replaced by its (according to the
documentation[1]) aliased version "entry.vals(attr).each" it works
fine. Also "entry.to_ldif" seems to suffer from the same problem.
Paul
1: http://ruby-ldap.sourceforge.net/rdoc/classes/LDAP/Entry.html#M000010
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.12-1-686-smp
Locale: LANG=C, [EMAIL PROTECTED] (charmap=UTF-8)
Versions of packages libldap-ruby1.8 depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libldap2 2.1.30-11 OpenLDAP libraries
ii libruby1.8 1.8.2-9 Libraries necessary to run Ruby 1.
ii libssl0.9.7 0.9.7g-2 SSL shared libraries
libldap-ruby1.8 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]