summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_child.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-12-20 16:13:59 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-12-22 10:37:47 -0500
commitcbe8cbd9ebecdd4aec8830748dadb3721f6cdd70 (patch)
treedbd659d134335e58006335036106ebaf9dd62320 /src/providers/ldap/ldap_child.c
parentdc09a9a7fbb812937f90f030e45fbccee7057e21 (diff)
downloadsssd-cbe8cbd9ebecdd4aec8830748dadb3721f6cdd70.tar.gz
sssd-cbe8cbd9ebecdd4aec8830748dadb3721f6cdd70.tar.xz
sssd-cbe8cbd9ebecdd4aec8830748dadb3721f6cdd70.zip
Add compatibility layer for Heimdal Kerberos implementation
Diffstat (limited to 'src/providers/ldap/ldap_child.c')
-rw-r--r--src/providers/ldap/ldap_child.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c
index 160cc1ce4..05aadde90 100644
--- a/src/providers/ldap/ldap_child.c
+++ b/src/providers/ldap/ldap_child.c
@@ -287,6 +287,7 @@ static krb5_error_code ldap_child_get_tgt_sync(TALLOC_CTX *memctx,
goto done;
}
+#ifdef HAVE_KRB5_GET_TIME_OFFSETS
krberr = krb5_get_time_offsets(context, &kdc_time_offset, &kdc_time_offset_usec);
if (krberr) {
DEBUG(2, ("Failed to get KDC time offset: %s\n",
@@ -297,6 +298,10 @@ static krb5_error_code ldap_child_get_tgt_sync(TALLOC_CTX *memctx,
kdc_time_offset++;
}
}
+#else
+ /* If we don't have this function, just assume no offset */
+ kdc_time_offset = 0;
+#endif
krberr = 0;
*ccname_out = ccname;