2

When using System.DirectoryServices.DirectoryEntry.SchemaClassName or System.DirectoryServices.DirectoryEntry.SchemaEntry.Name, how do I know what the possible values are for a specific target directory? I know of container, and I'm sure there is group and user, but there must be a way of knowing the universe of possible names.

rory.ap
  • 34,009
  • 10
  • 83
  • 174
  • AD is [Extensible](https://msdn.microsoft.com/en-us/library/ms676900(v=vs.85).aspx) by practically anyone. You might gather the *common* names from an unextended AD setup but you'll not be able to construct as *exhaustive* list of possible names. – Damien_The_Unbeliever Aug 30 '16 at 13:52
  • @Damien_The_Unbeliever -- surely there's some way of querying the schema names from a given directory, isn't there? – rory.ap Aug 30 '16 at 13:53
  • Ah, I thought you were looking for "here's a list of all of the possible names that your code can ever encounter" rather than "in the directory that you're currently querying, these are the current possible names". That second may be doable. – Damien_The_Unbeliever Aug 30 '16 at 13:55
  • Yes, I've updated my question slightly to clarify. – rory.ap Aug 30 '16 at 13:56

0 Answers0