OpenSSH won't store credentials

Nicolas Williams Nicolas.Williams at ubsw.com
Tue Mar 26 14:09:32 EST 2002


On Sat, Mar 23, 2002 at 03:58:03PM +0000, Simon Wilkinson wrote:
> Nicolas Williams (Nicolas.Williams at ubsw.com) wrote:
> : Yes, it's possible, and you don't need Simon's OpenSSH/GSS patches to do
> : this. IIRC OpenSSH has this as a builtin feature (you may need Simon's
> : OpenSSH MIT/Heimdal compat patches for that to work). 
> 
> You will. There's also a bug that I've just discovered in the most recent
> patch that stops it from working (the user's credentials go into a
> memory ccache which is never copied onto the file system). I'm currently
> testing a fix.

auth_krb5_password() seems to have a bug in that it tries to
krb5_cc_resolve() 'MEMORY:'. That's not a valid ccache name in MIT krb5.

'MEMORY:foobar' should work.

> : But you can also
> : use OpenSSH with PAM and a PAM_KRB5 module, if you have PAM (and a
> : suitable PAM_KRB5 module).
> 
> I'd strongly recommend using PAM if you can.

Indeed. Watch out though, the KRB5 code added by the OpenSSH team before
you automatically sets "KerberosAuthentication yes" if:

a) KerberosAuthentication is not set in sshd_config

and

b) /etc/krb5.keytab is readable.

This was quite a surprise to me.

> Cheers,
> 
> Simon.


Cheers,

Nico
-- 
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the Kerberos mailing list