Remove the tortured logic in another_ldap_try() and turn it into
commit6c3779c80bd2d657a88fb030e16dee10dca45f36
authorJeremy Allison <jra@samba.org>
Sat, 20 Aug 2011 04:40:54 +0000 (19 21:40 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 20 Aug 2011 04:40:54 +0000 (19 21:40 -0700)
tree584b307bc8af9716d38be511c280788611c73c74
parentce8a1a29ad195add38908785e7a2f4ddec3235ba
Remove the tortured logic in another_ldap_try() and turn it into
get_cached_ldap_connect(), which much better describes it's function.

Now we always break at the right places in the loop, we can replace
the while (another_ldap_try(ldap_state, &rc, &attempts, abs_endtime))
construct with simply while (1).
source3/lib/smbldap.c