diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-16 01:18:00 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-16 01:18:00 -0600 |
commit | 0794d3cc445f08c173170d8a2168248d25227ce1 (patch) | |
tree | 39c680affd4d61d5c635db793b82d8b99f201e32 /src | |
parent | b9e5443b1aab47fcf49fb2304569dd2187b02b42 (diff) | |
download | libtdeldap-0794d3cc445f08c173170d8a2168248d25227ce1.tar.gz libtdeldap-0794d3cc445f08c173170d8a2168248d25227ce1.zip |
Fix FTBFS with older OpenLDAP versions
Diffstat (limited to 'src')
-rw-r--r-- | src/libtdeldap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 6d61ab2..f9cc4f0 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -313,7 +313,9 @@ int LDAPManager::bind(TQString* errstr) { } if (m_creds->use_gssapi) { - //retcode = ldap_sasl_interactive_bind_s(m_ldap, "", "GSSAPI", NULL, NULL, LDAP_SASL_AUTOMATIC, sasl_bind_interact_callback, NULL); +#if LDAP_VENDOR_VERSION < 20425 + retcode = ldap_sasl_interactive_bind_s(m_ldap, "", "GSSAPI", NULL, NULL, LDAP_SASL_AUTOMATIC, sasl_bind_interact_callback, NULL); +#else // LDAP_VENDOR_VERSION const char* rmech = NULL; LDAPMessage* result = NULL; int msgid; @@ -343,6 +345,7 @@ int LDAPManager::bind(TQString* errstr) { } } } +#endif // LDAP_VENDOR_VERSION } else { retcode = ldap_sasl_bind_s(m_ldap, ldap_dn.ascii(), mechanism, &cred, NULL, NULL, NULL); |