Skip to Content.
Sympa Menu

freetds - [freetds] Order of library search for gss_init_sec_context

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Peter C. Norton" <spacey-freetds.org AT ssr.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Order of library search for gss_init_sec_context
  • Date: Mon, 4 Oct 2010 16:25:04 -0400

In-house, we're using heimdal kerberos libraries for freetds, since
MIT Kerberos 1.8 isn't working correctly for the delegation that we
need for BULK INSERT, FROM OPENROWSET, etc. with MS SQL Server.

There's an interesting detail, though. Since configure defines its
tests for the requisite libraries as being in this order:

gssapi_krb5 gssapi

the heimdal libraries will never be found because they only provide
gssapi.

This diff fixes the behavior for me:

--- configure 17 Sep 2010 17:11:02 -0000 1.1.1.7
+++ configure 4 Oct 2010 20:40:06 -0000 1.2
@@ -13035,7 +13035,7 @@
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_gss_init_sec_context" = no; then
- for ac_lib in gssapi_krb5 gssapi; do
+ for ac_lib in gssapi gssapi_krb5; do
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */


but I'm wondering if this would break kerberos for anyone else? If
not, can it make its way into the configure script provided at
release?

Thanks,

-Peter




  • [freetds] Order of library search for gss_init_sec_context, Peter C. Norton, 10/04/2010

Archive powered by MHonArc 2.6.24.

Top of Page