Class Puppet::Util::Ldap::Manager
In: lib/puppet/util/ldap/manager.rb
Parent: Object

The configuration class for LDAP providers, plus connection handling for actually interacting with ldap.

Methods

and   at   base   connect   create   delete   dn   entry2provider   filter   find   generate   generates   ldap_name   manages   maps   modify   named_by   new   puppet_name   search   update   valid?  

Attributes

location  [R] 
objectclasses  [R] 
puppet2ldap  [R] 
rdn  [R] 

Public Class methods

Public Instance methods

A null-op that just returns the config.

Set the offset from the search base and return the config.

The basic search base.

Open, yield, and close the connection. Cannot be left open, at this point.

Convert the name to a dn, then pass the args along to our connection.

Convert the name to a dn, then pass the args along to our connection.

Calculate the dn for a given resource.

Convert an ldap-style entry hash to a provider-style hash.

Create our normal search filter.

Find the associated entry for a resource. Returns a hash, minus ‘dn’, or nil if the entry cannot be found.

Generate any extra values we need to make the ldap entry work.

Declare a new attribute generator.

Return the ldap name for a puppet attribute.

Specify what classes this provider models.

Specify the attribute map. Assumes the keys are the puppet attributes, and the values are the ldap attributes, and creates a map for each direction.

Convert the name to a dn, then pass the args along to our connection.

Specify the rdn that we use to build up our dn.

Return the puppet name for an ldap attribute.

Search for all entries at our base. A potentially expensive search.

Update the ldap entry with the desired state.

Is this a complete ldap configuration?

[Validate]