From owner-freebsd-ports@FreeBSD.ORG Mon Jun 30 09:30:42 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 CE5A31065676; Mon, 30 Jun 2008 09:30:42 +0000 (UTC) (envelope-from raffaele.delorenzo@libero.it) Received: from aa011msr.fastwebnet.it (aa011msr.fastwebnet.it [85.18.95.71]) by mx1.freebsd.org (Postfix) with ESMTP id 31D5E8FC0C; Mon, 30 Jun 2008 09:30:42 +0000 (UTC) (envelope-from raffaele.delorenzo@libero.it) Received: from [192.9.244.22] (85.18.71.242) by aa011msr.fastwebnet.it (8.0.013.5) id 48638ABD0070A505; Mon, 30 Jun 2008 11:30:40 +0200 Message-ID: <4868A7BF.7030509@libero.it> Date: Mon, 30 Jun 2008 11:30:39 +0200 From: Raffaele De Lorenzo User-Agent: Thunderbird 2.0.0.12 (X11/20080403) MIME-Version: 1.0 To: Jeremy Chadwick References: <486894C3.9020509@libero.it> <20080630085516.GA72634@eos.sc1.parodius.com> In-Reply-To: <20080630085516.GA72634@eos.sc1.parodius.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 09:30:43 -0000 Hi, here the compiled options for SAMBA: # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for samba-3.0.28a_2,1 _OPTIONS_READ=samba-3.0.28a_2,1 WITH_LDAP=true WITH_ADS=true WITH_CUPS=true WITH_WINBIND=true WITHOUT_ACL_SUPPORT=true WITHOUT_FAM_SUPPORT=true WITHOUT_SYSLOG=true WITHOUT_QUOTAS=true WITH_UTMP=true WITH_MSDFS=true WITH_PAM_SMBPASS=true WITHOUT_CLUSTER=true WITHOUT_DNSUPDATE=true WITHOUT_EXP_MODULES=true WITH_POPT=true WITH_MAX_DEBUG=true WITHOUT_SMBTORTURE=true And this is the trouble "pam_winbind.so". Before the copy from the worked machine i renamed it in "pam_winbind.so.old" : find /usr/local -name "pam_winbind.so*" -ls 924299 96 -rwxr-xr-x 1 root wheel 48836 Jun 27 14:59 /usr/local/lib/pam_winbind.so 57317 1152 -rwxr-xr-x 1 root wheel 571176 Jun 27 11:04 /usr/local/lib/pam_winbind.so.old An older version of PAM/WINBIND could have the same troubles (*3.0.23c_2,1)* but i don't know if this is the same issue... see http://www.freshports.org/net/samba3/ Raffaele Jeremy Chadwick wrote: > 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. > >