Mercurial > illumos > onarm
view usr/src/cmd/krb5/krb5kdc/svc-kdc @ 0:c9caec207d52 b86
Initial porting based on b86
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Tue, 02 Jun 2009 18:56:50 +0900 |
parents | |
children | 1a15d5aaf794 |
line wrap: on
line source
#!/bin/sh # # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # #ident "@(#)svc-kdc 1.3 05/03/22 SMI" . /lib/svc/share/smf_include.sh . /lib/svc/share/krb_include.sh # Start processes required for KDC if [ -s $KDC_CONF_DIR/kdc.conf ]; then #make sure kdc.conf is configured #note: the following regex has spaces and a tab egrep -l '^[ ]*_[_]*default_realm_' \ $KDC_CONF_DIR/kdc.conf > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "Invalid configuration in $KDC_CONF_DIR/kdc.conf file" exit $SMF_EXIT_ERR_CONFIG fi if [ ! db_exists ]; then echo "/var/krb5/principal database does not exist" exit $SMF_EXIT_ERR_CONFIG fi if [ ! -x $BINDIR/krb5kdc ]; then echo "$BINDIR/krb5kdc is not an executable" exit $SMF_EXIT_ERR_CONFIG fi ppriv -e -s EIP-proc_exec $BINDIR/krb5kdc exit $SMF_EXIT_OK else echo "$KDC_CONF_DIR/kdc.conf does not exist or is invalid" exit $SMF_EXIT_ERR_CONFIG fi