#! /bin/sh
# $Id$

usage="Usage: `basename $0` name instance [[realm] srvtab]"

if [ $# -lt 2 -o $# -gt 4 ]; then
	echo "$usage"
	exit 1
fi

srvtab="${4-${3-/etc/kerberosIV/srvtab}}"
realm="${4+@$3}"

kauth -n "$1.$2$realm" -l 5 -f "$srvtab "
