Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to Find all the node names in ActiveDirectory?

I want to get all the node names in ActiveDirectory via LDAP Server.
Posted

1 solution

Did you try to Google it? MSDN already has an article for this, Using Active Directory to Find the Head Nodes[^] and yes it is using LDAP.
 
Share this answer
 
Comments
Korathu123 2-Nov-15 9:15am    
i tried the same but I am not getting error Index out of range. In mine I have root node say Test7 and child nodes are cn=OrgPerson,cn=Person,o=oid etc. I want to fetch them.


I tried with
searchRoot = new DirectoryEntry("LDAP://" + "nestit-283" + ":" + "389" + "/" + "dc=maxcrc,dc=com", "cn=Manager,dc=maxcrc,dc=com", "secret", AuthenticationTypes.None);
domain = new DirectoryEntry("LDAP://" + searchRoot.Properties["defaultNamingContext"][0]);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900