idmap_ad: Retry query_user exactly once if we get TLDAP_SERVER_DOWN
authorDustin L. Howett via samba-technical <samba-technical@lists.samba.org>
Fri, 30 Jun 2017 23:10:01 +0000 (16:10 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 12 Jul 2017 07:01:17 +0000 (09:01 +0200)
commitfe7020b0d1b6fe1ca9add4815e20c2e2262cb6c9
treeaca01e56f1a3162740c6e924e2e19ba1600bc036
parentb3d14dae18593f21fb0d16f5404326bcb15905d9
idmap_ad: Retry query_user exactly once if we get TLDAP_SERVER_DOWN

All other ldap-querying methods in idmap_ad make a single retry attempt if they get
TLDAP_SERVER_DOWN. This patch brings idmap_ad_query_user in line with that design.

This fixes the symptom described in 12720 at the cost of an additional reconnect per
failed lookup.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12720

Signed-off-by: Dustin L. Howett <dustin@howett.net>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/idmap_ad.c