#! /usr/bin/ksh # # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. # # # kclient-kt2prof - bundle a binary keytab into a System Configuration XML # # Public wrapper for private tool /usr/lib/krb5/kt2prof. # KT2PROF=/usr/lib/krb5/kt2prof me=${0##*/} function usage { print -u2 -- $(gettext "Usage: $me [-k keytab] [-p profile]") exit 1 } cmd="$KT2PROF -pkeytab/key" # # kclient-kt2prof [-k keytab] [-p profile] # while getopts ":k:p:" options do case $options in k) cmd="$cmd -k$OPTARG" ;; p) cmd="$cmd -x$OPTARG" ;; *) usage ;; esac done exec $cmd