Link to home
Start Free TrialLog in
Avatar of mmb1
mmb1

asked on

cfldap

I'm using CF 9.0 and when I query the ldap server, I'm only getting 1000 rows returned.

Here's my query:

<cfldap
        server="my.ldap.server"
        action="query"
        name="lookupUsers"
        start="DC=MY,DC=LDAP,DC=SERVER"
        scope="subtree"
        filter="(&(cn=*#pusername#*))"
   delimiter=";"
   separator="<br>"  
  attributes="distinguishedName,givenName,sAMAccountName,memberOf,description"
   maxrows=32000
   timeout="0"
   sort="sn"
   sortcontrol="asc"
   username="user@my.domain"
   password="xyz"
    >

#lookupUsers.RecordCount# is always 1000.

Thanks!!
Avatar of dgrafx
dgrafx
Flag of United States of America image

maybe that's how many rows there are that match that filter.
try modifying your filter.
(&(objectClass=user)(sAMAccountName=SOMEUSERNAME)) for example
Avatar of mmb1
mmb1

ASKER

I wish that were true.  However, I have 32000 users in our AD.  I've tried every solution Google has offered up and nothing gets me more than 1000 users.  

Any other suggestions?
Avatar of mmb1

ASKER

I should clarify, that if I perform the following (changing the filter), only 1000 records come back:

<cfldap
        server="my.ldap.server"
        action="query"
        name="lookupUsers"
        start="DC=MY,DC=LDAP,DC=SERVER"
        scope="subtree"
        filter="(&(cn=*))"
   delimiter=";"
   separator="<br>"  
  attributes="distinguishedName,givenName,sAMAccountName,memberOf,description"
   maxrows=32000
   timeout="0"
   sort="sn"
   sortcontrol="asc"
   username="user@my.domain"
   password="xyz"
    >
try with quotes around your maxrows="32000"

In my example filter earlier - where i wanted you to query for an example sAMAccountName - you should just get one record (or zero if it didn't exist) - did that happen or did you get 1000 records for that as well?
Avatar of mmb1

ASKER

I put in the quotes, and got the same results.  Still just received 1000 rows back.  

On the earlier query, I got one record back.  To further check, I entered a value that shouldn't return a record and it worked correctly.
well - maybe you really only have 1000 records that MATCH the filter you are using.
modify the filter and you should get different results.
try matching something other than cn
Avatar of mmb1

ASKER

I have already tried that too.  I tried a filter of sn=* and sAMAccountName=* and still only get back 1000 records.  I have a total of 32,000+ users in my AD.

Acitve Directory Explorer asks me if I want it to continue searching after returning 1000 records.
i guess i don't have any other suggestions - sorry ...
ASKER CERTIFIED SOLUTION
Avatar of mmb1
mmb1

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
ok - cool - I will remember this if I ever encounter ...

glad you got it!
Avatar of mmb1

ASKER

The LDAP/AD configuration has configuration parameters set to guard against  malice, and pagesize is one of them.