diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-30 00:44:31 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-30 00:44:31 -0500 |
commit | 2752bfb1d0cf5f1c62662d0885cbbc44620f46e5 (patch) | |
tree | 89a3c12e994800778b73ee78795591afe32bc40d /src | |
parent | 56c2b5fc9b206903e60f90a84edfd7130d5b0473 (diff) | |
download | libtdeldap-2752bfb1d0cf5f1c62662d0885cbbc44620f46e5.tar.gz libtdeldap-2752bfb1d0cf5f1c62662d0885cbbc44620f46e5.zip |
Fix FTBFS on ancient Heimdal versions
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/libtdeldap.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 5d5b855..6a64b3d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,6 +7,7 @@ lib_LTLIBRARIES = libtdeldap.la include_HEADERS = libtdeldap.h ldappasswddlg.h libtdeldap_la_SOURCES = libtdeldap.cpp ldaplogindlgbase.ui ldaplogindlg.cpp ldappasswddlg.cpp +libtdeldap_la_CPPFLAGS = -fpermissive libtdeldap_la_LIBADD = -ltdeio $(LIB_TDEUI) -lldap $(LIB_QT) $(LIB_TDECORE) -ltdesu -llber -lkadm5clnt -lkadm5srv libtdeldap_la_LDFLAGS = -version-info $(lt_current):$(lt_revision):$(lt_age) -no-undefined \ $(all_libraries) 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 |