end
end
- ldap = LDAP::Conn.new('db.debian.org')
+ ldap = LDAP::SSLConn.new('db.debian.org', 636)
results['ldap'] = []
filter = '(hostname=' + host +')'
results['ldap'] << x
end
rescue LDAP::ResultError
+ raise Puppet::ParseError, "LDAP error"
rescue RuntimeError
+ raise Puppet::ParseError, "No data returned from search"
ensure
ldap.unbind
end