Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created May 20, 2014 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhandley/f2e464b7ad039ad12b38 to your computer and use it in GitHub Desktop.
Save seanhandley/f2e464b7ad039ad12b38 to your computer and use it in GitHub Desktop.
ldap_entry { 'cn=Foo,ou=Bar,dc=baz,dc=co,dc=uk':
ensure => present,
host => '1.2.3.4',
port => 636,
base => 'dc=baz,dc=co,dc=uk',
username => 'cn=admin,dc=baz,dc=co,dc=uk',
password => 'password',
attributes => { givenName => 'Foo',
objectClass => ["top", "person", "inetorgPerson"]}
}
ldap_entry { 'cn=Baz,ou=Bar,dc=baz,dc=co,dc=uk':
ensure => absent,
base => 'dc=baz,dc=co,dc=uk',
host => '1.2.3.4',
username => 'cn=admin,dc=baz,dc=co,dc=uk',
password => 'password',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment