Problem with Cyrus IMAP and Cyrus SASL

Luca Manganelli manganelli at ksolutions.it
Mon Mar 8 11:50:19 EST 2004


Hi,

I hope that this is the right mailing list for my question.

I compiled and installed Cyrus imap (v2.2.3) and Cyrus sasl (v 2.1.7) on my redhat 7.3 server.

The imapd.conf is this:

-----------------------------------------------------------------------
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus ksmail
lmtp_admins: cyrus ksmail
allowanonymouslogin: yes
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
servername: kmailcert.it
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
-----------------------------------------------------------------------

and the /etc/sysconfig/saslauthd is:


-----------------------------------------------------------------------
# Authentications mechanism (for list see saslauthd -v)
SASL_AUTHMECH=PLAIN

# Hostname for remote IMAP server (if rimap auth mech is used)
SASL_RIMAP_HOSTNAME=

# Honour time-of-day login restrictions (if shadow auth mech is used)
SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes
-----------------------------------------------------------------------


then I execute the /usr/lib/cyrus-imapd/cyradm:

-----------------------------------------------------------------------
[root at ksmail-test cyrus-imapd]# ./cyradm -u cyrus localhost
IMAP Password:
              Login failed. at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with  as cyrus
-----------------------------------------------------------------------

/var/log/messages tells me:

-----------------------------------------------------------------------
Mar  8 17:36:14 ksmail-test perl: No worthy mechs found
Mar  8 17:45:32 ksmail-test last message repeated 2 times
-----------------------------------------------------------------------


How strange. I tried to test the SASL server with

  sasl2-sample-server -s rcmd local=127.0.0.1;23,remote=127.0.0.1;23 -m PLAIN

and

  sasl2-sample-client localhost -m PLAIN

with the output result:

receiving capability list... recv: {57}
PLAIN LOGIN OTP NTLM DIGEST-MD5 CRAM-MD5 GSSAPI ANONYMOUS
PLAIN LOGIN OTP NTLM DIGEST-MD5 CRAM-MD5 GSSAPI ANONYMOUS
please enter an authentication id: cyrus
please enter an authorization id: cyrus
Password:
send: {5}
PLAIN
send: {1}
Y
send: {17}
cyrus[0]cyrus[0]cyrus
successful authentication
closing connection




what's wrong?
Thanks


--------------------------------------------------------------
LUCA MANGANELLI
          
KSolutions S.p.A. 
via Lenin, 132/26 56017 San Martino Ulmiano (PI) - ITALY
Tel. :+39050898111 Fax : +39050861200  
email: manganelli at ksolutions.it  http://www.ksolutions.it
--------------------------------------------------------------


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.613 / Virus Database: 392 - Release Date: 04/03/2004
 

---
Home Page: http://asg.web.cmu.edu/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