* krb5.conf.proto: s/localhost/__LOCALHOST__/
authorBarry Jaspan <bjaspan@mit.edu>
Tue, 15 Oct 1996 20:25:23 +0000 (20:25 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Tue, 15 Oct 1996 20:25:23 +0000 (20:25 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9175 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/testing/scripts/ChangeLog
src/kadmin/testing/scripts/env-setup.shin
src/kadmin/testing/scripts/init_db
src/kadmin/testing/scripts/start_servers

index a0f7038cf3226f5492e604eddb8ef458e2c4598b..43b627eb6df5d1f8093a9c5bd9026b287b4c7e6a 100644 (file)
@@ -1,3 +1,10 @@
+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 
index 07f8038a0623b18b8e7f86a1b80a05bc7cd18bf0..83bb522e3bd49761a82064b3db68d9e4ab2c7e47 100644 (file)
@@ -37,11 +37,11 @@ export LOCAL_MAKE_KEYTAB
 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
index c44a9760a0c90cbbf0b4cb34f4ad744e555817c5..98468b99957f0dd3a0b48e81727f9104c831f966 100644 (file)
@@ -56,8 +56,11 @@ fi
 #      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
index 26fef9150e8df0266052254b06cb13c0e0830635..570acea13b28ebb0d73fa5810e7f24c10db66038 100644 (file)
@@ -42,8 +42,10 @@ fi
 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