* kerberos_v4.c (kerb_get_principal): Include kvno when logging failure to find
authorKen Raeburn <raeburn@mit.edu>
Fri, 13 Sep 2002 02:41:15 +0000 (02:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 13 Sep 2002 02:41:15 +0000 (02:41 +0000)
a key.
(v4_klog): Include explicit do-nothing default case in switch statement.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14849 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/kerberos_v4.c

index 5aa973d348e8f0a69d82aa7b56a82ad843b04717..588a344bbf919e0d38519be32aecfd93b9fd29fc 100644 (file)
@@ -3,6 +3,11 @@
        * main.c (initialize_realms): Include replay cache name in error
        if it can't be initialized.
 
+       * kerberos_v4.c (kerb_get_principal): Include kvno when logging
+       failure to find a key.
+       (v4_klog): Include explicit do-nothing default case in switch
+       statement.
+
 2002-09-10  Ken Raeburn  <raeburn@mit.edu>
 
        * dispatch.c, do_as_req.c, do_tgs_req.c, kdc_preauth.c,
index b43a521a2ad4559209d8753de4c01c48c7aa6c5f..22e2db8a55f8e00eb1c7e02659f4f8e431d1b89a 100644 (file)
@@ -293,7 +293,9 @@ char * v4_klog( type, format, va_alist)
        strcpy(log_text, "PROCESS_V4:");
        vsprintf(log_text+strlen(log_text), format, pvar);
        krb5_klog_syslog(logpri, "%s", log_text);
-    /* ignore the other types... */
+    default:
+       /* ignore the other types... */
+       ;
     }
     va_end(pvar);
     return(log_text);
@@ -486,8 +488,8 @@ kerb_get_principal(char *name, char *inst, /* could have wild cards */
                                  ENCTYPE_DES_CBC_CRC,
                                  -1, kvno, &pkey)) {
            lt = klog(L_KRB_PERR,
-                     "KDC V4: failed to find key for %s.%s",
-                     name, inst);
+                     "KDC V4: failed to find key for %s.%s #%d",
+                     name, inst, kvno);
            krb5_db_free_principal(kdc_context, &entries, nprinc);
            return(0);
        }
@@ -537,8 +539,6 @@ kerb_get_principal(char *name, char *inst, /* could have wild cards */
           principal->attributes |= V4_KDB_REQUIRES_PWCHANGE;
     }
 
-
-
     /* set up v4 format of each date's text: */
     for ( date = &principal->exp_date, text = principal->exp_date_txt;
          toggle ^= 1;