Finding Domains in the GC (fwd)

Gerald (Jerry) Carter jerry at samba.org
Thu Dec 12 16:15:00 GMT 2002


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

In case someone needed this....



jerry


- ---------- Forwarded message ----------
Date: Wed, 11 Dec 2002 21:23:59 -0500
From: Eric Nichols <eric.nichols at dir-wizards.com>
To: perl-ldap-dev at lists.sourceforge.net
Subject: Finding Domains in the GC

I answered my own question.  I thought it best to share it with the 
group.  Querying a Global Catalog for list of domain names is easy if 
each domain is a child domain.  Get the default context and walk the 
tree...  The problem I had is that can exist peer domains.  These are 
not viewable through the structure or rootdse record.  The solution is a 
fairly simple query:

base=""
objectclass=trusteddomain
attrib=cn

Each object will be a domain name inside the forest.  From the cn 
attribute it's possible to guess the context of each domain 
(test.root.com = dc=test,dc=root,dc=com).

I hope this helps someone!



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE9+LX9IR7qMdg1EfYRAlwIAJ9nUSn7o37jewuC9fZy0pMb/GJ/aACg7JJM
5/XOvDuLPFGkwtFUlZ+HE8k=
=yzNs
-----END PGP SIGNATURE-----




More information about the samba-technical mailing list