Can't get PAM to compile into sasl & saslauthd....

This is a discussion on Can't get PAM to compile into sasl & saslauthd.... within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Trying to build Postfix-sasl-mysql-pam_mysql-web-cyradm and am having problems with the make & subsequent compiling of ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-06-2003
Jim
 
Posts: n/a
Default Can't get PAM to compile into sasl & saslauthd....

Trying to build Postfix-sasl-mysql-pam_mysql-web-cyradm and am having
problems with the make & subsequent compiling of sasl & saslauthd. I
simply can't get pam to be recognized, and compile in.

Running Debian 2.4.x
cyrus-sasl-2.1.12
cyrus-imapd-2.1.12
mysql-4.0.14
db-4.1.25
openssl-0.9.6j
pam_mysql-0.5
postfix-2.0.4

Note that it doesn't find the pam modules; libs are in /lib/security
and source is in /usr/include. I've tried using --with-pam=[path] and
it won't do it. Am I doing something obviously wrong.

root@boxtwo:/usr/local/src/cyrus-sasl-2.1.12# ./configure
--enable-anon --enable-plain --enable-login --disable-krb4
--with-saslauthd=/var/run/saslauthd --with-pam --with-dblib=berkeley
--with-bdb-libdir=/usr/local/BerkeleyDB.4.1/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.1/include
--with-openssl=/usr/local/ssl --with-plugindir=/usr/local/lib/sasl2
--with-auth=unix -with-pam=/lib/security
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for db.h... (cached) yes
checking for db_create in -ldb-4.1... (cached) yes
checking DB library to use... berkeley
checking for dlopen in -ldl... (cached) yes
checking for nm... (cached) /usr/bin/nm -B
checking for underscore before symbols... (cached) no
checking for syslog... (cached) yes
checking for pam_start in -lpam... (cached) no
checking for PAM support... no
checking if I should include saslauthd... /var/run/saslauthd
checking if I should include pwcheck... no
checking if I should include the alwaystrue verifier... no
checking if we should enable sasl_checkapop... enabled
..
..
checking for des_cbc_encrypt in -lcrypto... (cached) yes
checking for openssl/des.h... (cached) no
configure: warning: No DES support for DIGEST-MD5
checking DIGEST-MD5... enabled
checking for RSAPublicEncrypt in -lrsaref... (cached) no
checking for openssl/evp.h... (cached) no
checking for OpenSSL... no
configure: warning: OpenSSL not found -- OTP will be disabled
checking OTP... disabled
configure: warning: OpenSSL not found -- SRP will be disabled
checking SRP... disabled
checking KERBEROS_V4... disabled
checking for gssapi.h... (cached) no
checking for gssapi/gssapi.h... (cached) no
configure: warning: Disabling GSSAPI
checking GSSAPI... disabled
checking for crypt... (cached) no
checking for crypt in -lcrypt... (cached) yes
checking PLAIN... enabled
checking ANONYMOUS... enabled
checking LOGIN... enabled
configure: warning: OpenSSL not found -- NTLM will be disabled
checking NTLM... disabled
..
..
creating man/Makefile
creating config.h
config.h is unchanged
configuring in saslauthd
running /bin/sh ./configure --enable-anon --enable-plain
--enable-login --disable-krb4 --with-saslauthd=/var/run/saslauthd
--with-pam --with-dblib=berkeley
--with-bdb-libdir=/usr/local/BerkeleyDB.4.1/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.1/include
--with-openssl=/usr/local/ssl --with-plugindir=/usr/local/lib/sasl2
--with-auth=unix -with-pam=/lib/security
--cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
..
..
checking GSSAPI... disabled
checking for crypt... (cached) no
checking for crypt in -lcrypt... (cached) yes
checking for pam_start in -lpam... (cached) no
checking for PAM support... no
checking for inet_aton in -lresolv... (cached) yes
checking to include experimental LDAP support... no
..
..
creating ./config.status
creating Makefile
creating saslauthd.h
saslauthd.h is unchanged
Configuration Complete. Type 'make' to build.
root@boxtwo:/usr/local/src/cyrus-sasl-2.1.12#
Reply With Quote
  #2 (permalink)  
Old 09-07-2003
Markus Hahn
 
Posts: n/a
Default Re: Can't get PAM to compile into sasl & saslauthd....

Jim wrote:

> Running Debian 2.4.x
> cyrus-sasl-2.1.12
> cyrus-imapd-2.1.12
> mysql-4.0.14
> db-4.1.25
> openssl-0.9.6j
> pam_mysql-0.5
> postfix-2.0.4
>
> Note that it doesn't find the pam modules; libs are in /lib/security
> and source is in /usr/include. I've tried using --with-pam=[path] and
> it won't do it. Am I doing something obviously wrong.
>
> checking for underscore before symbols... (cached) no
> checking for syslog... (cached) yes
> checking for pam_start in -lpam... (cached) no
> checking for PAM support... no
> checking if I should include saslauthd... /var/run/saslauthd
> checking if I should include pwcheck... no
> checking if I should include the alwaystrue verifier... no
> checking if we should enable sasl_checkapop... enabled
> .



Mhh, it looks like you forgotten the pam-devel and other devel packages
PAM devel libs and header files are in /usr/lib or /usr/include !
Also you would need ssl and sasl devel pakages.

regard markus


Reply With Quote
  #3 (permalink)  
Old 09-09-2003
Jim
 
Posts: n/a
Default Re: Can't get PAM to compile into sasl & saslauthd....

Markus,

took your suggestion and downloaded the openssl-devel libraries, it's
now included in openssl-0.9.7b. The pam-devel-0.77 libraries were
also installed. Still having the same problem. See the basic options
that I've included with configure.

../configure \
--enable-anon \
--enable-plain \
--enable-login \
--disable-krb4 \
--with-saslauthd=/var/run/saslauthd \
--with-pam \
--with-dblib=berkeley \
--with-bdb-libdir=/usr/local/BerkeleyDB4.1/lib \
--with-bdb-incdir=/usr/local/BerkeleyDB4.1/include \
--with-openssl=/usr/local/ssl \
--with-plugindir=/usr/local/lib/sasl2

Doesn't seem to make a difference if I specify the location of the
openssl libraries, and include files?

Any ideas?

Cheers,
Jim


Markus Hahn <markus.o.hahn@gmx.de> wrote in message news:<bjg9u6$idccj$1@ID-204245.news.uni-berlin.de>...
> Jim wrote:
>
> > Running Debian 2.4.x
> > cyrus-sasl-2.1.12
> > cyrus-imapd-2.1.12
> > mysql-4.0.14
> > db-4.1.25
> > openssl-0.9.6j
> > pam_mysql-0.5
> > postfix-2.0.4
> >
> > Note that it doesn't find the pam modules; libs are in /lib/security
> > and source is in /usr/include. I've tried using --with-pam=[path] and
> > it won't do it. Am I doing something obviously wrong.
> >
> > checking for underscore before symbols... (cached) no
> > checking for syslog... (cached) yes
> > checking for pam_start in -lpam... (cached) no
> > checking for PAM support... no
> > checking if I should include saslauthd... /var/run/saslauthd
> > checking if I should include pwcheck... no
> > checking if I should include the alwaystrue verifier... no
> > checking if we should enable sasl_checkapop... enabled
> > .

>
>
> Mhh, it looks like you forgotten the pam-devel and other devel packages
> PAM devel libs and header files are in /usr/lib or /usr/include !
> Also you would need ssl and sasl devel pakages.
>
> regard markus

Reply With Quote
  #4 (permalink)  
Old 09-10-2003
Jim
 
Posts: n/a
Default Re: Can't get PAM to compile into sasl & saslauthd....

Found that the cyrus-sasl configure program looks for the includes
(openssl) in /usr/include, so unless you link the
/usr/local/ssl/include files to /usr/include it won't find it. The
alternative is to specify the path to the includes in the CFLAGS
variable. This was the openssl problem.

After loading the pam-devel libraries, it worked just fine.

Here's the two commands that I did to fix it.

ln -s /usr/local/ssl/include/openssl /usr/include/openssl
apt-get install libpam0g-dev

Happy trails...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0