Last post Mar 13, 2006 12:15 PM by dunnry
Feb 21, 2006 10:54 AM|hjinag|LINK
I'm fairly new to Active Directory and I am trying to populate drop down list with names from Active Directory using ASP.NET(VB.NET). I also want to know how to retrieve user's in AD their phone, address, etc. The last thing I would like to know how to do
is find out the current user login who is on the web page.
Thank you very much!
Feb 22, 2006 09:19 AM|kjvesecky|LINK
I need to do the same but am stumped! Please let me know if you find a solution.
Mar 06, 2006 03:09 AM|whodunnit|LINK
Hey I had to do something similar. Create a drop down list name d1 and use the following code.
Dim de As DirectoryEntry = New DirectoryEntry("LDAP://dc=mydomain,dc=com")
Dim usr As String
Dim oSearcher As DirectorySearcher = New DirectorySearcher(de)
oSearcher.Sort.PropertyName = "cn"
Dim oResults As SearchResultCollection
Dim oResult As SearchResult
oResults = oSearcher.FindAll
For Each oResult In oResults
usr = oResult.GetDirectoryEntry().Properties("cn").Value
Put this code in the page load sub and you are ready to roll.
Mar 06, 2006 03:00 PM|kjvesecky|LINK
Just what I was looking for.
Mar 08, 2006 11:56 AM|dunnry|LINK
Mar 08, 2006 06:40 PM|kjvesecky|LINK
I also need to populate a listbox, or whatever control, when using Windows Security (without Active Directory).
Mar 13, 2006 12:15 PM|dunnry|LINK