From: Ken Raeburn Date: Fri, 13 Sep 2002 02:41:15 +0000 (+0000) Subject: * kerberos_v4.c (kerb_get_principal): Include kvno when logging failure to find X-Git-Tag: krb5-1.3-alpha1~402 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa7b5d00af164900e16b4923dab43272d1e2c806;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14849 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 5aa973d34..588a344bb 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -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 * dispatch.c, do_as_req.c, do_tgs_req.c, kdc_preauth.c, diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index b43a521a2..22e2db8a5 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -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;