From owner-freebsd-ports@FreeBSD.ORG Mon Jun 30 08:55:17 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50F9D1065674 for ; Mon, 30 Jun 2008 08:55:17 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3E23D8FC20 for ; Mon, 30 Jun 2008 08:55:16 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id E8FEB1CC031; Mon, 30 Jun 2008 01:55:16 -0700 (PDT) Date: Mon, 30 Jun 2008 01:55:16 -0700 From: Jeremy Chadwick To: Raffaele De Lorenzo Message-ID: <20080630085516.GA72634@eos.sc1.parodius.com> References: <486894C3.9020509@libero.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <486894C3.9020509@libero.it> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: ports@FreeBSD.org, timur@FreeBSD.org Subject: Re: FreeBSD Port: samba-3.0.28a_2,1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 08:55:17 -0000 On Mon, Jun 30, 2008 at 10:09:39AM +0200, Raffaele De Lorenzo wrote: > Hi, > i have some troubles with pam-winbind with this particular version > ported. When i try to use the winbind pam authentication library i > receive the error listed: > > Jun 27 14:17:48 XXXXX sshd[84691]: in openpam_load_module(): no > /usr/local/lib/pam_winbind.so found > Jun 27 14:17:48 XXXXX sshd[84691]: fatal: PAM: initialisation failed > > I have another machine with an older version of samba (samba-3.0.28,1) > and this work fine. At this time the workaround to solve the problem > was to copy the "pam_winbind.so" library from the machine with the > worked version of samba (samba-3.0.28,1) to the machine with the > samba version samba-3.0.28a_2,1. I have installed FreeBSD 7 STABLE and > SAMBA was compiled from the official port. Can you help me to solve > this problem cleanly? ports/net/samba3/Makefile shows the following: 5 # $FreeBSD: ports/net/samba3/Makefile,v 1.171 2008/06/06 13:50:16 edwin Exp $ 8 PORTNAME= samba 9 PORTVERSION?= 3.0.28a 10 PORTREVISION= 2 11 PORTEPOCH?= 1 43 SAMBA_LIB= lib 44 SAMBA_LIBDIR= ${PREFIX}/${SAMBA_LIB} 45 SAMBA_MODULEDIR= ${SAMBA_LIBDIR}/samba 49 CONFIGURE_ARGS+= --exec-prefix="${PREFIX}" \ 50 --localstatedir="${VARDIR}" \ 51 --with-configdir="${SAMBA_CONFDIR}" \ 52 --with-pammodulesdir="${SAMBA_LIBDIR}" \ 53 --with-libdir="${SAMBA_MODULEDIR}" \ 438 # Winbind 439 .if !defined(WITHOUT_WINBIND) 446 ${INSTALL_PROGRAM} "${WRKSRC}/bin/pam_winbind.so" "${SAMBA_LIBDIR}" 447 @${ECHO_CMD} "${SAMBA_LIB}/pam_winbind.so" >> ${TMPPLIST}; 448 .endif The variables should expand to: SAMBA_LIB= lib SAMBA_LIBDIR= /usr/local/lib SAMBA_MODULEDIR= /usr/local/lib/samba So, based on the Makefile, the pam_winbind.so file should end up being installed in /usr/local/lib. I don't see anything wrong with this. With regards to the machine running 3.0.28a_2,1: 1) Can you please provide the contents of /var/db/ports/samba3/options 2) Results of `find /usr/local -name "pam_winbind.so" -ls`, ***before*** you copied the file from another machine onto it. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |