Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
|
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 17th, 2005, 05:22 PM
Registered User
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problems in retrieving attribute value....

Hi everybody,

I am currently having to retrieve some data from a MS Site Server membership directory (that uses LDAP) using ADSI programming.

Specifically I need to retrieve ALL the members (and groups) that are directly under a specified group.
ALL the groups from a specified member through:

    hr = pIADs->GetEx(L"Groups", vMemberOfs);

where pIADs is a IADs object obtained through

 COMCALL(pIDirObject->QueryInterface(IID_IADs, (void**)&pIADs));

pIDirObject is an IDirectoryObject that has been successfully (verified properly) bound to the specified group or membership object (for example cn=adams,ou=HCP,o=Microsoft)

but strange enough I am not able to retrieve all the MEMBERS of a specified group (of MGROUP schema) through

    hr = pIADs->GetEx(L"Member", vMemberOfs); (or by using "Members" or "memberOf" instead)

on which I am getting "Attribute not defined" error. Shouldn't all directories necessarily include this attribute? [Get("Groups", obviously is yielding the same results]

I would appreciate if someone suggests some alternative. Ths issue would be solved if someone can suggest

1. a code to list all the members and/or direct groups under a specified group, through getex,get or idirectorysearch etc., which would be a direct answer, or

2. a script to use GetEx("group") to retrieve ONLY the immediate parent groups of a member instead of all the groups(probably by including a search scope).

Any inputs will be highly appreciated.

Thanks.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace an attribute with another attribute georgemeng XSLT 8 June 10th, 2008 11:04 AM
Access to attribute values from class of attribute jacob C# 1 October 28th, 2005 01:11 PM
NEED HELP! retrieving from database nvillare .NET Web Services 5 October 22nd, 2004 12:37 AM
Having problems retrieving an array to a table! penta Access 2 September 27th, 2004 07:23 AM
VBA in Outlook: Problems retrieving dates Sach VB How-To 1 April 13th, 2004 07:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.