Directory Structure ?

  • Thread starter Thread starter Arvind P Rangan
  • Start date Start date
A

Arvind P Rangan

Hi,
How do u interpret a Active Directory Structure into code format.
Like i have a ADS Structrue
like this
main.domain.com
+ AB
+ UB
+ AC

All my information are in AC
How do u interpret this in code format.
we normally type
LDAP:\\domain\ou=ab\ou=ub\ou=ac, dc=main,dc=domain,dc=com;
Can some body help me give me simple code format for the above domain
structure for asp.net or any code.
LDAP format pls
ARvind.
 
it shoul;d be in the format

LDAP://ou=ac,ou=ub,ou=ab,dc=main,dc=domain,dc=com

Ie. to access a user in VBS it would be

Set objUser =
GetObject("LDAP://cn=User1,ou=ac,ou=ub,ou=ab,dc=main,dc=domain,dc=com")
 
Back
Top