Private Sub FillDropdown() Dim oroot As DirectoryEntry = New DirectoryEntry("LDAP://OU=Groups Application,OU=Unified Data Centers,DC=one,DC=ads,DC=che,DC=org") Dim osearcher As DirectorySearcher = New DirectorySearcher(oroot) Dim oresult As SearchResultCollection Dim result As SearchResult Dim list As New List(Of String) osearcher.Filter = "(&(objectCategory=user)(memberOf=OU=Groups Application,OU=Unified Data Centers,DC=one,DC=ads,DC=che,DC=org))" ' search filter; only display emp with firstname / lastname pair osearcher.PropertiesToLoad.Add("name") ' member oresult = osearcher.FindAll() For Each result In oresult If Not result.GetDirectoryEntry.Properties("name").Value Is Nothing Then List.Add(result.GetDirectoryEntry.Properties("name").Value.ToString()) Call List.Sort() End If Next ' LVGlobal.subitems.add ListBox1.Items.Add(list) End Sub
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: