Where to get all available properties name for DirectorySearcher constuctor?

Last post 06-18-2008 11:50 AM by KentZhou. 2 replies.

Sort Posts:

  • Where to get all available properties name for DirectorySearcher constuctor?

    06-17-2008, 4:05 PM
    • Participant
      1,018 point Participant
    • KentZhou
    • Member since 05-03-2006, 11:48 AM
    • Posts 573

    When using constructor to instance an object of  DirectorySearcher, there is parameter prppertiesToLoad that is a array of property names

    Dim ds As DirectorySearcher = New DirectorySearcher(searchRoot, sFilter, columns, SearchScope.Subtree)

    For example {"givenName", "sn", "cn", "sAMAccountName", "telephoneNumber", "l"}

    Where to get all available property name for those properties? 

    I want to get the properties for Account is locked out for the user account I searched out.  

  • Re: Where to get all available properties name for DirectorySearcher constuctor?

    06-17-2008, 4:32 PM
    • Participant
      1,960 point Participant
    • raghu1
    • Member since 10-28-2005, 3:50 PM
    • Posts 472

    short answer:

    Result collection -->Get a single director entry --> result property collection -->Loop thru all the attributes(sn,cn....) in the result property collection for the directory entry...

    I think I got the above correct. Also I would suggest read the DirectoryServices class.  All the objects/properties/methods/collections ... are well documented in MSDN.

  • Re: Where to get all available properties name for DirectorySearcher constuctor?

    06-18-2008, 11:50 AM
    • Participant
      1,018 point Participant
    • KentZhou
    • Member since 05-03-2006, 11:48 AM
    • Posts 573

    Good idea. Thanks.

Page 1 of 1 (3 items)