projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0c62e0
)
openldap: tell libldap to automatically restart reconnections
author
Marc Fournier
<marc.fournier@camptocamp.com>
Fri, 16 Oct 2015 07:34:14 +0000
(09:34 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Fri, 16 Oct 2015 09:53:48 +0000
(11:53 +0200)
src/openldap.c
patch
|
blob
|
history
diff --git
a/src/openldap.c
b/src/openldap.c
index
dacb719
..
ebaab13
100644
(file)
--- 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);