Class Puppet::Node::Ldap
In: lib/puppet/indirector/node/ldap.rb
Parent: Puppet::Indirector::Ldap

Methods

Public Instance methods

The attributes that Puppet class information is stored in.

Convert the found entry into a simple hash.

Look for our node in 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.

The parent attribute, if we have one.

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.

Default to all attributes.

The ldap search filter to use.

The attributes that Puppet will stack as array over the full hierarchy.

[Validate]