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
|
include samba::server
|
||||||
|
|
||||||
exec { "smbpasswd -w":
|
exec { "smbpasswd -w":
|
||||||
command => "smbpasswd -w '${SECRET}'",
|
command => "smbpasswd -w \"\${SECRET}\"",
|
||||||
environment => "SECRET=${samba_ldap_pass}",
|
environment => "SECRET=${samba_ldap_pass}",
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
unless => "tdbtool /etc/samba/secrets.tdb keys | fgrep 'SECRETS/LDAP_BIND_PW/'",
|
unless => "tdbtool /etc/samba/secrets.tdb keys | fgrep 'SECRETS/LDAP_BIND_PW/'",
|
||||||
require => Package["samba"],
|
require => Package["samba"],
|
||||||
|
notify => Service["smb"],
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue