Site menu:

Enhost

A simple tool for collecting facts from facter and storing them in LDAP. Comes with an LDAP schema.

You generally will need to create a hostmaster user who can modify hosts. Enhost is currently only set up to use a single user for all host modifications, but it could conceivably be set up to authenticate as the host being managed (although it could not then create the host in the first place).

Configuration

The easiest way to configure enhost is to create /etc/enhost.conf and put the user, server, and password in there. The only item you must provide is the password; enhost defaults to the server being named ``ldap``, and it defaults to the user being ``uid=hostmaster,ou=People,dc=,dc=``, e.g, ``uid=hostmaster,ou=People,dc=madstop,dc=com``.

You can also just create /etc/ldap/hostmaster and put the password in there.

For hostmaster authentication in OpenLDAP, the following ACL should work:

access to dn.subtree="ou=Hosts,dc=madstop,dc=com" 
        by dn="cn=admin,dc=madstop,dc=com" write
        by dn="uid=hostmaster,ou=People,dc=madstop,dc=com" write
        by * read

Obviously, change your domain as appropriate.

Other than that, you just need to make sure you have Facter installed, and run ``enhost`` as a user capable of retrieving all of the information (including the password).