Hello,
In addition to the main bug report, here's another patch that
improves the functionality of the KeyByKey option by setting
the LDAP search base to the exact key that is requested.
Davor Ocelic
[EMAIL PROTECTED]
--- LDAP.pm 2008-04-23 21:46:10.000000000 +0200
+++ LDAP.pm,searchbase 2008-04-23 21:46:19.000000000 +0200
@@ -325,10 +200,10 @@
my $entry_cn = shift;
my $data = $this->{ds}->search(
- base => $this->{basedn},
+ base => 'cn=' . $entry_cn . ',' . $this->{basedn},
sizelimit => 0,
timelimit => 0,
- filter => "(&(cn=$entry_cn)(objectclass=debconfDbEntry))");
+ filter => "(objectclass=debconfDbEntry)");
if ($data->code) {
$this->error("Search failed: ".$data->error);