Sivtest authentication failed generic failure
Nicolas Schmitz
Nicolas.Schmitz at ec-nantes.fr
Tue May 11 08:20:23 EDT 2004
Hello,
>
>This tests saslauthd only. You need to use sample client and server
>($cyrus-sasl-src/sample) to test sasl lib.
>
>
>
here is the output :
SERVER :
pc-schmitz-vm:/appli/distrib/cyrus-sasl-2.1.18/sample# ./server -s ldap
trying 10, 1, 6
socket: Address family not supported by protocol
trying 2, 1, 6
CLIENT :
pc-schmitz-vm:/appli/distrib/cyrus-sasl-2.1.18/sample# ./client -s ldap
localhost
receiving capability list... recv: {0}
starting SASL negotiation: no mechanism available
SASL(-4): no mechanism available: No worthy mechs found
closing connection
and on the server side :
accepted new connection
send: {0}
client didn't choose mechanism
closing connection
It I do : ./client -s ldap -m ldap localhost, I get :
receiving capability list... recv: {0}
server doesn't offer mandatory mech 'ldap'
closing connection
I don't know how tu use sample client/server... Maybe it's not the
correct argument ?
I don't understand why sasl works great with cyrus-imap, and not with
sieve...
Here is my imapd.conf :
sasl_pwcheck_method: saslauthd
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: ldap
And /etc/saslauthd.conf :
ldap_servers: ldap://127.0.0.1
ldap_bind_dn: cn=XXXXXX,dc=ec-nantes,dc=fr
ldap_password: XXXXXX
ldap_search_base: ou=people,dc=ec-nantes,dc=fr
ldap_scope: one
Thank you very much for your help.
Nicolas Schmitz
>>Thank you again.
>>
>>I repost my compile option :
>>
>>CYRUS-SASL :
>>
>>export CPPFLAGS=-I/appli/BerkeleyDB/include
>>export LDFLAGS=-L/appli/BerkeleyDB/lib/
>>
>>./configure \
>>--prefix=/appli/cyrus-sasl \
>>--with-ldap=/appli/openldap/ \
>>--enable-anon \
>>--enable-plain \
>>--disable-krb4 \
>>--disable-otp \
>>--disable-cram \
>>--disable-digest \
>>--with-saslauthd=/var/run/saslauthd \
>>--with-dblib=berkeley \
>>--with-bdb-libdir=/appli/BerkeleyDB/lib/ \
>>--with-bdb-incdir=/appli/BerkeleyDB/include \
>>--with-openssl=/usr/include/openssl/ \
>>--with-plugindir=/appli/cyrus-sasl/lib/sasl2
>>
>>make
>>make install
>>
>>mkdir -p /var/run/saslauthd
>>
>>cd saslauthd
>>make testsaslauthd
>>cp testsaslauthd /usr/local/bin
>>
>>echo /appli/cyrus-sasl/lib/sasl2 >> /etc/ld.so.conf
>>
>>
>
>This is not neccessary. sasl2 plugins are used by the sasl lib only.
>
>
>
>>echo /appli/cyrus-sasl/lib/ >> /etc/ld.so.conf
>>
>>
>>ln -s /appli/cyrus-sasl/lib/sasl2 /usr/lib/sasl2
>>ln -s /appli/cyrus-sasl/lib/libsasl2.so.2.0.18 /usr/lib/libsasl2.so.2
>>ldconfig
>>
>>CYRUS-IMAPD :
>>
>>cd cyrus-imapd
>>export CPPFLAGS="-I/usr/include/et"
>>
>>./configure \
>>--prefix=/appli/cyrus-imapd \
>>--exec-prefix=/appli/cyrus-imapd \
>>--with-sasl=/appli/cyrus-sasl \
>>--with-perl=/usr/bin/perl \
>>--with-auth=unix \
>>--with-bdb-libdir=/appli/BerkeleyDB/lib/ \
>>--with-bdb-incdir=/appli/BerkeleyDB/include/ \
>>--with-openssl=/usr/include/openssl/
>>
>>make depend
>>
>>make
>>make install
>>
>>
>>
>
>
>
--
Nicolas Schmitz
Centre de Ressources Informatiques | tel : 02 40 37 68 06
Ecole Centrale de Nantes | fax : 02 40 37 25 78
1 rue de la Noe - BP 92101
44321 NANTES CEDEX 03
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list