Link to home
Start Free TrialLog in
Avatar of 249Central
249Central

asked on

Problem with AD LDAP Ranges

from vb, this ldap query works for getting all the records:

<LDAP://10.0.0.1>;(&(objectCategory=Group)(cn=Group1));distinguishedname,name,member;subtree ........
however, if I try to insert a range into this query the recordset comes back with nothing:

<LDAP://10.0.0.1>;(&(objectCategory=Group)(cn=Group1));distinguishedname,name,member;range=0-9;subtree  
'this does NOT work and there are a few hundred members

Why doesn't that 2nd query work above?  Am I missing something with the RecordSet?  Does anyone have some example vb code that they have used with ldap ranges that I could compare?

I have read a very similar question from Pber posted here:
https://www.experts-exchange.com/questions/20896212/AD-LDAP-problem-with-range-limits.html?query=ldap+range+problem&clearTAFilter=true

and have looked at these links already:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/example_code_for_using_ranging_to_retrieve_members_of_a_group.asp

http://support.microsoft.com/default.aspx?scid=kb;en-us;814925

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/searching_using_range_retrieval.asp
ASKER CERTIFIED SOLUTION
Avatar of dlwyatt82
dlwyatt82
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 249Central
249Central

ASKER

Thanks.  That was exactly what it was.