Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83323 - app-misc/screen: add support for Kerberos
Summary: app-misc/screen: add support for Kerberos
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 11:08 UTC by Fredrik Tolf
Modified: 2016-06-26 10:00 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add Kerberos support to screen. (screen-krb-noconf.diff,9.24 KB, patch)
2005-02-25 11:10 UTC, Fredrik Tolf
Details | Diff
Patch to the screen ebuild to support the previous patch. (screen-krb-ebuild.diff,981 bytes, patch)
2005-02-25 11:11 UTC, Fredrik Tolf
Details | Diff
/var/tmp/portage/screen-4.0.2-r5/work/screen-4.0.2/config.log (config.log,16.81 KB, application/octet-stream)
2006-09-21 20:10 UTC, Matt
Details
/var/tmp/portage/screen-4.0.2-r5/work/screen-4.0.2/config.log (config.log,16.81 KB, application/octet-stream)
2006-09-21 20:11 UTC, Matt
Details
screen-4.0.3-r1.ebuild with kerberos support (screen-4.0.3-r1.ebuild,4.24 KB, text/plain)
2007-01-28 07:10 UTC, Alex Unigovsky
Details
4.0.3-kerberos.patch for use with screen-4.0.3-r1 (4.0.3-kerberos.patch,9.23 KB, patch)
2007-01-28 07:12 UTC, Alex Unigovsky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Tolf 2005-02-25 11:08:40 UTC
There are (at least) two problems when using Kerberos and screen:
1. If one logs in with Kerberos support and thereby gets tickets and then starts a screen, that screen session will use the same credential cache. If one then detaches the screen and logs out, the login program will remove the credential cache, and the processes running in the detached screen will be ticket-less. 

2. If one starts a screen, detaches it and lets it lie for some time, the tickets will expire if one doesn't log in once in a while and renews them manually.

Therefore, I've written a patch for screen that fixes these problems. I've mailed it to the screen mailing list, but considering that the frequency of screen releases doesn't seem sky-high, it would be nice to see that Gentoo could get it into portage so that I don't have to patch manually each time I emerge screen.

I also have a patch for the ebuild, that would be nice to get into portage.
Comment 1 Fredrik Tolf 2005-02-25 11:10:03 UTC
Created attachment 52137 [details, diff]
Patch to add Kerberos support to screen.

This patch adds Kerberos support to screen 4.0.2. It makes a copy of the
credential cache when screen starts, and renews tickets every once in a while
(providing, of course, that the tickets are renewable).
Comment 2 Fredrik Tolf 2005-02-25 11:11:49 UTC
Created attachment 52138 [details, diff]
Patch to the screen ebuild to support the previous patch.

This patch is for the screen ebuild. It requires that the previous patch is in
the "files" directory. It applies that patch and then compiles screen with
Kerberos support, providing that the kerberos USE flag is set.
Comment 3 Sven Wegener gentoo-dev 2005-03-13 04:33:35 UTC
I don't have any knowledge of kerberos. As long as the patch hasn't been accepted
by upstream developers, could our mit-krb5 maintainers have a look?
Comment 4 Matt 2006-09-21 20:10:06 UTC
Created attachment 97723 [details]
/var/tmp/portage/screen-4.0.2-r5/work/screen-4.0.2/config.log
Comment 5 Matt 2006-09-21 20:11:42 UTC
Created attachment 97724 [details]
/var/tmp/portage/screen-4.0.2-r5/work/screen-4.0.2/config.log
Comment 6 Alex Unigovsky 2007-01-28 07:10:47 UTC
Created attachment 108348 [details]
screen-4.0.3-r1.ebuild with kerberos support

Compiled and tested on ~x86 with mit-krb-1.5.2.
Needs additional patch 4.0.3-kerberos.patch in FILESDIR - in next attachment.
Comment 7 Alex Unigovsky 2007-01-28 07:12:27 UTC
Created attachment 108349 [details, diff]
4.0.3-kerberos.patch for use with screen-4.0.3-r1

Place it in FILESDIR.
Comment 8 Alex Unigovsky 2007-01-28 07:14:48 UTC
I've made an updated ebuild for this patch.
Tested on ~x86 with mit-krb5.
Will test on ~amd64.
Unable to test it with heimdal. Anyone?
Comment 9 白川間瀬流 2013-04-28 15:06:22 UTC
Should be closed as OBSOLETE