![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||