summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-08-21 15:44:19 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-21 16:11:15 +0200
commit05eac5703ba2c93e693f7dfb0d5ed06d6a623682 (patch)
treeb950d0659e732715af36eb43801cf3852c08254e /src
parentd8fbc520c632094055325a887b0346eae21f6002 (diff)
downloadsssd-05eac5703ba2c93e693f7dfb0d5ed06d6a623682.tar.gz
sssd-05eac5703ba2c93e693f7dfb0d5ed06d6a623682.tar.bz2
sssd-05eac5703ba2c93e693f7dfb0d5ed06d6a623682.zip
Unbreak build on RHEL5: replace ldap_destroy() with ldap_unbind_ext()
ldap_destroy() is not present in RHEL5
Diffstat (limited to 'src')
-rw-r--r--src/util/sss_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/sss_ldap.c b/src/util/sss_ldap.c
index 581b7b15..060aacf9 100644
--- a/src/util/sss_ldap.c
+++ b/src/util/sss_ldap.c
@@ -448,7 +448,7 @@ static void sss_ldap_init_sys_connect_done(struct tevent_req *subreq)
fail:
if (state->ldap) {
- ldap_destroy(state->ldap);
+ ldap_unbind_ext(state->ldap, NULL, NULL);
} else {
close(state->sd);
}