Date: Mon, 5 Jun 2006 15:55:55 GMT From: Sergey Starosek <star@sunbay.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/98537: p5-IMAP-Sieve fails PLAIN authentication against timsieved (cyrus-imapd) Message-ID: <200606051555.k55Fttl8073401@www.freebsd.org> Resent-Message-ID: <200606051600.k55G0Z20037872@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 98537 >Category: ports >Synopsis: p5-IMAP-Sieve fails PLAIN authentication against timsieved (cyrus-imapd) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 05 16:00:35 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Sergey Starosek >Release: 6.0-RELEASE >Organization: Sunbay Software Crimea Ltd. >Environment: >Description: After upgrading to cyrus-imapd to version 2.3.6, websieve-0.63.a stopped working failing to authenticate user with the following error: Jun 5 18:37:06 host sieve[64799]: starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication Jun 5 18:37:07 host sieve[64799]: badlogin: localhost.example.com[127.0.0.1] PLAIN error base64 decoding string Websieve in this case reports the following error: System Error: IMAP::Sieve [ Login incorrect while connecting to localhost ]: NO "Authentication Error" Wrong Password! Quick search via Google gave a hint that probably base64 encoded string contains a eol marker at position 76. Patching Sieve.pm solves a problem. >How-To-Repeat: Install cyrus-imap (with SASL and PLAIN auth support) and websieve from ports. Try to login with valid user account. >Fix: Here's a patch which solves the problem by defining empty eol separator while calling encode_base64() --- Sieve.pm.orig Mon Jun 5 18:50:26 2006 +++ Sieve.pm Mon Jun 5 18:50:49 2006 @@ -178,7 +178,7 @@ } } $userpass = "$self->{'Proxy'}\x00".$self->{'Login'}."\x00".$self->{'Password'}; - $encode=encode_base64($userpass); + $encode=encode_base64($userpass, ''); $len=length($encode); print $fh "AUTHENTICATE \"PLAIN\" {$len+}\r\n"; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606051555.k55Fttl8073401>