[prev in list] [next in list] [prev in thread] [next in thread] 

List:       info-cyrus
Subject:    Re: login doesn't fully work, authenticate does
From:       Luca Olivetti <luca () wetron ! es>
Date:       2009-10-06 9:36:43
Message-ID: 4ACB0FAB.6050100 () wetron ! es
[Download RAW message or body]

En/na Luca Olivetti ha escrit:
> Hello,
> 
> I just upgraded my cyrus-imapd server from 2.2.12 to 2.3.15.
> Squirrelmail stopped working with the error 'SELECT "INBOX" - mailbox 
> does not exist".
> I found out that neither SELECT nor STATUS work if authenticating with 
> login, while they work with AUTHENTICATE (which I cannot use with 
> squirrelmail and my setup)


It turns out that the comment in cmd_login (imap/imapd.c) that says

/* authstate already created by mysasl_proxy_policy() */

doesn't apply here (maybe my sasl libraries are too old and don't work 
as intended?).


Anyway, I applied this workaround


--- cyrus-imapd-2.3.15.orig/imap/imapd.c        2009-10-06 
11:31:51.456950883 +0200
+++ cyrus-imapd-2.3.15/imap/imapd.c     2009-10-06 11:33:22.107293040 +0200
@@ -2199,6 +2199,8 @@
      }

      /* authstate already created by mysasl_proxy_policy() */
+    if (!imapd_authstate)
+      imapd_authstate = auth_newstate(imapd_userid);
      imapd_userisadmin = global_authisa(imapd_authstate, IMAPOPT_ADMINS);

      prot_printf(imapd_out, "%s OK [CAPABILITY ", tag);


Bye
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic