Hi all,

I use openldap and it's newer slapd.d style of housing the configuration
(as opposed to /etc/openldap/slapd.conf ).

As such, to modify the config, the database itself, I'd prefer to use
ldapmodify and ldapadd commands.

I couldn't find an existing ldap provider to nicely manage database entries
(DNs), so I wrote one.

It essentially does this:

- Translate the puppet "ldapdn" resource into an in-memory ldif
- ldapsearch the existing dn to verify the current contents (if any)
- compare the results of the search with what should be the case
- work out which add/modify/delete commands are required to get to the
desired state
- write out an appropriate ldif file
- execute it via an ldapmodify statement.

It's in it's infancy, but feel free to have a look

https://github.com/gtmtechltd/puppet_ldapdn - bit.ly/16wzHVp <http://t.co/mTYD1zFDbL>

Hope this is useful to someone, I will add more to it when I can.



You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
postedMar 16, '13 at 1:27a
activeMar 16, '13 at 1:27a

1 user in discussion

Geoff: 1 post



site design / logo © 2021 Grokbase