Authentication problem

Stephen Liu satimis at yahoo.com
Mon Jun 9 13:06:25 EDT 2008


Hi Michael,


> > I have the feeling you should add this to your imapd.conf:
> >
> > sasl_mech_list: PLAIN
> >
> I miss AUTH=LOGIN and AUTH=PLAIN
> so "sasl_mech_list: PLAIN" will only cause that no auth mech
> will be available.


Performed following test;


$ sudo nano /etc/imapd.conf
adding;
AUTH=LOGIN
AUTH=PLAIN

at the bottom.


$ imtest -m login -p imap -u satimiscyrus localhost
just hanging there.


Also tried uncomment the line;
sasl_mech_list: PLAIN


$ imtest -m login -p imap -u satimiscyrus localhost
S: * OK lampserver Cyrus IMAP4 v2.2.12-Debian-2.2.12-4ubuntu1 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
S: C01 OK Completed
Please enter your password: 
C: L01 LOGIN satimis {12}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0


Still the same result.



> Maybe a sasl package is not installed/found
> ll /usr/lib/sasl2/ show for me
> 
> lrwxrwxrwx  1 root root    22 2006-09-04 16:18 libanonymous.so ->  
> libanonymous.so.2.0.21*
> lrwxrwxrwx  1 root root    22 2006-09-04 16:18 libanonymous.so.2 ->  
> libanonymous.so.2.0.21*
> -rwxr-xr-x  1 root root 13216 2006-06-16 16:40
> libanonymous.so.2.0.21*
> lrwxrwxrwx  1 root root    18 2006-09-04 16:18 liblogin.so ->  
> liblogin.so.2.0.21*
> lrwxrwxrwx  1 root root    18 2006-09-04 16:18 liblogin.so.2 ->  
> liblogin.so.2.0.21*
> -rwxr-xr-x  1 root root 13724 2006-06-16 16:41 liblogin.so.2.0.21*
> lrwxrwxrwx  1 root root    18 2006-09-04 16:21 libplain.so ->  
> libplain.so.2.0.21*
> lrwxrwxrwx  1 root root    18 2006-09-04 16:21 libplain.so.2 ->  
> libplain.so.2.0.21*
> -rwxr-xr-x  1 root root 14268 2006-06-16 16:40 libplain.so.2.0.21*
> lrwxrwxrwx  1 root root    19 2006-09-04 16:18 libsasldb.so ->  
> libsasldb.so.2.0.21*
> lrwxrwxrwx  1 root root    19 2006-09-04 16:18 libsasldb.so.2 ->  
> libsasldb.so.2.0.21*
> -rwxr-xr-x  1 root root 18316 2006-06-16 16:40 libsasldb.so.2.0.21*


$ ls -l /usr/lib/sasl2/
total 500
-rw-r--r-- 1 root root 19036 2006-04-24 19:38 libanonymous.a
-rw-r--r-- 1 root root   855 2006-04-24 19:38 libanonymous.la
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libanonymous.so ->
libanonymous.so.2.0.19
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libanonymous.so.2 ->
libanonymous.so.2.0.19
-rw-r--r-- 1 root root 15712 2006-04-24 19:38 libanonymous.so.2.0.19
-rw-r--r-- 1 root root 21802 2006-04-24 19:38 libcrammd5.a
-rw-r--r-- 1 root root   841 2006-04-24 19:38 libcrammd5.la
lrwxrwxrwx 1 root root    20 2008-04-18 07:24 libcrammd5.so ->
libcrammd5.so.2.0.19
lrwxrwxrwx 1 root root    20 2008-04-18 07:24 libcrammd5.so.2 ->
libcrammd5.so.2.0.19
-rw-r--r-- 1 root root 19104 2006-04-24 19:38 libcrammd5.so.2.0.19
-rw-r--r-- 1 root root 59792 2006-04-24 19:38 libdigestmd5.a
-rw-r--r-- 1 root root   864 2006-04-24 19:38 libdigestmd5.la
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libdigestmd5.so ->
libdigestmd5.so.2.0.19
lrwxrwxrwx 1 root root    22 2008-04-18 07:24 libdigestmd5.so.2 ->
libdigestmd5.so.2.0.19
-rw-r--r-- 1 root root 46336 2006-04-24 19:38 libdigestmd5.so.2.0.19
-rw-r--r-- 1 root root 19262 2006-04-24 19:38 liblogin.a
-rw-r--r-- 1 root root   835 2006-04-24 19:38 liblogin.la
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 liblogin.so ->
liblogin.so.2.0.19
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 liblogin.so.2 ->
liblogin.so.2.0.19
-rw-r--r-- 1 root root 16352 2006-04-24 19:38 liblogin.so.2.0.19
-rw-r--r-- 1 root root 38724 2006-04-24 19:38 libntlm.a
-rw-r--r-- 1 root root   829 2006-04-24 19:38 libntlm.la
lrwxrwxrwx 1 root root    17 2008-04-18 07:24 libntlm.so ->
libntlm.so.2.0.19
lrwxrwxrwx 1 root root    17 2008-04-18 07:24 libntlm.so.2 ->
libntlm.so.2.0.19
-rw-r--r-- 1 root root 32264 2006-04-24 19:38 libntlm.so.2.0.19
-rw-r--r-- 1 root root 27142 2006-04-24 19:38 libotp.a
-rw-r--r-- 1 root root   829 2006-04-24 19:38 libotp.la
lrwxrwxrwx 1 root root    16 2008-04-18 07:24 libotp.so ->
libotp.so.2.0.19
lrwxrwxrwx 1 root root    16 2008-04-18 07:24 libotp.so.2 ->
libotp.so.2.0.19
-rw-r--r-- 1 root root 48856 2006-04-24 19:38 libotp.so.2.0.19
-rw-r--r-- 1 root root 19342 2006-04-24 19:38 libplain.a
-rw-r--r-- 1 root root   835 2006-04-24 19:38 libplain.la
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 libplain.so ->
libplain.so.2.0.19
lrwxrwxrwx 1 root root    18 2008-04-18 07:24 libplain.so.2 ->
libplain.so.2.0.19
-rw-r--r-- 1 root root 16384 2006-04-24 19:38 libplain.so.2.0.19
-rw-r--r-- 1 root root 29164 2006-04-24 19:38 libsasldb.a
-rw-r--r-- 1 root root   856 2006-04-24 19:38 libsasldb.la
lrwxrwxrwx 1 root root    19 2008-04-18 07:24 libsasldb.so ->
libsasldb.so.2.0.19
lrwxrwxrwx 1 root root    19 2008-04-18 07:24 libsasldb.so.2 ->
libsasldb.so.2.0.19
-rw-r--r-- 1 root root 21288 2006-04-24 19:38 libsasldb.so.2.0.19
* end *


B.R.
Stephen


Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the Info-cyrus mailing list