pisymbol .
2013-Sep-30 16:02 UTC
[Samba] How to tell a machine is properly joined to a domain?
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'?) -aps
Denis Cardon
2013-Sep-30 18:40 UTC
[Samba] How to tell a machine is properly joined to a domain?
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