House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

CFLDAP different number of results on same search?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan LeGate
10/09/2008 07:18 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Barney Boisvert
10/09/2008 07:21 PM

I've seen that behaviour when the query times out.  It just returns whatever it's collected in within the timeout period and gives up. Only solution I found was to crank up the timeout value until that didn't happen anymore and hope for the best. cheers, barneyb On Thu, Oct 9, 2008 at 4:13 PM, Dan LeGate <Dan@legeek.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- -- Barney Boisvert bboisvert@gmail.com http://www.barneyb.com/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Aaron Rouse
10/09/2008 08:00 PM

I have this happen to me quite often and cranking the time out only helps to a point.  In my case I figured out what the max I normally could get is and then subtracted from that to be on the safe side.  Then I run multiple queries to get the data.  I have noticed that the amount of attributes also effects how many you get back. On Thu, Oct 9, 2008 at 6:16 PM, Barney Boisvert <bboisvert@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan LeGate
10/09/2008 09:06 PM

Yes, I have noticed that too!  The more attributes I request, the less records I get back, usually. The queries return in just a second or two, so I'm amazed that this is a "timeout" issue.  I had it set to 500, which I thought was seconds, however when I changed it to 5,000 I got almost 300 records (out of the 433 total), and then I upped it to 150,000 and now I get all the results!  Amazing!  Is the "timeout" attribute in milliseconds, or seconds?  All the docs I've read says seconds. Dan Aar ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Aaron Rouse
10/09/2008 10:05 PM

Yeah, I wish that were the sole cause of problems for mine.  At least though our work around has been working flawlessly for a year or so now. On Thu, Oct 9, 2008 at 8:07 PM, Dan LeGate <Dan@legeek.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dawson, Michael
10/10/2008 10:43 AM

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 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


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     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     

Designer, Developer and mobile workflow conference