[Samba] simple command to check domain membership
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 ?
Thanks in advance,
--
Mikael Kermorgant
--
To unsubscribe from this list go to the following URL and read the
instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
Re: [Samba] simple command to check domain membership
Also, "wbinfo -t" is good to test winbind's connection to the trusted dc
with the trust account.
Cheers - Michael
Guenther Deschner wrote:[color=blue]
> Mikael Kermorgant wrote:[color=green]
> >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 ?[/color]
>
> net ads testjoin
> or
> net rpc testjoin
>
> should do it.
>
>
> Guenther
>
> --
> Günther Deschner GPG-ID: 8EE11688
> Red Hat [email]gdeschner@redhat.com[/email]
> Samba Team [email]gd@samba.org[/email]
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url][/color]
--
Michael Adam <ma@sernet.de> <obnox@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
[url]http://www.SerNet.DE[/url], mailto: Info @ SerNet.DE
--
To unsubscribe from this list go to the following URL and read the
instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: comment
iD8DBQFIboIGyU9JOBhPkDQRAm5LAJ9mPV+4xM3oORj6pQ+AKMFVmkREAACffRCZ
YHqfXsrmMJ01pmsTx7su9s0=
=mm0z
-----END PGP SIGNATURE-----