Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've written VB.Net code to get attribute information from LDAP server. I would like to show user friendly name / description of the attribute. Is there any way of doing this in .Net?

Dim originalObj As System.DirectoryServices.DirectoryEntry
originalObj = TryCast(result.GetDirectoryEntry(), System.DirectoryServices.DirectoryEntry)
Dim originalProp As String
Dim value As String

For Each originalProp In originalObj.Properties.PropertyNames
    resultRow = resultTable.NewRow()
    value = originalObj.Properties(originalProp)(0).ToString()
    resultRow("Name") = originalProp
    resultRow("Details") = ???
    resultTable.Rows.Add(resultRow)
Next


Any pointers will be appreciated
Posted

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