[28495] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Make KCM the default ccache on OS X

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Jul 30 13:41:35 2014

Date: Wed, 30 Jul 2014 13:39:18 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201407301739.s6UHdITh015042@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/f2aabecc10508c01b289e147a4c5f41969ab768f
commit f2aabecc10508c01b289e147a4c5f41969ab768f
Author: Greg Hudson <ghudson@mit.edu>
Date:   Thu Jul 10 23:11:11 2014 -0400

    Make KCM the default ccache on OS X
    
    If we do not find a default ccache value from krb5-config and we
    detect that the host platform is OS X 10.7 or higher, use KCM: as the
    default ccache name instead of FILE:/tmp/krb5cc_%{uid}.
    
    ticket: 7964

 src/configure.in |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index a8a633e..48786e0 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1317,8 +1317,22 @@ if test "x$with_krb5_config" != xno; then
 		: "${DEFCKTNAME=`$with_krb5_config --defcktname`}"
 	fi
 fi
+dnl The outer brackets around the case statement prevent m4 from eating the
+dnl brackets in the glob patterns.
 if test "${DEFCCNAME+set}" != set; then
-	DEFCCNAME=FILE:/tmp/krb5cc_%{uid}
+	[case $host in
+	*-*-darwin[0-9].* | *-*-darwin10.*)
+		# Use the normal default for OS X 10.6 (Darwin 10) and prior.
+		;;
+	*-*-darwin*)
+		# For OS X 10.7 (Darwin 11) and later, the native ccache uses
+		# the KCM daemon.
+		DEFCCNAME=KCM:
+		;;
+	esac]
+	if test "${DEFCCNAME+set}" != set; then
+		DEFCCNAME=FILE:/tmp/krb5cc_%{uid}
+	fi
 fi
 if test "${DEFKTNAME+set}" != set; then
 	DEFKTNAME=FILE:/etc/krb5.keytab
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post