Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2008 11:30:39 +0200
From:      Raffaele De Lorenzo <raffaele.delorenzo@libero.it>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        ports@FreeBSD.org, timur@FreeBSD.org
Subject:   Re: FreeBSD Port: samba-3.0.28a_2,1
Message-ID:  <4868A7BF.7030509@libero.it>
In-Reply-To: <20080630085516.GA72634@eos.sc1.parodius.com>
References:  <486894C3.9020509@libero.it> <20080630085516.GA72634@eos.sc1.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
>
>   




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4868A7BF.7030509>