Bugzilla – Bug 161
Sudo clears KRB5CCNAME before doing passwd lookups
Last modified: 2004-11-17 13:17:48 MST
Sudo clears the environment of all but a few known variables (HOME etc) before doing user lookups with getpwent etc. This is a problem when something like nss_ldap is configured for password table lookups using GSSAPI authentication because the user's credentials may be needed to do the lookup. getXXXent calls should be done before the environment is cleared. This is a problem with 1.6.7p5 (as shipped with SuSE 9.2) and I would guess 1.6.8 as well.
I'm going take the conservative approach and just add KRB5CCNAME to the list of variables preserved.