[Samba] How to tell a machine is properly joined to a domain?

Denis Cardon denis.cardon at tranquil-it-systems.fr
Mon Sep 30 12:40:49 MDT 2013


Hi aps,

> I have been using 'net ads testjoin' but the issue is it seems to ask for a
> password when the box is not joined to a domain (even if I specify '-U
> username%pass'). This *seems* like a bug - I would expect it to pass or
> fail using the creds passed in.
>
> Is this by design and if so, why? Is there a better alternative? ('net ads
> info'?)

I think that wbinfo -t should do it. It checks the trust relation ship.

[root at srvfichiers.tranq ~]# wbinfo -t
checking the trust secret for domain TRANQUILIT via RPC calls succeeded

Denis

>
> -aps
>


-- 
Denis Cardon
Tranquil IT Systems
Les Espaces Jules Verne, bâtiment A
12 avenue Jules Verne
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.55
http://www.tranquil-it-systems.fr



More information about the samba mailing list