From: Marc Fournier Date: Fri, 16 Oct 2015 07:34:14 +0000 (+0200) Subject: openldap: tell libldap to automatically restart reconnections X-Git-Tag: collectd-5.6.0~300^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3176f0a95990d4639e55efa9b6dfffdeeeed06fb;p=collectd.git openldap: tell libldap to automatically restart reconnections --- 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);