[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kerberized clients in another path



On 2008/07/03 10:47, Harald Barth wrote:

>>> # Begin client rename and install...
> 
> And then you must edit rxtelnet and friends as well as the manpages
> etc etc. Until this is done, the ebuild is just broken.

It is done. Not by me, so I hadn't noticed until you pointed that out, 
but the editing is taken care of by the two patches I attach. (May be 
the manpages stay inconsistent at places, but all the programs and 
utilities should work.)

> I tried once and it was just too much trouble to do this for my own
> build, so I use my own overlay ebuild which installs to
> /usr/heimdal-SLOT/ where SLOT is the heimdal version number.
> Fortunately Gentoo has slots.

I tried once your ebuild (I think it was quite an old one, though newer 
than that in the main portage tree -- do you publish your overlay or do 
you maintain it just privately?), but the bookkeeping that arouse then 
from having heimdal in a special directory was too much trouble for me.

Anyway, can you possibly visit 
http://bugs.gentoo.org/show_bug.cgi?id=185899 and comment on the Gentoo 
way of handling the up-to-date Heimdal? The ebuild got a proper 
maintainer finally and is closer than ever to entering the official 
portage tree, and you may be of significant help in doing the things right.

With best regards
					Honza Macháček
--- appl/kx/rxtelnet.in	2005-06-16 18:29:10.000000000 +0200
+++ appl/kx/rxtelnet.in	2005-06-27 23:21:34.000000000 +0200
@@ -2,7 +2,7 @@
 # $Id: rxtelnet.in,v 1.31 2004/03/07 17:22:06 lha Exp $
 #
 usage="Usage: $0 [-l username] [-k] [-fF] [-t args_to_telnet] [-x args_to_xterm] [-K args_to_kx] [-w term_emulator] [-b telnet_binary] [-n] [-v] [-h | --help] [--version] host [port]"
-binary=telnet
+binary=ktelnet
 term=
 kx_args=-P
 while true
--- appl/kx/rxterm.in	2005-06-16 18:29:10.000000000 +0200
+++ appl/kx/rxterm.in	2005-06-27 23:21:55.000000000 +0200
@@ -2,7 +2,7 @@
 # $Id: rxterm.in,v 1.23 2002/03/18 17:37:34 joda Exp $
 #
 usage="Usage: $0 [-l username] [-k] [-f] [-r rsh_args] [-x xterm_args] [-K kx_args] [-w term_emulator] [-b rsh_binary][-v] [-h | --help] [--version] host"
-binary=rsh
+binary=krsh
 term=xterm
 while true
 do
--- appl/rcp/rcp.c.old	2006-05-03 13:31:59.398493625 +0200
+++ appl/rcp/rcp.c	2006-05-03 13:32:04.494485981 +0200
@@ -34,7 +34,7 @@
 #include "rcp_locl.h"
 #include <getarg.h>
 
-#define RSH_PROGRAM "rsh"
+#define RSH_PROGRAM "krsh"
 
 struct  passwd *pwd;
 uid_t	userid;
--- appl/rcp/rcp_locl.h.old	2006-05-03 02:30:31.602025409 +0200
+++ appl/rcp/rcp_locl.h	2006-05-03 02:30:35.886018983 +0200
@@ -64,4 +64,4 @@
 #define	_PATH_CP	"/bin/cp"
 #endif
 #undef _PATH_RSH
-#define	_PATH_RSH	BINDIR "/rsh"
+#define	_PATH_RSH	BINDIR "/krsh"
--- appl/telnet/telnetd/telnetd.h.old	2006-05-03 02:23:14.582680939 +0200
+++ appl/telnet/telnetd/telnetd.h	2006-05-03 02:23:23.746667193 +0200
@@ -192,7 +192,7 @@
 #endif
 
 #undef _PATH_LOGIN
-#define _PATH_LOGIN	BINDIR "/login"
+#define _PATH_LOGIN	BINDIR "/klogin"
 
 /* fallbacks */
 
--- appl/login/shadow.c.old	2006-05-05 06:31:29.517138115 +0200
+++ appl/login/shadow.c	2006-05-05 06:32:26.433052741 +0200
@@ -38,7 +38,7 @@
 #ifdef HAVE_SHADOW_H
 
 #ifndef _PATH_CHPASS
-#define _PATH_CHPASS "/usr/bin/passwd"
+#define _PATH_CHPASS "/usr/bin/kpasswd"
 #endif
 
 static int
@@ -52,7 +52,7 @@
         printf("fork /bin/passwd");
         exit(1);
     case 0:
-        execlp(_PATH_CHPASS, "passwd", who->pw_name, (char *) 0);
+        execlp(_PATH_CHPASS, "kpasswd", who->pw_name, (char *) 0);
         exit(1);
     default:
         waitpid(pid, &status, 0);