FreeBSD Port: samba-3.0.28a_2,1

Jeremy Chadwick koitsu at FreeBSD.org
Mon Jun 30 08:55:17 UTC 2008


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 |



More information about the freebsd-ports mailing list