Class | Puppet::Node::Ldap |
In: |
lib/puppet/indirector/node/ldap.rb
|
Parent: | Puppet::Indirector::Ldap |
Separate this out so it‘s relatively atomic. It‘s tempting to call process() instead of name2hash() here, but it ends up being difficult to test because all exceptions get caught by ldapsearch. LAK:NOTE Unfortunately, the ldap support is too stupid to throw anything but LDAP::ResultError, even on bad connections, so we are rough handed with our error handling.
Find more than one node. LAK:NOTE This is a bit of a clumsy API, because the ‘search’ method currently requires a key. It seems appropriate in some cases but not others, and I don‘t really know how to get rid of it as a requirement but allow it when desired.