[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-ldap-dev
Subject: Finding Domains in the GC
From: Eric Nichols <eric.nichols () dir-wizards ! com>
Date: 2002-12-12 2:23:59
[Download RAW message or body]
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!
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic