Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get AD Referrals

Status
Not open for further replies.

bjleiliang

Programmer
Aug 29, 2008
1
CN
i have three AD server,each domain like this
test.com(main domain)
part1.test.com(sub domain) part2.test.com(sub domain)

i want to write a small ldapviewer application,but when i use 'ldap_search' function to search AD test.com, the function return '1',i use ldap_set_option(FLDAP, LDAP_OPT_REFERRALS, LDAP_OPT_OFF); the 'ldap_search' function run success.but how can i list the sub domain AD's struct?
i need all the AD's struct to displayed within a tree
like this:

test.com
-rootou
--dept1
--dept2
-DC=part1
--dept1
-DC=part2
--dept1


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top