Definitely not the whole issue but in you code at the bottom 'Users' is
not OU=Users it is CN=Users... Also, when you say PDC, I have to assume
you are talking about PDC emulator and not a PDC but if you are looking
at an NT DC make sure you test your code with WinNT:// as well as
LDAP:// You will see different results. The latest I saw was when using
the WinNT provider to look at a computer account in AD the class comes
back as User whereas when you use the same script using LDAP:// as the
provider the class comes back as computer.

-----Original Message-----
From: Stephens, Brendan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 3:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [ActiveDir] Child Domain Programming.


Continuing from Justin's Post:

Currently our intranet user management system is completely based on
LDAP and ADSI.

Our organization is now breaking up our initial server into a
parent/child domain structure. I will use PDC for the name of the domain
controller, DOMAIN for our DNS name and CHILD for the child domain.

If I specify the child domain in the programming as either: 
set ADS = getObject("LDAP://DC=CHILD,DC=DOMAIN,DC=Com";) 

or 

set ADS = getObject("LDAP://CHILD.DOMAIN.com/DC=CHILD,DC=DOMAIN,DC=com";)

It only returns the object as domainDNS and will not list any child 
objects.

The object(s) we are interested in are in a child domain of the PDC on
which the script runs.

For example, I have no problems retriving the Users container from the
PDC, but if I want the Users container from the Child Domain Controller
("LDAP://CHILD.DOMAIN.com/OU=USERS,DC=CHILD,DC=DOMAIN,DC=com";), using
either of the specified paths, it gives me a path not found
error...80072030

The script is running as Administrator, so permissions should not be an
issue.
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to