From owner-freebsd-security@FreeBSD.ORG Thu Aug 29 00:46:39 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 AC85AC83 for ; Thu, 29 Aug 2013 00:46:39 +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 6CDCC24AA for ; Thu, 29 Aug 2013 00:46:39 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1VEqPk-000IQZ-AQ for freebsd-security@FreeBSD.org; Thu, 29 Aug 2013 04:48:44 +0400 Date: Thu, 29 Aug 2013 04:48:44 +0400 From: Slawa Olhovchenkov To: freebsd-security@FreeBSD.org Subject: OpenSSH, PAM and kerberos Message-ID: <20130829004844.GA70584@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 00:46:39 -0000 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