1997-09-04 06:04:33 +00:00
|
|
|
#! /bin/sh
|
1999-09-19 21:56:09 +00:00
|
|
|
# $Id: ksrvtgt.in,v 1.3 1997/09/13 03:39:03 joda Exp $
|
|
|
|
# $FreeBSD$
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
usage="Usage: `basename $0` name instance [[realm] srvtab]"
|
|
|
|
|
|
|
|
if [ $# -lt 2 -o $# -gt 4 ]; then
|
|
|
|
echo "$usage"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
1997-09-04 21:37:57 +00:00
|
|
|
srvtab="${4-${3-/etc/kerberosIV/srvtab}}"
|
1997-09-04 06:04:33 +00:00
|
|
|
realm="${4+@$3}"
|
|
|
|
|
1999-09-19 21:56:09 +00:00
|
|
|
%bindir%/kauth -n "$1.$2$realm" -l 5 -f "$srvtab"
|