[Samba] simple command to check domain membership

Michael Adam ma at sernet.de
Fri Jul 4 20:03:18 GMT 2008


Also, "wbinfo -t" is good to test winbind's connection to the trusted dc
with the trust account.

Cheers - Michael

Guenther Deschner wrote:
> Mikael Kermorgant wrote:
> >Hello,
> >
> >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 ?
> 
> net ads testjoin
> or
> net rpc testjoin
> 
> should do it.
> 
> 
> Guenther
> 
> -- 
> Günther Deschner                    GPG-ID: 8EE11688
> Red Hat                         gdeschner at redhat.com
> Samba Team                              gd at samba.org
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba

-- 
Michael Adam <ma at sernet.de>  <obnox at samba.org>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20080704/33790de7/attachment.bin


More information about the samba mailing list