Cyrus imap + sasl + pam

Do Duc Huy huydd at cdit.com.vn
Mon Apr 14 00:05:44 EDT 2003


Hi all!
I want to upgrade my system with latest version cyrus-imap-2.1.12, cyrus-sasl-2.1.12 and Berkerley DB db-4.1.25 in Redhat linux 7.3. When I configured cyrus-sasl, it say pam-support yes.

checking for pam_start in -lpam... (cached) yes
checking for security/pam_appl.h... (cached) yes
checking for PAM support... yes

But when I installed sasl and used ldd command to check dynamic library link, I didn't found pam libraries

$ ldd /usr/local/lib/libsasl2.so
        libdl.so.2 => /lib/libdl.so.2 (0x4002f000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40033000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

I don't know what 's wrong so I guest pam library was static compiled in sasl. But when I install cyrus-imap and configured with pam authenticate sasl_pwcheck_method: PAM and tried to login with imtest, It didn't OK.

$ /opt/MBS/bin/imtest -a test -m login 127.0.0.1
S: * OK cosa1.cdit.com.vn Cyrus IMAP4 v2.1.12 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE U
IDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJ
ECT THREAD=REFERENCES IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN test {4}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: no mechanism available
Authentication failed. generic failure
Security strength factor: 0

This is infoamtion in logfile:
Apr 14 11:07:54 cosa1 imapd[10657]: accepted connection
Apr 14 11:07:57 cosa1 imapd[10657]: unknown password verifier
Apr 14 11:07:57 cosa1 imapd[10657]: badlogin: localhost.localdomain[127.0.0.1] plaintext test SASL(-4): no mechanism available: checkpass failed

I 've searched all cyrus maillist to find out how to fix this problem but I have not found any idea yet. So I deciced to post this problem to you all. Is there any one can tell me what to do to fix my problem?
Thanks for any idea.

-- 
Do Duc Huy 
Centre for Development Infomation  Technology - CDIT
The 4th floor VCCI buiding #9 Dao Duy Anh Str. Dong Da Dstr. Hanoi
Tel: 84-04-5742879
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20030414/91e801fe/attachment.html


More information about the Info-cyrus mailing list