From 3176f0a95990d4639e55efa9b6dfffdeeeed06fb Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Fri, 16 Oct 2015 09:34:14 +0200 Subject: [PATCH] openldap: tell libldap to automatically restart reconnections --- src/openldap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openldap.c b/src/openldap.c index dacb7192..ebaab134 100644 --- a/src/openldap.c +++ b/src/openldap.c @@ -98,6 +98,8 @@ static int cldap_init_host (cldap_t *st) /* {{{ */ ldap_set_option (st->ld, LDAP_OPT_TIMEOUT, &(const struct timeval){st->timeout, 0}); + ldap_set_option (st->ld, LDAP_OPT_RESTART, LDAP_OPT_ON); + if (st->cacert != NULL) ldap_set_option (st->ld, LDAP_OPT_X_TLS_CACERTFILE, st->cacert); -- 2.11.0