]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-nim-afs-krb524-20080102
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 2 Jan 2008 07:08:00 +0000 (07:08 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 2 Jan 2008 07:08:00 +0000 (07:08 +0000)
LICENSE MIT

Don't call krb524_convert_creds_kdc if it doesn't exist.
64-bit KFW doesn't support krb4 and the function isn't present.

(cherry picked from commit cfcaa0be3cc22fce97737ae4f6387a8200de770d)

src/WINNT/netidmgr_plugin/afsfuncs.c

index 471ed98f25047b81f13e537264fe81801d1fd755..b191408845e92373968ad36f14a9e6ee55809f85 100644 (file)
@@ -1009,8 +1009,8 @@ afs_klog(khm_handle identity,
 
         _reportf(L"Trying Krb524");
 
-        if (method == AFS_TOKEN_AUTO ||
-            method == AFS_TOKEN_KRB524) {
+        if (pkrb524_convert_creds_kdc && 
+            (method == AFS_TOKEN_AUTO || method == AFS_TOKEN_KRB524)) {
             /* This requires krb524d to be running with the KDC */
             r = pkrb524_convert_creds_kdc(context, k5creds, &creds);
             if (r) {