Martin, please try attached patch.
On 01/02/2011 01:33 AM, Martin Senebald wrote: > Hi @all, > > I have a problem with the dbmail-imapd and saslauthd using rimap. > > I get this nice errormsg in my log > "saslauthd[28383]: auth_rimap: unexpected response to auth request: * > CAPABILITY IMAP4rev1 ID ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA > THREAD=ORDEREDSUBJECT UNSELECT IDLE > saslauthd[28382]: do_auth : auth failure: [user=msen] > [service=imap] [realm=] [mech=rimap] [reason=[ALERT] Unexpected response > from remote authentication server]" > > When I use the right login. > testsaslauthd -u msen -p test > 0: NO "authentication failed" > > When I use the wrong password > testsaslauthd -u msen -p wrongpw > 0: NO "authentication failed" > > Then i have a propper log entry > "saslauthd[28383]: do_auth : auth failure: [user=msen] > [service=imap] [realm=] [mech=rimap] [reason=remote server rejected your > credentials]" > > dbmail-imapd -V > This is DBMail version 3.0.0-rc1 > > saslauthd -v > saslauthd 2.1.22 > authentication mechanisms: sasldb getpwent kerberos5 pam rimap shadow ldap > > So it looks, that the OK msg is kind of faulty for salsauthd. I'm not > sure if it's a problem with dbmail-imapd or salsauthd. > Does someone has the same problem? Or any idea for a quick fix? > > Cheers > Martin S. > > > > _______________________________________________ > DBmail mailing list > [email protected] > http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl
>From c78394035e73053757c844eba07e0c6f8fccda00 Mon Sep 17 00:00:00 2001 From: Paul J Stevens <[email protected]> Date: Sun, 2 Jan 2011 13:03:31 +0100 Subject: fix tagged response after authentication --- src/imapcommands.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/imapcommands.c b/src/imapcommands.c index 140a777..df5d787 100644 --- a/src/imapcommands.c +++ b/src/imapcommands.c @@ -228,8 +228,10 @@ void _ic_authenticate_enter(dm_thread_data *D) if (imap_before_smtp) db_log_ip(self->ci->src_ip); - dbmail_imap_session_buff_printf(self, "* CAPABILITY %s\r\n", Capa_as_string(self->capa)); - SESSION_OK; + if (self->state != CLIENTSTATE_ERROR) \ + dbmail_imap_session_buff_printf(self, \ + "%s OK [%s] User %s authenticated\r\n", \ + self->tag, Capa_as_string(self->capa), self->args[self->args_idx]); SESSION_RETURN; } -- 1.7.0.4
_______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
