]> git.michaelhowe.org Git - packages/m/mh-sysadmin-tools.git/commitdiff
with-creds now supports -a
authorMichael Howe <michael@michaelhowe.org>
Mon, 28 Jan 2013 13:40:16 +0000 (13:40 +0000)
committerMichael Howe <michael@michaelhowe.org>
Mon, 28 Jan 2013 13:40:16 +0000 (13:40 +0000)
bin/with-creds
debian/changelog

index 9e4ddeacd430acf9589ba8b4cfc6202f6b4934cc..02259d4933d33c54d2ba646698203618b786b854 100755 (executable)
@@ -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
index e67cedaaadba97074784cb97337a33375f688b96..91d728fb91743d9d1861d526aa790d5d2c238ba5 100644 (file)
@@ -1,3 +1,9 @@
+mh-sysadmin-tools (1.3) unstable; urgency=low
+
+  * with-creds: support the '-a' option
+
+ -- Michael Howe <michael@michaelhowe.org>  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