Skip to content

Active Directory fields list dynamically

jeet p

Asked Jul 28, 2009, 1:25 AM EDT1 answer
Share
LinkedInX
Hi guys,

can you suggest what should I code - to get the list of Active Directory fields of a given domain?
because in one of my Apps I wrote them static (givenname,telephone etc.) - but in target domain such fields are not there or with new names or with other fields. I want dynamically all the list of fields of AD. Please help 

thanks - jeet

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Use System.DirectoryServices.DirectoryEntry class to load your Domain object. Once your object is resolved from DirectoryEntry, you can look at the schema properties to load the attributes at run time.
    0