#!/bin/sh set -e {% set base_dn = salt['pillar.get']('gnuviechadmin:ldap_base_dn') %} {% set ldap_admin_user = salt['pillar.get']('gnuviechadmin:ldap_admin_user') %} {% set ldap_groups_ou = salt['pillar.get']('gnuviechadmin:ldap_groups_ou') %} {% set ldap_users_ou = salt['pillar.get']('gnuviechadmin:ldap_users_ou') %} {% set ldap_admin_password = salt['pillar.get']('gnuviechadmin:ldap_admin_password') %} # setup password hashing for cleartext input ldapadd -v -H ldapi:// -Y EXTERNAL -f /etc/ldap/schema/ppolicy.ldif ldapmodify -v -H ldapi:// -Y EXTERNAL <