From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 1 05:55:55 2015 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 750677C2 for ; Sun, 1 Feb 2015 05:55:55 +0000 (UTC) Received: from mail0.glenbarber.us (mail0.glenbarber.us [IPv6:2607:fc50:1:2300:1001:1001:1001:face]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail0.glenbarber.us", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCD884D for ; Sun, 1 Feb 2015 05:55:55 +0000 (UTC) Received: from [10.10.9.105] (75.97.147.233.res-cmts.sewb.ptd.net [75.97.147.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by mail0.glenbarber.us (Postfix) with ESMTPSA id 493B81895D; Sun, 1 Feb 2015 05:55:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.9.2 mail0.glenbarber.us 493B81895D Authentication-Results: mail0.glenbarber.us; dkim=none reason="no signature"; dkim-adsp=none In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: pam_krb5 broken From: Glen Barber Date: Sun, 01 Feb 2015 05:55:50 +0000 To: Ansar Mohammed ,freebsd-bugs@freebsd.org Message-ID: X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2015 05:55:55 -0000 On February 1, 2015 12:46:48 AM EST, Ansar Mohammed wrote: >Hello There, >I am testing the pam_krb5 module on FreeBSD 10.1. >it seems that the code to save the Kerberos ticket on disk is broken. >The call to pam_get_data in pam_sm_setcred is failing. >As a result a user can login with Kerberos but running kinit does not >show any cached tickets. > >I was reviewing the apple code here : >http://www.opensource.apple.com/source/pam_modules/pam_modules-76/pam_krb5/pam_krb5.c >and that appears insanely broken. I think they were also trying to fix >the same error as they replaced pam_get_data/pam_set_data with >pam_getenv/pam_setenv (but only halfway through the code) Please file a bug report so this does not get lost. Glen -- Sent from my phone. Please excuse my brevity and/or typos.