From 588cad07f07c2a668ebef5ed69b9ea008f89f75e Mon Sep 17 00:00:00 2001 From: Michael Howe Date: Mon, 28 Jan 2013 13:40:16 +0000 Subject: [PATCH] with-creds now supports -a --- bin/with-creds | 12 ++++++++++-- debian/changelog | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/bin/with-creds b/bin/with-creds index 9e4ddea..02259d4 100755 --- a/bin/with-creds +++ b/bin/with-creds @@ -13,7 +13,7 @@ EOH exit 1 } -while getopts "i:r:u:h:" opt; do +while getopts "i:r:u:h:a" opt; do case $opt in i) userpart=$OPTARG @@ -24,6 +24,9 @@ while getopts "i:r:u:h:" opt; do u) localuser=$OPTARG ;; + a) + aklog=1 + ;; h) usage ;; @@ -60,9 +63,14 @@ fi PRINC=$KRBUSER$userpart_slash$REALMARG +EXTRAOPTS="" +if [ -n "$aklog" ]; then + EXTRAOPTS="-t" +fi + export KRB5CCNAME=/tmp/krb5cc_${UID}_${KRBUSER}_${userpart} -k5start -H 30 -u "$PRINC" +k5start -H 30 -u "$PRINC" $EXTRAOPTS #if klist -s -c $ccache; then # export KRB5CCNAME=$ccache diff --git a/debian/changelog b/debian/changelog index e67ceda..91d728f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mh-sysadmin-tools (1.3) unstable; urgency=low + + * with-creds: support the '-a' option + + -- Michael Howe Mon, 28 Jan 2013 13:39:24 +0000 + mh-sysadmin-tools (1.2) unstable; urgency=low * with-creds now supports specification of user and realm -- 2.39.5