From 7f50af6fdc99404163e877b02b3f04a712d8ccdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 27 Oct 2009 10:31:10 +0200 Subject: [PATCH] Added samba restart and fixed typo from samba::ldap class. --- samba/manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samba/manifests/init.pp b/samba/manifests/init.pp index 8b50768..3b12cb5 100644 --- a/samba/manifests/init.pp +++ b/samba/manifests/init.pp @@ -121,11 +121,12 @@ class samba::ldap { include samba::server exec { "smbpasswd -w": - command => "smbpasswd -w '${SECRET}'", + command => "smbpasswd -w \"\${SECRET}\"", environment => "SECRET=${samba_ldap_pass}", path => "/bin:/usr/bin:/sbin:/usr/sbin", unless => "tdbtool /etc/samba/secrets.tdb keys | fgrep 'SECRETS/LDAP_BIND_PW/'", require => Package["samba"], + notify => Service["smb"], } }