diff --git a/lib/puppet_x/ldapquery.rb b/lib/puppet_x/ldapquery.rb index 016bd3f..c639bdf 100644 --- a/lib/puppet_x/ldapquery.rb +++ b/lib/puppet_x/ldapquery.rb @@ -107,7 +107,7 @@ module PuppetX Puppet.debug("ldapquery(): Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds and returned #{entries.length} results") return entries - rescue LdapError => e + rescue Net::LDAP::LdapError => e Puppet.debug("There was an error searching LDAP #{e.message}") Puppet.debug('Returning false') return false