Removed kludge used to test if host is joined to domain.

This commit is contained in:
Timo Mkinen 2009-11-16 08:06:25 +02:00
parent d34b44cf8c
commit bd64cd7545

View file

@ -102,7 +102,7 @@ class samba::domainmember {
command => "net join -U ${samba_join_user}%\"\${SECRET}\"",
environment => "SECRET=${samba_join_pass}",
path => "/bin:/usr/bin:/sbin:/usr/sbin",
onlyif => "rpcclient localhost -c 'srvinfo' -U root%'' 2>&1 | grep 'NT_STATUS_CANT_ACCESS_DOMAIN_INFO'",
unless => "net rpc testjoin -U ${samba_join_user}%\"\${SECRET}\"",
require => Service["smb"],
}