login doesn't fully work, authenticate does

Luca Olivetti luca at wetron.es
Tue Oct 6 05:36:43 EDT 2009


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


More information about the Info-cyrus mailing list