From turutani@scphys.kyoto-u.ac.jp  Sat Aug  2 08:40:50 2008
Return-Path: <turutani@scphys.kyoto-u.ac.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8F198106567F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Aug 2008 08:40:50 +0000 (UTC)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from proxy2.aams.jp (proxy2.aams.jp [202.189.147.98])
	by mx1.freebsd.org (Postfix) with ESMTP id 3F5F98FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Aug 2008 08:40:50 +0000 (UTC)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from h120.65.226.10.32118.vlan.kuins.net (softbank218183189199.bbtec.net [218.183.189.199])
	(authenticated bits=0)
	by proxy2.aams.jp (Switch-3.2.7/Switch-3.1.7) with ESMTP id m728eljH025266
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sat, 2 Aug 2008 17:40:47 +0900
Received: from h120.65.226.10.32118.vlan.kuins.net (localhost [127.0.0.1])
	by h120.65.226.10.32118.vlan.kuins.net (8.14.2/8.14.2/20071004-1) with ESMTP id m728ego0028524;
	Sat, 2 Aug 2008 17:40:42 +0900 (JST)
	(envelope-from turutani@h120.65.226.10.32118.vlan.kuins.net)
Received: (from turutani@localhost)
	by h120.65.226.10.32118.vlan.kuins.net (8.14.2/8.14.2/Submit) id m728egPn028523;
	Sat, 2 Aug 2008 17:40:42 +0900 (JST)
	(envelope-from turutani)
Message-Id: <200808020840.m728egPn028523@h120.65.226.10.32118.vlan.kuins.net>
Date: Sat, 2 Aug 2008 17:40:42 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: turutani@scphys.kyoto-u.ac.jp
Subject: security/pam_af should assume OpenPAM
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         126185
>Category:       ports
>Synopsis:       security/pam_af should assume OpenPAM
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    stas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 02 08:50:02 UTC 2008
>Closed-Date:    Sat Aug 02 16:42:54 UTC 2008
>Last-Modified:  Sat Aug  2 16:50:06 UTC 2008
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD h120.65.226.10.32118.vlan.kuins.net 7.0-STABLE FreeBSD 7.0-STABLE #15: Sun Jul 20 21:06:33 JST 2008 turutani@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	ftp/wu-ftpd+ipv6 with security/pam_af does not works well
	after upgrading from 6-STABLE to 7-STABLE.
	security/pam_af uses syslog after openlog() by default,
	and this spoils the wu-ftpd's syslog().
	
>How-To-Repeat:
	after upgrading all the userlands, kernel, and all the ports.
	install ftp/wu-ftpd+ipv6 with "WITH_PAM=1".
	add a line to /etc/pam.d/ftp about pam_af.so.
	then, clients are refused to connect to teh server (sudden loss of the
	connection).
	
>Fix:
	add "-D_OPENPAM" to the CFLAGS of security/pam_af.
	here is a patch, which should be stored as security/pam_af/files/patch-Makefile:

--- Makefile.orig	2008-08-02 17:15:42.000000000 +0900
+++ Makefile	2008-08-02 16:57:22.000000000 +0900
@@ -71,7 +71,7 @@
 		-Wshadow -Wchar-subscripts -Winline -Wnested-externs -fPIC
 CFLAGS_SUN = -KPIC -xO2 -D_SUN_PAM_ -D_HAVE_USERDEFS_H_
 CFLAGS_HP = -Ae +w1 +W 474,486,542 +z +O2
-CFLAGS_BSD = -D_HAVE_PATHS_H_ -D_HAVE_ERR_H_ -D_HAVE_GETPROGNAME_ -D_USE_MODULE_ENTRY_ -D_HAVE_SALEN_
+CFLAGS_BSD = -D_HAVE_PATHS_H_ -D_HAVE_ERR_H_ -D_HAVE_GETPROGNAME_ -D_USE_MODULE_ENTRY_ -D_HAVE_SALEN_ -D_OPENPAM
 CFLAGS_GNU =	-D_GNU_SOURCE -D_HAVE_PATHS_H_ -D_HAVE_ERR_H_ -D_HAVE_FLOCK_ \
 		-D_HAVE_SYS_FILE_H_
 
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->stas 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Aug 2 08:50:14 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126185 
State-Changed-From-To: open->closed 
State-Changed-By: stas 
State-Changed-When: Sat Aug 2 16:42:53 UTC 2008 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/126185: commit references a PR
Date: Sat,  2 Aug 2008 16:42:40 +0000 (UTC)

 stas        2008-08-02 16:42:32 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/pam_af      Makefile 
   Added files:
     security/pam_af/files patch-common_pam_af.h 
                           patch-common_subr.c patch-pam_af.c 
   Log:
   - Correctly detect OpenPAM.
   
   PR:             ports/126185
   Submitted by:   Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
   
   Revision  Changes    Path
   1.5       +1 -0      ports/security/pam_af/Makefile
   1.1       +11 -0     ports/security/pam_af/files/patch-common_pam_af.h (new)
   1.3       +11 -0     ports/security/pam_af/files/patch-common_subr.c (new)
   1.1       +11 -0     ports/security/pam_af/files/patch-pam_af.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
