LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cyrus-sasl & openldap issue (https://www.linuxquestions.org/questions/slackware-14/cyrus-sasl-and-openldap-issue-364165/)

jiawj 09-17-2005 07:21 AM

cyrus-sasl & openldap issue
 
I wanna cyrus-sasl support ldap authentication mechanisms, so , I installed openldap( 2.2.26 ) first: ( I have installed BerkeleyDB )
Quote:

./configure --prefix=/usr/local/openldap && make depend && make && make test && make install
and this step successed.

then, I configure cyrus-sasl (2.1.20) src-pkg with following parameters:

Quote:

env - CPPFLAGS="-I/usr/local/openldap/include" LDFLAGS="-L/usr/local/openldap/lib" \
./configure --prefix=/usr/local/sasl2 \
--disable-checkapop \
--disable-cram \
--disable-digest \
--disable-otp \
--disable-srp \
--disable-srp-setpass \
--disable-krb4 \
--disable-gssapi \
--disable-gss_mutexes \
--disable-plain \
--disable-anon \
--disable-login \
--disable-ntlm \
--disable-passdss \
--disable-sql \
--enable-ldapdb \
--with-bdb-libdir=/usr/local/bdb/lib \
--with-bdb-incdir=/usr/local/bdb/include \
--with-gdbm=/usr/local/gdbm \
--with-saslauthd=/var/run \
--with-openssl=/usr/local/openssl \
--with-ldap=/usr/local/openldap \
--with-plugindir=/usr/lib/sasl2 \
--with-authdaemond=/tmp \
--with-dblib=berkeley \
&& make && make install
and it seems successed, at least no error message prompted.
but ......
I tested the saslauthed, It tell me that:

Quote:

#./saslauthd -v
saslauthd 2.1.20
authentication mechanisms: getpwent rimap shadow
can't find ldap support at here, :mad:


can anyone help me, thanks very much.

Alien Bob 09-17-2005 04:47 PM

You started saslauthd with
Code:

saslauthd -a ldap
?
The rc.saslauthd file of Slackware 10.2 starts "saslauthd -a shadow" and therefore will not support ldap unless you add "-a ldap".

And you put the your ldap server's configuration parameters into
Code:

/etc/saslauthd.conf
?

Eric

jiawj 09-18-2005 12:53 AM

thx for your reply, I got it.

Quote:

# ./saslauthd -v
saslauthd 2.1.20
authentication mechanisms: getpwent rimap shadow ldap
if saslauthd authentication mechanisms did not include ldap , you can't invoke saslauthd with -a ldap.

I configured cyrus-sasl with:

Quote:

env - CPPFLAGS="-I/usr/local/openldap/include" LDFLAGS="-L/usr/local/openldap/lib" \
./configure --prefix=/usr/local/sasl2 \
--disable-checkapop \
--disable-cram \
--disable-digest \
--disable-otp \
--disable-srp \
--disable-srp-setpass \
--disable-krb4 \
--disable-gssapi \
--disable-gss_mutexes \
--disable-plain \
--disable-anon \
--disable-login \
--disable-ntlm \
--disable-passdss \
--disable-sql \
--enable-ldapdb \
--with-bdb-libdir=/usr/local/bdb/lib \
--with-bdb-incdir=/usr/local/bdb/include \
--with-gdbm=/usr/local/gdbm \
--with-saslauthd=/var/run \
--with-openssl=/usr/local/openssl \
--with-ldap=/usr/local/openldap \
--with-dblib=none


All times are GMT -5. The time now is 12:07 AM.