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"], } }