Re: [Samba] simple command to check domain membership
Mikael Kermorgant wrote:[color=blue]
> I'm planning to automate domain joining with samba+winbind for a classroom.
> Using cfengine, I'll have to trigger domain joining by checking current
> status via a shell command.
> An example :
> has_hostname = ( '/bin/test -f /etc/hostname' )
> What would be a simple and safe test to check whether or not the machine has
> already been joined to the domain ?[/color]
net ads testjoin
net rpc testjoin
should do it.
Günther Deschner GPG-ID: 8EE11688
Red Hat [email]firstname.lastname@example.org[/email]
Samba Team [email]email@example.com[/email]
To unsubscribe from this list go to the following URL and read the