summaryrefslogtreecommitdiffstats
path: root/src/libtdeldap.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-30 00:44:31 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-30 00:44:31 -0500
commit2752bfb1d0cf5f1c62662d0885cbbc44620f46e5 (patch)
tree89a3c12e994800778b73ee78795591afe32bc40d /src/libtdeldap.cpp
parent56c2b5fc9b206903e60f90a84edfd7130d5b0473 (diff)
downloadlibtdeldap-2752bfb1d0cf5f1c62662d0885cbbc44620f46e5.tar.gz
libtdeldap-2752bfb1d0cf5f1c62662d0885cbbc44620f46e5.zip
Fix FTBFS on ancient Heimdal versions
Diffstat (limited to 'src/libtdeldap.cpp')
-rw-r--r--src/libtdeldap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp
index bc6890b..0549759 100644
--- a/src/libtdeldap.cpp
+++ b/src/libtdeldap.cpp
@@ -51,6 +51,8 @@
#include <sys/un.h>
extern "C" {
+ #include <krb5.h>
+ #include <krb5_asn1.h>
#include <hdb.h>
#include <hdb_asn1.h>
#include <kadm5/admin.h>
@@ -1089,6 +1091,7 @@ int LDAPManager::updateUserInfo(LDAPUserInfo user, TQString *errstr) {
}
TQByteArray acl_asn1_data;
if (pkinit_acl_subject != "") {
+#if HDB_INTERFACE_VERSION > 4
krb5_error_code krb5_ret;
HDB_extension extended_attributes;
memset(&extended_attributes, 0, sizeof(extended_attributes));
@@ -1110,6 +1113,7 @@ int LDAPManager::updateUserInfo(LDAPUserInfo user, TQString *errstr) {
}
free(pkinit_acl->val);
free(asn1_encoding_buf);
+#endif
}
// Assemble the LDAPMod structure