From 42b2582bbc2793103c115e170dbde8c93f7b7009 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Tue, 28 Oct 2014 14:06:40 +0200 Subject: [PATCH] ldap: Fix running slaptest if database is empty. --- ldap/manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldap/manifests/init.pp b/ldap/manifests/init.pp index b74d7c1..ef63842 100644 --- a/ldap/manifests/init.pp +++ b/ldap/manifests/init.pp @@ -497,7 +497,8 @@ class ldap::server { } exec { "slaptest": - command => "slaptest -f ${config}/slapd.conf", + command => "slaptest -f ${config}/slapd.conf -u", + user => $user, path => "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin", refreshonly => true, require => File["${config}/slapd.conf.d"],