pull up r22079 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 14 Apr 2009 21:07:18 +0000 (21:07 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 14 Apr 2009 21:07:18 +0000 (21:07 +0000)
commit28585fb8097561bd231c83aa13a41c95a53415b5
tree28785a5b03cf6d2937e5fcf12c3435122c44fe6a
parentf828e98a1d45f0148aabb4203c7ca62b2e1dbf09
pull up r22079 from trunk

 ------------------------------------------------------------------------
 r22079 | ghudson | 2009-03-11 18:14:24 -0400 (Wed, 11 Mar 2009) | 13 lines
 Changed paths:
    M /trunk/src/kdc/do_tgs_req.c
    M /trunk/src/kdc/kdc_preauth.c
    M /trunk/src/kdc/kdc_util.h
    M /trunk/src/kdc/main.c
    M /trunk/src/kdc/network.c

 ticket: 6408
 subject: Report verbose error messages from KDC
 target_version: 1.7
 tags: pullup

 We were losing verbose error messages when logging from the KDC because
 the context passed to krb5_klog_init did not match the realm-specific
 context used for most library function calls.  Introduce a wrapper
 function kdc_err which copies the error state from the call context
 to the log context.  The wrapper function also knows the program name,
 which removes the need to pass argv[0] around everywhere or make up
 program names.

ticket: 6408
version_fixed: 1.7

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22219 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/do_tgs_req.c
src/kdc/kdc_preauth.c
src/kdc/kdc_util.h
src/kdc/main.c
src/kdc/network.c