a7f6cb8a439e46ae347e74851f0fd1a8273349da
[hcoop/zz_old/config/exim4-hopper.git] / get-token
1 #!/bin/bash
2 # Get an AFS token for the given user.
3 #
4 # This is used to deliver mail with the appropriate credentials.
5
6 USER=$1
7 export KRB5CCNAME=FILE:/tmp/krb5cc_$USER.email
8 kdestroy
9 unlog
10 KEYTAB=/etc/keytabs/mailfilter/$USER
11 echo kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET
12 kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET
13 aklog
14