From nobody@FreeBSD.org  Mon Jul 31 04:07:05 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CBC6D16A4DF
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Jul 2006 04:07:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 97BF443D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Jul 2006 04:07:05 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6V475q9075471
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Jul 2006 04:07:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k6V475mp075465;
	Mon, 31 Jul 2006 04:07:05 GMT
	(envelope-from nobody)
Message-Id: <200607310407.k6V475mp075465@www.freebsd.org>
Date: Mon, 31 Jul 2006 04:07:05 GMT
From: Michael Reynolds <michael.reynolds@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pam_group always fails
X-Send-Pr-Version: www-2.3

>Number:         101075
>Category:       bin
>Synopsis:       pam_group(8) always fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 31 04:10:16 GMT 2006
>Closed-Date:    Sat Nov 11 10:15:08 GMT 2006
>Last-Modified:  Sat Nov 11 10:15:08 GMT 2006
>Originator:     Michael Reynolds
>Release:        6.1-RELEASE
>Organization:
>Environment:
FreeBSD lithium.delinked.us 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
pam_group fails in the following context:
auth            optional        pam_group.so            group=users
Where, by failure, it does not cause the chain to fail as it's the last
member of the chain

auth           requisite       pam_group.so            group=suspended deny
Where, by failure, it rejects everyone, regardless of group membership

(These were tested in /etc/pam.d/sshd)
>How-To-Repeat:
Place the lines into your sshd pam config file and login with appropriate
group memberships.
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Aug 1 09:44:46 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101075 

From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=)
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/101075: pam_group(8) always fails
Date: Sat, 11 Nov 2006 11:04:36 +0100

 pam_group(8) operates on the applicant, not the target (as if
 "auth_as_self" was implied); when called from sshd, the applicant is
 unknown, so it always fails.
 
 The semantics of "optional" are slightly counter-intuitive, by the
 way; it should never be used at the end of a chain.
 
 DES
 --=20
 Dag-Erling Sm=F8rgrav - des@des.no
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Sat Nov 11 10:15:06 UTC 2006 
State-Changed-Why:  
Not a bug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101075 
>Unformatted:
