Commit | Line | Data |
---|---|---|
8f42d430 | 1 | #!/bin/bash |
cf08a29f | 2 | # Get an AFS token for the given user. |
3 | # | |
4 | # This is used to deliver mail with the appropriate credentials. | |
5 | ||
8f42d430 | 6 | USER=$1 |
7 | export KRB5CCNAME=FILE:/tmp/krb5cc_$USER.email | |
8 | kdestroy | |
9 | unlog | |
cf08a29f | 10 | |
8f42d430 | 11 | #echo kinit -kt /etc/keytabs/$USER.email.keytab $USER/mailfilter@HCOOP.NET > /tmp/script-log |
12 | kinit -kt /etc/keytabs/$USER.email.keytab $USER/mailfilter@HCOOP.NET | |
13 | #aklog | |
14 | #tokens |