NetBSD/crypto/dist/krb4/appl/kauth/ksrvtgt.in

15 lines
293 B
Bash
Executable File

#! /bin/sh
# $Id: ksrvtgt.in,v 1.1.1.2 2000/12/29 01:42:52 assar Exp $
usage="Usage: `basename $0` name instance [[realm] srvtab]"
if [ $# -lt 2 -o $# -gt 4 ]; then
echo "$usage"
exit 1
fi
srvtab="${4-${3-/etc/srvtab}}"
realm="${4+@$3}"
%bindir%/kauth -n "$1.$2$realm" -l 5 -f "$srvtab"