From owner-freebsd-security@FreeBSD.ORG Fri Aug 30 07:45:29 2013 Return-Path: Delivered-To: freebsd-security@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 17818E39 for ; Fri, 30 Aug 2013 07:45:29 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id D04DC2DE7 for ; Fri, 30 Aug 2013 07:45:28 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id C4EE24CAF; Fri, 30 Aug 2013 07:45:27 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id 21B1F29CC6; Fri, 30 Aug 2013 09:44:54 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Slawa Olhovchenkov Subject: Re: OpenSSH, PAM and kerberos References: <20130829004844.GA70584@zxy.spb.ru> Date: Fri, 30 Aug 2013 09:44:54 +0200 In-Reply-To: <20130829004844.GA70584@zxy.spb.ru> (Slawa Olhovchenkov's message of "Thu, 29 Aug 2013 04:48:44 +0400") Message-ID: <86d2ovy64p.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-security@FreeBSD.org 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: Fri, 30 Aug 2013 07:45:29 -0000 Slawa Olhovchenkov writes: > 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). PAM authentication in OpenSSH was broken for non-trivial cases when privilege separation was implemented. Fixing it properly would be very difficult. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no