summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0c62e0)
raw | patch | inline | side by side (parent: b0c62e0)
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 dacb719230b4e2ea4e6a2c20cd6c9fadf1b8d39a..ebaab1346125f46ed0684638afe8fd2f242d565b 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
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);