From owner-freebsd-security@FreeBSD.ORG Thu Aug 29 11:14:59 2013 Return-Path: Delivered-To: freebsd-security@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CD9D0361 for ; Thu, 29 Aug 2013 11:14:59 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id 8C4BF2CEC for ; Thu, 29 Aug 2013 11:14:59 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1VF0Dn-0001TI-E6; Thu, 29 Aug 2013 15:17:03 +0400 Date: Thu, 29 Aug 2013 15:17:03 +0400 From: Slawa Olhovchenkov To: freebsd-security@FreeBSD.org Subject: Re: OpenSSH, PAM and kerberos Message-ID: <20130829111703.GB3371@zxy.spb.ru> References: <20130829004844.GA70584@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130829004844.GA70584@zxy.spb.ru> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: des@des.no X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 11:14:59 -0000 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_krb5.so: pam_sm_setcred(): failed to retrieve user credentials As I see, similar bug open in upstream from 2003: https://bugzilla.mindrot.org/show_bug.cgi?id=688