Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2017 13:47
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 anonymous/e522e06dd9f913e2ebe5b3e4a3e8ca87 to your computer and use it in GitHub Desktop.
Save anonymous/e522e06dd9f913e2ebe5b3e4a3e8ca87 to your computer and use it in GitHub Desktop.
{% set ldap_base = salt['pillar.get']('openldap:base', "dc=localdomain") %}
---
ldap_add_entries:
ldap.managed:
- connect_spec:
url: "127.0.0.1"
bind:
method: simple
dn: "{{ salt['pillar.get']('openldap:rootdn') }}"
password: "{{ salt['pillar.get']('openldap:rootpw') }}"
- entries:
- ou=Groups,{{ ldap_base }}:
- default:
ou: Groups
objectClass:
- top
- organizationalunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment