diff options
Diffstat (limited to 'src/libtdeldap.cpp')
-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); |