I installed cyrus-sasl-2.1.18 and cyrus-imapd-2.2.4. I configured to authenticated with pam.
my problem :
[root@rh8 cyrus-imapd-2.2.4]# imtest -m login -p imap -u cyrus localhost
S: * OK rh8 Cyrus IMAP4 v2.2.4 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN root {5}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0

my /etc/imapd.conf :
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
srvtab: /var/imap/srvtab
allowanonymouslogin: no
sasl_pwcheck_method: saslauthd

i use usename cyrus, password cyrus

[root@rh8 cyrus-imapd-2.2.4]# usr/local/sbin/sasldblistusers2
cyrus@rh8: userPassword

please help me..............