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