X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=opt%2Fbin%2Fbecome;h=0825bd68c65e1b02f5137a01dff8938300d465aa;hb=dc63ca686dd762680e884a55538135cb197da9b6;hp=e874ae52943e334779d8d53545102506b0214bc3;hpb=b8a79a95206c8d61754a681c2e8f64b0dc52a907;p=profile.git diff --git a/opt/bin/become b/opt/bin/become index e874ae5..0825bd6 100755 --- a/opt/bin/become +++ b/opt/bin/become @@ -51,8 +51,9 @@ if exec 3>"$file" && exec <"$file" && rm "$file"; then if [ -n "$PRINCIPAL" ]; then echo >&3 "PRINCIPAL='$PRINCIPAL'" if [ $kerberos = 1 ]; then - ccname=$(klist 2>/dev/null | sed -n 's/^Ticket cache: FILE://p') + ccname=$(klist 2>/dev/null | sed -n 's/^Ticket cache: [DF]I[LR][E:]://p') if [ -f "$ccname" ]; then + echo >&3 "export KRB5CCNAME='$KRB5CCNAME'" openssl=$(find_working openssl) if [ -n "$openssl" ]; then echo >&3 "KRB5OPENSSL='$openssl'"