Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Not all users are retrieved in an LDAP query via ASP

Reply
 
Old 10-08-2008   #1 (permalink)
Newcomsas


 
 

Not all users are retrieved in an LDAP query via ASP

Hello.
I'm literally fighting with a query that retrievs (or should retrieve) all
the users of a rather huge domain in ActiveDirectory.
I have got an ASP page that performs an LDAP query with this SQL-like
string:

strSQL = "Select displayName,givenName,SN,SamAccountname,distinguishedName
from 'LDAP://MYSERVER' Where objectCategory='person' AND objectClass='user'
AND name='*'"

Everything seems to work fine with the notable exeption that NOT all the
users are actually returned. I made several tests (for several hours...) and
I came to the conclusion that the query is correct but 'somewhere' a limit
on the maximum number of results in a query via ASP is set on the AD Server.

Is there anyone who knows if there is a solution to the problem, and could
tell me how to get rid of this limitation ?

Every help would be much appreciated, thank you.

Newcomsas




My System SpecsSystem Spec
Old 10-09-2008   #2 (permalink)
Newcomsas


 
 

Re: Not all users are retrieved in an LDAP query via ASP

Yes, in effect that is the solution to the problem. I changed the
MaxPageSize property in the LDAP criteria of AD to 10000 and everything
worked fine.

Here is the link with the detailed instructions I have followed:
http://support.microsoft.com/kb/315071/

Newcomsas


"James Whitlow" <jwhitlow.60372693@xxxxxx> ha scritto nel messaggio
news:etx$TkXKJHA.5904@xxxxxx
bly they are 2-3000).
Quote:

> Try setting the page size to a value less than 1000. This has always
> worked for me. If I set the page size to a value less than 1000, I get all
> of my records, regardless of how many there are. If I set the page size to
> 1000 or higher, I only get 1000 records.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
LDAP Query to filter disabled account .NET General
working LDAP query, well almost.. 800A000D VB Script
Query LDAP to get user Telephone VB Script
How can I query LDAP in WLM? Live Mail
help with LDAP query PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46