Added samba restart and fixed typo from samba::ldap class.

This commit is contained in:
Timo Mkinen 2009-10-27 10:31:10 +02:00
parent adfbf11751
commit 7f50af6fdc

View file

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