I have read several posts on this topic, but I still need help. I have an asp.net c# web forms application. I would like to populate a dropdown list with an organizational unit in active directory. I have the server name (xyz.org), search base (DC=xyz,DC=org), Port Number (389), user name, password and organizational unit (Standard Users).
I have added the following to the connectionstring section of the web.config file:
<add name="ADCnxn" connectionString="LDAP:\\xyz.org\OU=Standard User,DC=xyz,DC=org"/>
I have also added the System.DirectoryServices reference to the project. I just need to know the next steps. Any help would be greatly appreciated.
I am using Visual Studio 2013 and the framework version is 4.5.1.
Please let me know if additional information is required.