2 # Get an AFS token for the given user.
4 # This is used to deliver mail with the appropriate credentials.
6 # fuse stdin and stderr
10 # all future output goes to this file
11 exec >&/tmp
/get-token-log.
$USER
13 # check that setuid happened
16 # set the credentials cache
17 export KRB5CCNAME
=FILE
:/tmp
/krb5cc_
$USER.email
19 # eliminate any previous tokens
22 KEYTAB
=/etc
/keytabs
/user.daemon
/$USER
24 # display command-to-be-invoked as a sanity check
25 echo kinit
-kt $KEYTAB $USER/daemon@HCOOP.NET
27 kinit
-kt $KEYTAB $USER/daemon@HCOOP.NET
30 # list tokens, for the sake of debugging