summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2573097)
raw | patch | inline | side by side (parent: 2573097)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 1 Jul 2014 15:31:07 +0000 (17:31 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 29 Aug 2014 13:09:52 +0000 (15:09 +0200) |
... as ldap_destroy() is only available in newer libldap versions.
src/openldap.c | patch | blob | history |
diff --git a/src/openldap.c b/src/openldap.c
index 5a045781b194947e92cba016b814c50a544be68c..7ce789fb54004229053a4d3ff0ca43fdeb07ab1d 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
ERROR ("openldap plugin: Failed to start tls on %s: %s",
st->url, ldap_err2string (rc));
st->state = 0;
- ldap_destroy(st->ld);
+ ldap_unbind_ext_s(st->ld, NULL, NULL);
return (-1);
}
}
ERROR ("openldap plugin: Failed to bind to %s: %s",
st->url, ldap_err2string (rc));
st->state = 0;
- ldap_destroy(st->ld);
+ ldap_unbind_ext_s(st->ld, NULL, NULL);
return (-1);
}
else