Re: Missing MemberOf Attribute in Active Directory Objects.

Tech-Archive recommends: Fix windows errors by optimizing your registry



Ah, I see what you are doing wrong.

Based on your original code, memberOf is not in the collection of attributes
from the search because it was no added to the PropertiesToLoad property.

You should do something like this:

directorySearcher.PropertiesToLoad.Add("memberOf");

Then you should be okay.

This is required because the DirectorySearcher is designed to return only
the attributes you requested. It does not return all of the attributes by
default like ldp.exe does when no specific attributes are requested.

HTH,

Joe K.

<pitdog@xxxxxxxxx> wrote in message
news:1115660212.540437.139970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> The attribute MemberOf is availible when I search through LDP.exe
>


.



Relevant Pages

  • Export/Import
    ... Right now i'm using LDIFDE to export/import. ... to import back the users some information is missing. ... import the memberOf attribute? ... Prev by Date: ...
    (microsoft.public.windows.server.active_directory)
  • RE: How to export Group information
    ... either in ad or on the local computer. ... Look at exporting the memberOf attribute of a group via a script or dsquery ... Prev by Date: ...
    (microsoft.public.win2000.active_directory)
  • Re: Missing MemberOf Attribute in Active Directory Objects.
    ... Thanks alot for the reply. ... This has proven to be a very frusterationg ... "Perhaps you are seeing this because the memberof attrubite is truly ... Prev by Date: ...
    (microsoft.public.windows.server.active_directory)