Base Distinguished name

K

kstahl

Can someone tell me how to extract the Base Distinguished Name
from a domain? What I need is a simple VBScript or JScript that
will extract this information by only knowing the name of the
domain in the form of xxx.xxx.com.

References to the Win2K Resource Kit are useless to me because in
this particular case I don't have access to it and the domain
administrator doesn't want to be bothered.

What I am trying to do is set up Cognos Impromptu Web Reports. Do
you LDAP authentication I need to know the base distinguished
name. I have tried using several scripts that print out items
from ADS, but I just can't determine out of everything that I am
seeing what the base distinguished name would be.

The information in the Cognos documentation is fairly useless
because the authors apparently made the assumption that the whole
world would adapt their naming scheme and that having done so
their default settings would work everywhere. Obviously that is a
false assumption, but they provide no assistence to help anyone
determine the base distinguished name.

Any help appreciated.
 
B

Brian Desmond [MVP]

With ADSI you can do a GetObject(RootDSE). You could then grab the aDsPath
property, which should have the DN.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 
K

kstahl

Brian said:
With ADSI you can do a GetObject(RootDSE). You could then grab the aDsPath
property, which should have the DN.
I'll give it a try and see what happens. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top