Nagios-Plugin-LDAP

 view release on metacpan or  search on metacpan

lib/Nagios/Plugin/LDAP.pm  view on Meta::CPAN

  if ($ssl and !eval { require Net::LDAPS }) {
    my $err = $@;
    $self->add_message(WARNING, $err);
    return;
  }

  my $ldap = $class->new(
    $hostname,
    timeout => $timeout,
    version => $version,
    inet6   => $ipv6,
  );

  unless ($ldap) {
    my $err = $@;
    $self->add_message(CRITICAL, "$hostname: " . $err);
    return;
  }

  if ($starttls) {
    my $mesg = $ldap->start_tls;



( run in 0.328 second using v1.01-cache-2.11-cpan-87723dcf8b7 )