OpenSSH, PAM and kerberos

Slawa Olhovchenkov slw at
Thu Aug 29 11:14:59 UTC 2013

On Thu, Aug 29, 2013 at 04:48:44AM +0400, Slawa Olhovchenkov wrote:

> I am try to setup single sign-on and found this is imposuble due to
> bug in OpenSSH: currently sshd do pam_authenticate() and
> pam_acct_mgmt() from child process, but pam_setcred() from paren
> proccess. pam_krb5 in pam_sm_setcred() required information from
> pam_sm_authenticate and can't work corretly (can't create
> /tmp/krb5cc_NNNN, can't set envirompent KRB5CCNAME and so).
> In logs/debugs this is as 
> openpam_dispatch(): pam_sm_setcred(): failed to retrieve user credentials

As I see, similar bug open in upstream from 2003:

More information about the freebsd-security mailing list