Skip to main content
Participant
Aug 8, 2006 6:33 PM UTC
Answered

CFLDAP question

I work for a university and have a web app that needs to check the campus directory server daily to see if the users access my system have changed department codes or have left the university.

Our ldap administrator is informing me that my connections to the server look similar to a DOS attack like so:
open
open
open
search
search
search
close
close
close

resulting in the server dropping my connections after the first few results. I'd either like to reuse my initial connection or close any open existing connections before continuing with my loop (there's about 2000 users total), but am not quite sure how to do this. Simplified code is attached, any suggestions?

Thanks,
Vince
This topic is closed to new replies. Start a new post to keep the conversation going.
vince_n1Correct answer
Participant
Aug 11, 2006 3:58 PM UTC
Found JLDAP which will let me query the directory server with tons more control:

http://www.numtopia.com/terry/blog/archives/2006/03/alternative_to_cfldap.cfm

This person was experiencing the same exact problem that I had. I'm now using JLDAP for my large directory queries and created a custom tag CF_LDAP which takes the same params as CFLDAP for more basic queries.

2 replies

vince_n1Author
Participant
Aug 10, 2006 4:59 PM UTC
Bump... suggestions anyone? It looks like the directory folks have implemented a change so that even 2 consecutive connections to ldap will fail (for my login page, I have to do an anonymous bind in order to get their DN, and then another bind to pass that DN with their password in order to authenticate them).

Thanks,
Vince
Translate
vince_n1AuthorCorrect answer
Participant
Aug 11, 2006 3:58 PM UTC
Found JLDAP which will let me query the directory server with tons more control:

http://www.numtopia.com/terry/blog/archives/2006/03/alternative_to_cfldap.cfm

This person was experiencing the same exact problem that I had. I'm now using JLDAP for my large directory queries and created a custom tag CF_LDAP which takes the same params as CFLDAP for more basic queries.
Translate