A customer has re****ted one of my programs returning only 6 members of
a group when the group has many more members. I'm using
IDirectoryObject with GetObjectAttributes and a ranged search e.g.
"member;Range=0-19" for the first call. GetObjectAttributes returns
SUCCESS, one object and 6 values (6 members). If I call it again with
range 6-25, I get error 0x80072020 (An operations error occurred)
which is identical to the error returned for any request where the
first element of the range exceeds the actual number of members. A
screenshot from ADUC confirms there are more than 6 members.
I've also tried the "attribute scope query" method which again returns
6 members and no error.
Any suggestions? This is an AD 2003 domain with a forest root, on
Windows 2003 R2 Enterprise x64 SP1.
Is there a reliable ADSI method to get group members? I had previously
abandoned the attribute scope query method after a customer re****ted
this method quit upon encountering a member in a child domain, whereas
the IDirectorySearch method worked reliably for the same group.
TIA, John