[1429] in testers

home help back first fref pref prev next nref lref last post

rt 7.2H: /etc/rc

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Fri Dec 14 15:14:22 1990

From: qjb@ATHENA.MIT.EDU
Date: Fri, 14 Dec 90 15:14:00 -0500
To: testers@ATHENA.MIT.EDU

System name:		soup
Type and version:	RTPC-ROMPC 7.2H
Display type:		apa16

What were you trying to do?
	Update my workstation; run mkserv kerberos as always

What's wrong:
	/etc/rc does not properly handle the case when the local
	realm is not the same as the realm for kerberos and
	kadmin server are serving.  This is a case fully
	supported by kerberos (via the -r flags to the respective
	servers).   I have been running this way for several
	releases. 

What should have happened:
	The changes to /etc/rc and /etc/rc.conf should allow
	specification of kerberos realm.  I have provided
	patches below.

	In addition, I consider it inappropriate to add this
	significant a change and then procede to call the
	release "frozen".  I am running a configuration
	supported my kerberos and a server supported by mkserv,
	but yet I still have to hand-edit /etc/rc.  I haven't
	had to do this since the time when I was running afs in
	release 6.2. 


My patch involves setting KRBSRV to either "false" or to the
name of the realm. I have KRBSRV=SOUP.MIT.EDU in my rc.conf.

Here is the patch to /etc/rc.  It assumes that you will not run
a kadmin server without also running a kerberos server; this is
a good assumption since the kadmin server accesses the dbm files
of the database directly (through libkdb).

------------------- snip snip --------------------

*** /srvd/etc/rc	Wed Dec 12 15:36:43 1990
--- /etc/rc	Fri Dec 14 15:07:40 1990
***************
*** 419,431 ****
  		/usr/etc/s_chkaf &
  	fi
  fi
! if [ "${KRBSRV}" = "true" -a -f /.k ]; then
  	echo -n "kerberos..."					>/dev/console
! 	/usr/etc/kerberos -n &
  fi
  if [ "${KADMSRV}" = "true" -a -f /.k ]; then
  	echo -n "kadmind..."					>/dev/console
! 	/usr/etc/kadmind -n &
  fi
  if [ "${KNETD}" = "true" ]; then
  	echo -n "knetd..."					>/dev/console
--- 419,431 ----
  		/usr/etc/s_chkaf &
  	fi
  fi
! if [ "${KRBSRV}" != "false" -a -f /.k ]; then
  	echo -n "kerberos..."					>/dev/console
! 	/usr/etc/kerberos -r ${KRBSRV} -n &
  fi
  if [ "${KADMSRV}" = "true" -a -f /.k ]; then
  	echo -n "kadmind..."					>/dev/console
! 	/usr/etc/kadmind -r ${KRBSRV} -n &
  fi
  if [ "${KNETD}" = "true" ]; then
  	echo -n "knetd..."					>/dev/console

home help back first fref pref prev next nref lref last post