RE: cyrus imapd authentication problem

2005-08-18 Thread David Carter

On Wed, 17 Aug 2005, Thor Vik wrote:

Hi, I am tearing my hair out over this one.  When I run an imtest -m 
login localhost, I keep getting an L01 NO Login failed error and a 
generic failure.  What could this mean?  I have configured imapd.conf's 
sasl_pwcheck_method: saslauthd.  I have saslauthd set to pam and when I 
run a saslauthdtest, it works fine.  My syslog give me an error like 
this: badlogin: localhost.localdomain [127.0.0.1] plaintext cyrus 
SASL(-1): generic failure: checkpass failed.  In my auth.log, I get 
cannot connect to saslauthd server: Permission denied.  Any ideas would 
be met with appreciation.


saslauthd creates a Unix domain socket for clients (imapd) on connect to. 
The standard location is /var/state/saslauthd/mux, but it can be changed 
using the --with_saslauthd option to cyrus-sasl's configure script. This 
socket must be accessible by the user or group that imapd is running as.


The other possible problem is that saslauthd only supports simple LOGIN 
authentication. If the CAPABILITY response that you get from imtest 
includes: AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5, then you need to add 
the following to your imapd.conf file:


  sasl_mech_list: plain

--
David Carter Email: [EMAIL PROTECTED]
University Computing Service,Phone: (01223) 334502
New Museums Site, Pembroke Street,   Fax:   (01223) 334679
Cambridge UK. CB2 3QH.

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


Re: cyrus imapd authentication problem

2005-08-18 Thread Etienne Goyer

David Carter wrote:
pam and when I run a saslauthdtest, it works fine.  My syslog give me 
an error like this: badlogin: localhost.localdomain [127.0.0.1] 
plaintext cyrus SASL(-1): generic failure: checkpass failed.  In my 
auth.log, I get cannot connect to saslauthd server: Permission 
denied.  Any ideas would be met with appreciation.


Make sure Cyrus can connect to the saslauthd socket.  Check the 
permission on /var/run/saslauthd.  In Debian, process that need to talk 
to saslauthd have to be in the sasl group.


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


RE: cyrus imapd authentication problem

2005-08-17 Thread Thor Vik
Did you get any solution on this? Seems like I have the same problem.

Regards

Thor Vik

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Schwartz
Sent: 27. juni 2005 03:38
To: info-cyrus@lists.andrew.cmu.edu
Subject: cyrus imapd authentication problem

Hi, I am tearing my hair out over this one.  When I run an imtest -m login
localhost, I keep getting an L01 NO Login failed error and a 
generic failure.  What could this mean?   I have configured imapd.conf's 
sasl_pwcheck_method: saslauthd.  I have saslauthd set to pam and when I run
a saslauthdtest, it works fine.  My syslog give me an error like
this: badlogin: localhost.localdomain [127.0.0.1]  plaintext cyrus
SASL(-1): generic failure: checkpass failed.  In my auth.log, I get cannot
connect to saslauthd server: Permission denied.  Any ideas would be met with
appreciation.

Thank you,
Matt

---
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


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


Re: cyrus imapd authentication problem

2005-06-26 Thread Wil Cooley
On Sun, 2005-06-26 at 21:38 -0400, Matt Schwartz wrote:
 Hi, I am tearing my hair out over this one.  When I run an imtest -m 
 login localhost, I keep getting an L01 NO Login failed error and a 
 generic failure.  What could this mean?   I have configured imapd.conf's 
 sasl_pwcheck_method: saslauthd.  I have saslauthd set to pam and when I 
 run a saslauthdtest, it works fine.  My syslog give me an error like 
 this: badlogin: localhost.localdomain [127.0.0.1]  plaintext cyrus 
 SASL(-1): generic failure: checkpass failed.  In my auth.log, I get 
 cannot connect to saslauthd server: Permission denied.  Any ideas would 
 be met with appreciation.

Sounds like saslauthd and Cyrus IMAP are looking for the saslauthd
socket at different places or the permissions on the path to the socket
are preventing Cyrus IMAP from connecting.

Wil
-- 
Wil Cooley [EMAIL PROTECTED]
Naked Ape Consultinghttp://nakedape.cc
* * * * Linux, UNIX, Networking and Security Solutions * * * *


signature.asc
Description: This is a digitally signed message part