svc-kdc.master revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
# Start processes required for master KDC
if [ -s $KDC_CONF_DIR/kdc.conf ]; then
#make sure the kdc.conf is configured
#note: the following regex has spaces and a tab
egrep -l '^[ ]*_[_]*default_realm_' \
if [ $? -eq 0 ]; then
echo "Invalid configuration in $KDC_CONF_DIR/kdc.conf file"
exit $SMF_EXIT_ERR_CONFIG
fi
if [ ! kadm5_acl_configed ]; then
exit $SMF_EXIT_ERR_CONFIG
fi
if [ ! db_exists ]; then
exit $SMF_EXIT_ERR_CONFIG
fi
exit $SMF_EXIT_ERR_CONFIG
fi
exit $SMF_EXIT_OK
else
echo "$KDC_CONF_DIR/kdc.conf does not exist or is invalid"
exit $SMF_EXIT_ERR_CONFIG
fi