[Samba] how to list computers that are joined to the domain?

Gerald (Jerry) Carter jerry at samba.org
Fri Jun 10 12:30:52 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tomasz Chmielewski wrote:
| How to list computers that are joined to the domain?
|
| Is the best way to do:
|
| getent passwd | grep "$"
|
|
| Or perhaps there are some Samba-specific tools
| to do that?

This will get you workstation a domain trust accounts:

	pdbedit -L -w | grep '\[[WI]'




cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqYf8IR7qMdg1EfYRAqPMAJ4urgVMTX980M9SOgY3lK5UG1JkkgCfehdR
4zuCzCRAGeIDBAnOGoHYAg0=
=MqTQ
-----END PGP SIGNATURE-----


More information about the samba mailing list