Remove the timeout attribute and it should work fine.

I never use the CFLDAP timeout attribute.  I let the page's timeout
value control that.

I figure if the ldap query times-out, then the results are no good
(since they vary so much) and the entire page may as well fail.

Mike 

-----Original Message-----
From: Dan LeGate [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2008 6:13 PM
To: cf-talk
Subject: CFLDAP different number of results on same search?

I have a CFLDAP query that seems to be giving me a different number of
results every time I search for the same text with the same filter,
attributes, etc.

Has anyone seen this behavior?  Here's the code:

        <cfldap action="QUERY"
              name="GetResults"
              attributes="#OfficialAttribs#"
              filter="(#searchfield#=#ThisSearch#)"
              start="dc=ourdomain,dc=edu"
              scope="SUBTREE"
              TIMEOUT="500"
              port="#port#"
              server="#LDAPServer#"
              username="uid=#LookupID#,ou=People,dc=ourdomain,dc=edu"
              password="#LookupPass#">

This is a Sun LDAP server (v5.2).

When I run queries with the command line tools I get the same results
every time.  I get 433 results every time w/the built-in and
command-line tools.  But with CFLDAP I get 100 on one attempt, then 92,
on the next, and so on.

REALLY strange.  I have verified that the values of the variables above
are identical between requests.

Anyone seen this?

Dan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313717
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to