Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94417 - openssh doesn't fully support kerberos, patch to add some extra support
Summary: openssh doesn't fully support kerberos, patch to add some extra support
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-29 14:09 UTC by Dan Boline
Modified: 2005-05-29 18:34 UTC (History)
1 user (show)

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


Attachments
patch against openssh-4.1_p1 (openssh-4.0_p1-krb5.patch,59.64 KB, patch)
2005-05-29 14:11 UTC, Dan Boline
Details | Diff
Required File (kexgssc.c,7.81 KB, text/x-csrc)
2005-05-29 14:11 UTC, Dan Boline
Details
Another Required File (kexgsss.c,7.11 KB, text/x-csrc)
2005-05-29 14:12 UTC, Dan Boline
Details
Ebuild with small modification (openssh-4.1_p1.ebuild,4.95 KB, text/plain)
2005-05-29 14:13 UTC, Dan Boline
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Boline 2005-05-29 14:09:29 UTC
A vanilla install of openssh is incompatible with certain implementations of       
kerberos (gssapi?, gsi?), debian's ssh-krb5 package provides this, but they      
don't provide a patch against vanilla openssh.  I provide here a patch against      
openssh-4.1_p1 which provides this functionality.  I'm still testing to see if   
it breaks X509, ldap, sftplogging, or smartcard, but it works quite well 
otherwise. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Dan Boline 2005-05-29 14:11:00 UTC
Created attachment 60127 [details, diff]
patch against openssh-4.1_p1
Comment 2 Dan Boline 2005-05-29 14:11:55 UTC
Created attachment 60128 [details]
Required File
Comment 3 Dan Boline 2005-05-29 14:12:32 UTC
Created attachment 60129 [details]
Another Required File
Comment 4 Dan Boline 2005-05-29 14:13:22 UTC
Created attachment 60130 [details]
Ebuild with small modification
Comment 5 Dan Boline 2005-05-29 14:23:46 UTC
Looks as though a patch already exists at: 
http://www.sxw.org.uk/computing/patches/openssh-4.0p1-gssapikex.patch 
 
It'd be nice to see this included as an option in openssh. 
Comment 6 Dan Boline 2005-05-29 14:36:43 UTC
Never mind, that patch doesn't seem to work, but mine does.  Though my patch 
seems to break the X509 and ldap patches. 
Comment 7 SpanKY gentoo-dev 2005-05-29 15:26:37 UTC
send this patch to the openssh bugzilla please

http://bugzilla.mindrot.org/
Comment 8 Dan Boline 2005-05-29 17:24:24 UTC
Thanks for the advise, but I don't think it will do any good, the bulk of this   
patch (kexgsss.c and kexgssc.c) were written two years ago, and from what I can   
tell openssh refuses to accept the patch.  There's a related reference at  
http://archives.devshed.com/a/ng/508-12/Kerberos-Support-in-OpenSSH  
  
From what I can tell, openssh supports user authentication via gssapi/gsi, but  
refuses to support key-exchange via gssapi/gsi, though I can't find any  
explaination for why this is true.  
  
This hasn't stopped several other groups from using the patch, notably NCSA, 
Globus, and most important to me Fermilab. 
Comment 9 SpanKY gentoo-dev 2005-05-29 18:34:03 UTC
well if you try and they reject it, we can take another look ... the patch you
posted isnt exactly a small one which is why i'd be very hesitant to add it

if a future release breaks with the patch, i do not have the expertise with the
internals of openssh to make sure it still works which means we'd just drop it
on the floor