stable->sarge and other miscellanea
[hcoop/zz_old/config/exim4-hopper.git] / get-token
CommitLineData
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 6USER=$1
7export KRB5CCNAME=FILE:/tmp/krb5cc_$USER.email
8kdestroy
9unlog
f33d4634 10KEYTAB=/etc/keytabs/mailfilter/$USER
5092a970 11echo kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET
12kinit -kt $KEYTAB $USER/mailfilter@HCOOP.NET
13aklog
5092a970 14