Added samba restart and fixed typo from samba::ldap class.
This commit is contained in:
parent
adfbf11751
commit
7f50af6fdc
1 changed files with 2 additions and 1 deletions
|
@ -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"],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue