#!/bin/bash # Get an AFS token for the given user. # # This is used to deliver mail with the appropriate credentials. touch /tmp/get-token-was-called exec 2>&1 exec >& /tmp/get-token-log echo ============================================================================== echo invoked: get-token $@ echo userid: `who am i` USER=$1 export KRB5CCNAME=FILE:/tmp/krb5cc_$USER.email kdestroy unlog KEYTAB=/etc/keytabs/email/$USER.email.keytab echo kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET aklog tokens echo ..............................................................................