From j@rtchat.com  Tue Jun 19 04:47:37 2001
Return-Path: <j@rtchat.com>
Received: from rtchat.com (r208m27.cybercable.tm.fr [195.132.208.27])
	by hub.freebsd.org (Postfix) with ESMTP id C6F1037B403
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Jun 2001 04:47:35 -0700 (PDT)
	(envelope-from j@rtchat.com)
Received: (from root@localhost)
	by rtchat.com (8.11.4/8.11.3) id f5JBlwB00495;
	Tue, 19 Jun 2001 13:47:58 +0200 (CEST)
	(envelope-from j)
Message-Id: <200106191147.f5JBlwB00495@rtchat.com>
Date: Tue, 19 Jun 2001 13:47:58 +0200 (CEST)
From: j@jedi.claranet.fr
Reply-To: j@jedi.claranet.fr
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: port update : ftp/pure-ftpd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28275
>Category:       ports
>Synopsis:       port update : ftp/pure-ftpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 19 04:50:01 PDT 2001
>Closed-Date:    Sun Jul 15 01:33:50 PDT 2001
>Last-Modified:  Sun Jul 15 01:34:26 PDT 2001
>Originator:     Charlie &
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
42 Networks
>Environment:
System: FreeBSD tidiable.home.rtchat.com 4.3-STABLE FreeBSD 4.3-STABLE #3: Sat Apr 28 22:04:02 CEST 2001 root@tidiable.home.rtchat.com:/usr/obj/usr/src/sys/GENERIC i386



>Description:

diff -urN ports/ftp/pure-ftpd.orig/Makefile ports/ftp/pure-ftpd/Makefile
--- ports/ftp/pure-ftpd.orig/Makefile	Thu Jun 14 19:18:16 2001
+++ ports/ftp/pure-ftpd/Makefile	Tue Jun 19 13:31:19 2001
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	pure-ftpd
-PORTVERSION=	0.98.6
+PORTVERSION=	0.98.7
 CATEGORIES=	ftp ipv6
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	pureftpd
diff -urN ports/ftp/pure-ftpd.orig/distinfo ports/ftp/pure-ftpd/distinfo
--- ports/ftp/pure-ftpd.orig/distinfo	Thu Jun 14 19:18:16 2001
+++ ports/ftp/pure-ftpd/distinfo	Tue Jun 19 13:32:02 2001
@@ -1 +1 @@
-MD5 (pure-ftpd-0.98.6.tar.gz) = d7e93f2edd42058c13f1e0ab9b23e8a2
+MD5 (pure-ftpd-0.98.7.tar.gz) = 381169cc31fdebfa2d414cd264d8485b


>How-To-Repeat:
-

>Fix:

This new version fixes all known bugs so far :) There were some important
fixes like SITE CHMOD that wasn't working under FreeBSD. There will probably
be no more 0.98.x release.

I have a problem with the current FreeBSD port (help Peter !) . We configure
it with PAM support (./configure --with-pam) . That's great, and it works.
But after the PAM authentication, we also open a new PAM session. Some users
requested that because their PAM configuration does nifty things like
creating missing home directories. That's ok. But on a default FreeBSD
install, /etc/pam.conf has no default definition for what modules "session"
should use.

In Pure-FTPd, if opening a PAM session fails, it's not a fatal error. But a
warning message is logged by the PAM library ("no module loaded for
`pure-ftpd' service"), and users may find it annoying.

What do you suggest to solve this ? (and why doesn't FreeBSD use /etc/pam.d
instead of the old-fashionned /etc/pam.conf ?) . Tell the user to add
entries to pam.conf ? Remove --with-pam from the port ?

Thanks a lot for your help.

   -Frank.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: roam 
State-Changed-When: Tue Jun 19 10:27:29 PDT 2001 
State-Changed-Why:  
Let's see what's this PAM stuff..  (about time I learned how PAM 
works, too ;) 


Responsible-Changed-From-To: freebsd-ports->roam 
Responsible-Changed-By: roam 
Responsible-Changed-When: Tue Jun 19 10:27:29 PDT 2001 
Responsible-Changed-Why:  
Me and pure-ftpd - it's becomming an obsession ;) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28275 

From: Peter Pentchev <roam@orbitel.bg>
To: j@jedi.claranet.fr
Cc: freebsd-gnats-submit@FreeBSD.org, rik <rich@rdrose.org>
Subject: Re: ports/28275: port update : ftp/pure-ftpd
Date: Sat, 14 Jul 2001 22:20:37 +0300

 On Tue, Jun 19, 2001 at 05:43:40PM +0000, j@jedi.claranet.fr wrote:
 > 
 > roam@FreeBSD.org ?crit:
 > > Let's see what's this PAM stuff..  (about time I learned how PAM
 > > works, too ;)
 > 
 >   If disabling session without disabling PAM is the solution, you can
 > define WITHOUT_PAM_SESSION . If will just skip (#ifdef) the pam_*_session()
 > calls.
 
 Well, how about this patch instead?
 
 G'luck,
 Peter
 
 -- 
 This sentence would be seven words long if it were six words shorter.
 
 Index: ports/ftp/pure-ftpd/Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/ftp/pure-ftpd/Makefile,v
 retrieving revision 1.9
 diff -u -r1.9 Makefile
 --- ports/ftp/pure-ftpd/Makefile	2001/06/14 17:18:16	1.9
 +++ ports/ftp/pure-ftpd/Makefile	2001/07/14 19:11:32
 @@ -6,7 +6,7 @@
  #
  
  PORTNAME=	pure-ftpd
 -PORTVERSION=	0.98.6
 +PORTVERSION=	0.98.7
  CATEGORIES=	ftp ipv6
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=	pureftpd
 @@ -33,6 +33,20 @@
  
  MAN8=		pure-ftpd.8 pure-ftpwho.8 pure-mrtginfo.8 pure-uploadscript.8
  
 +.include <bsd.port.pre.mk>
 +
 +.if ${OSVERSION} > 500000
 +PAM_TEMPL?=	${FILESDIR}/pam.conf.5
 +.else
 +. if ${OSVERSION} > 400000
 +PAM_TEMPL?=	${FILESDIR}/pam.conf.4
 +. endif
 +.endif
 +.if defined(PAM_TEMPL)
 +PAM_DIR?=	${PREFIX}/share/examples/${PORTNAME}/pam
 +PAM_TARGET?=	pure-ftpd
 +.endif
 +
  DOCS=		AUTHORS CONTACT COPYING HISTORY NEWS \
  		README README.Configuration-File README.Contrib README.LDAP \
  		README.Netfilter \
 @@ -57,5 +71,11 @@
  	@${MKDIR} ${PREFIX}/share/doc/pure-ftpd
  	(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/pure-ftpd)
  .endif
 +.if defined(PAM_TEMPL)
 +	${MKDIR} ${PAM_DIR}
 +	${INSTALL_DATA} ${PAM_TEMPL} ${PAM_DIR}/${PAM_TARGET}
 +	@${ECHO} "Now you need to examine ${PAM_DIR}/${PAM_TARGET}"
 +	@${ECHO} "and add the relevant PAM configuration lines to your /etc/pam.conf file."
 +.endif
  
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 Index: ports/ftp/pure-ftpd/distinfo
 ===================================================================
 RCS file: /home/ncvs/ports/ftp/pure-ftpd/distinfo,v
 retrieving revision 1.8
 diff -u -r1.8 distinfo
 --- ports/ftp/pure-ftpd/distinfo	2001/06/14 17:18:16	1.8
 +++ ports/ftp/pure-ftpd/distinfo	2001/07/14 19:11:32
 @@ -1 +1 @@
 -MD5 (pure-ftpd-0.98.6.tar.gz) = d7e93f2edd42058c13f1e0ab9b23e8a2
 +MD5 (pure-ftpd-0.98.7.tar.gz) = 381169cc31fdebfa2d414cd264d8485b
 Index: ports/ftp/pure-ftpd/pkg-plist
 ===================================================================
 RCS file: /home/ncvs/ports/ftp/pure-ftpd/pkg-plist,v
 retrieving revision 1.4
 diff -u -r1.4 pkg-plist
 --- ports/ftp/pure-ftpd/pkg-plist	2001/06/13 18:26:53	1.4
 +++ ports/ftp/pure-ftpd/pkg-plist	2001/07/14 19:11:32
 @@ -18,4 +18,6 @@
  %%PORTDOCS%%share/doc/pure-ftpd/THANKS
  %%PORTDOCS%%@dirrm share/doc/pure-ftpd
  share/examples/pure-ftpd/xml_python_processors.txt
 +share/examples/pure-ftpd/pam/pure-ftpd
 +@dirrm share/examples/pure-ftpd/pam
  @dirrm share/examples/pure-ftpd
 Index: ports/ftp/pure-ftpd/files/pam.conf.4
 ===================================================================
 RCS file: pam.conf.4
 diff -N pam.conf.4
 --- /dev/null	Sat Jul 14 04:22:58 2001
 +++ ports/ftp/pure-ftpd/files/pam.conf.4	Sat Jul 14 22:11:32 2001
 @@ -0,0 +1,7 @@
 +# pure-ftpd
 +pure-ftpd	auth	sufficient	pam_skey.so
 +pure-ftpd	auth	requisite	pam_cleartext_pass_ok.so
 +#pure-ftpd	auth	sufficient	pam_kerberosIV.so	try_first_pass
 +pure-ftpd	auth	required	pam_unix.so		try_first_pass
 +pure-ftpd	account	required	pam_permit.so
 +pure-ftpd	session	required	pam_permit.so
 Index: ports/ftp/pure-ftpd/files/pam.conf.5
 ===================================================================
 RCS file: pam.conf.5
 diff -N pam.conf.5
 --- /dev/null	Sat Jul 14 04:22:58 2001
 +++ ports/ftp/pure-ftpd/files/pam.conf.5	Sat Jul 14 22:11:32 2001
 @@ -0,0 +1,12 @@
 +# pure-ftpd
 +pure-ftpd	auth	required	pam_nologin.so
 +#pure-ftpd	auth	sufficient	pam_kerberosIV.so
 +#pure-ftpd	auth	sufficient	pam_krb5.so
 +#pure-ftpd	auth	required	pam_opie.so
 +pure-ftpd	auth	required	pam_unix.so		try_first_pass
 +#pure-ftpd	account	required	pam_kerberosIV.so
 +#pure-ftpd	account	required	pam_krb5.so
 +pure-ftpd	account	required	pam_unix.so
 +pure-ftpd	session	required	pam_permit.so
 +#pure-ftpd	session	required	pam_kerberosIV.so
 +#pure-ftpd	session	required	pam_krb5.so
State-Changed-From-To: analyzed->closed 
State-Changed-By: roam 
State-Changed-When: Sun Jul 15 01:33:50 PDT 2001 
State-Changed-Why:  
Committed, thanks for the patience! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28275 
>Unformatted:
