Last post Jan 05, 2007 03:18 PM by red_bull_n_vodka
Jan 05, 2007 03:18 PM|red_bull_n_vodka|LINK
I searched and tried different things for the last 2 days, so now I ask...
What I am working with: ASP.NET 2.0, VB.NET and developing on a intranet with that users will be logged into using Active Directory (we are a strickly Microsoft shop).
I have got as far as pulling a user's name (user.identity.name) and checking if they are in a paticular group (user.isinrole("Best Group Ever")).
I want to be able to: pull users real name (not doej, but John Doe), email address (we use Outlook), pull users per group, etc...
I have tried using DirectorySerices with things like:
Dim y As DirectoryEntry = New DirectoryEntry("LDAP://test_srvr1.vodka.net/dc=vodka,dc=net," _
+ "ou=Vodka Users,ou=IDs CO,ou=IDs IS")
Dim x As DirectorySearcher = New DirectorySearcher(y)
Dim z As SearchResult
x.Filter = "Goose, Grey"
For Each z In x.FindAll
Me.divData.InnerHtml = z.ToString
I get errors when I try this.
What do I have to do to get what I am looking for?
The AD folder layout to the users I would potentially look for would be
vodka.net > Vodka Users > IDs CO >
IDs IS > "Goose, Grey"