summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes/LDAP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping/probes/LDAP.pm')
-rw-r--r--lib/Smokeping/probes/LDAP.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Smokeping/probes/LDAP.pm b/lib/Smokeping/probes/LDAP.pm
index 61d2957..a67e4a8 100644
--- a/lib/Smokeping/probes/LDAP.pm
+++ b/lib/Smokeping/probes/LDAP.pm
@@ -211,7 +211,7 @@ sub pingone {
}
local $IO::Socket::SSL::SSL_Context_obj; # ugly but necessary
$start = gettimeofday();
- my $ldap = new Net::LDAP($host, port => $port, version => $version, timeout => $timeout, scope => $scope)
+ my $ldap = new Net::LDAP($host, port => $port, version => $version, timeout => $timeout)
or do {
$self->do_log("connection error on $host: $!");
next;
@@ -238,7 +238,8 @@ sub pingone {
$ldap->unbind;
next;
};
- $mesg = $ldap->search(base => $base, filter => $filter, attrs => $attrsref);
+ $mesg = $ldap->search(base => $base, filter => $filter,
+ attrs => $attrsref, scope => $scope);
$mesg->code and do {
$self->do_log("filter error on $host: " . $mesg->error);
$ldap->unbind;