[Dovecot] Pam trouble

Benjamin Dabelow benja.dabelow at gmx.net
Wed Feb 25 15:09:58 EET 2004


Hi Alex,

> Are you using Solaris 9 native ldap?  What configure options did you use
> when building dovecot?
I'm using OpenLDAP, but I think it's a pam rather than ldap problem. Dovecot
check for the existance of a user alright, but fails when checking the
password.

My build script is enclosed.

Cheers

     Benjamin

Buildscript-----------------------------------------------------
#!/bin/bash

## Defaults
CC="gcc"
CXX="g++"
LDPATH="/usr/local/lib:/usr/sfw/lib:/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3"
CPPFLAGS="-I/usr/local/include -I/usr/sfw/include"
LDFLAGS="-L/usr/local/lib -L/usr/sfw/lib"
CFLAGS=

#SSL
LDPATH="$LDPATH:/usr/local/ssl/lib"
CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include"
LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib -lssl -lcrypto"

#BerkeleyDB
LDPATH="$LDPATH:/usr/local/BerkeleyDB/lib"
CPPFLAGS="$CPPFLAGS -I/usr/local/BerkeleyDB/include"
LDFLAGS="$LDFLAGS -L/usr/local/BerkeleyDB/lib -ldb"
CFLAGS="$CFLAGS -ldb"
AUTH_CFLAGS="-I/usr/local/BerkeleyDB/include  -L/usr/local/BerkeleyDB/lib -ldb"
AUTH_LIBS="-ldb"

#GDBM
LDPATH="$LDPATH:/usr/local/gdbm/lib"
CPPFLAGS="$CPPFLAGS -I/usr/local/gdbm/include"
LDFLAGS="$LDFLAGS -L/usr/local/gdbm/lib -lgdbm"

#LDAP
LDPATH="$LDPATH:/opt/OpenLDAP/lib"
CPPFLAGS="$CPPFLAGS -I/opt/OpenLDAP/include"
LDFLAGS="$LDFLAGS -L/opt/OpenLDAP/lib -lldap -llber -lresolv"

#Finishing
LDFLAGS="-R$LDPATH $LDFLAGS"

export LDFLAGS CPPFLAGS CFLAGS

echo -e "\nLDFLAGS=$LDFLAGS"
echo -e "\nCPPFLAGS=$CPPFLAGS"
echo -e "\nCFLAGS=$CFLAGS"

cd dovecot-0.99.10.4
echo -e "\nPress RETURN to configure or CTRL+C to cancel."
read
./configure --prefix=/usr/local/dovecot --with-ldap=/opt/OpenLDAP
--with-ssl=openssl --with-storages=maildir
echo -e "\nPress RETURN to make or CTRL+C to cancel."
read
make


-- 
Benjamin Dabelow                    benja.dabelow at gmx.net
Staufenbergstr. 88                  benja-dabelow.gmxhome.de/start.html
74081 Heilbronn
Germany



More information about the dovecot mailing list