+Tue Oct 15 16:22:52 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * env-setup.shin: set $QUALNAME to the right path
+
+ * start_servers, init_db: use qualname of local host, not
+ localhost, in krb5.conf
+
Tue Oct 15 06:39:58 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* Makefile.in: Added standard rules for .plin -> .pl
RESTORE_FILES=$TESTDIR/scripts/restore_files.sh; export RESTORE_FILES
SAVE_FILES=$STESTDIR/scripts/save_files.sh; export SAVE_FILES
SIMPLE_DUMP=$TESTDIR/scripts/simple_dump.pl; export SIMPLE_DUMP
+QUALNAME=$TESTDIR/scripts/qualname.pl; export QUALNAME
TCLUTIL=$STESTDIR/tcl/util.t; export TCLUTIL
BSDDB_DUMP=$TESTDIR/util/bsddb_dump; export BSDDB_DUMP
CLNTTCL=$TESTDIR/util/ovsec_kadm_clnt_tcl; export CLNTTCL
SRVTCL=$TESTDIR/util/ovsec_kadm_srv_tcl; export SRVTCL
-QUALNAME=$TOP/inst-scripts/qualname.pl; export QUALNAME
KRB5_CONFIG=$K5ROOT/krb5.conf; export KRB5_CONFIG
KRB5_KDC_PROFILE=$K5ROOT/kdc.conf; export KRB5_KDC_PROFILE
# esac
# done
+qualname=`$QUALNAME`
+
sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \
- -e "s/__KDCHOST__/localhost/g" \
+ -e "s/__KDCHOST__/$qualname/g" \
+ -e "s/__LOCALHOST__/$qualname/g" \
< $STESTDIR/proto/krb5.conf.proto > $K5ROOT/krb5.conf
sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \
< $STESTDIR/proto/kdc.conf.proto > $K5ROOT/kdc.conf
if [ $local = 0 ]; then
# Fix up the local krb5.conf to point to the remote
+ localname=`$QUALNAME`
sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \
-e "s/__KDCHOST__/$hostname/g" \
+ -e "s/__LOCALHOST__/$localname/g" \
< $STESTDIR/proto/krb5.conf.proto > $K5ROOT/krb5.conf
# Using /usr/ucb/rsh and getting rid of "-k $REALM" until we get