Signed-off-by: Stephen Gran <steve@lobefin.net>
attributes << 'hostname'
end
attributes << 'hostname'
end
ldap = LDAP::SSLConn.new('db.debian.org', 636)
results = {}
ldap = LDAP::SSLConn.new('db.debian.org', 636)
results = {}
unless attributes.include?("*")
next if attributes.any?{ |a| not x[a] or x[a].empty? }
end
unless attributes.include?("*")
next if attributes.any?{ |a| not x[a] or x[a].empty? }
end
+ results[x['hostname']] = []
+ results[x['hostname']] << x
end
rescue LDAP::ResultError
raise Puppet::ParseError, "LDAP error"
end
rescue LDAP::ResultError
raise Puppet::ParseError, "LDAP error"