Bug 98537

Summary: mail/p5-IMAP-Sieve fails PLAIN authentication against timsieved (cyrus-imapd)
Product: Ports & Packages Reporter: Sergey Starosek <star>
Component: Individual Port(s)Assignee: Jun Kuriyama <kuriyama>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Sergey Starosek 2006-06-05 17:00:35 UTC
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.

Fix: Here's a patch which solves the problem by defining empty eol separator while calling encode_base64()
How-To-Repeat: Install cyrus-imap (with SASL and PLAIN auth support) and websieve from ports.
Try to login with valid user account.
Comment 1 Erwin Lansing freebsd_committer freebsd_triage 2006-06-05 17:08:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-03-10 08:50:30 UTC
kuriyama    2007-03-10 08:50:24 UTC

  FreeBSD ports repository

  Modified files:
    mail/p5-IMAP-Sieve   Makefile 
    mail/p5-IMAP-Sieve/files patch-Sieve.pm 
  Log:
  - Fix broken PLAIN authentication against timsieved.
  
  PR:             ports/98537
  Submitted by:   Sergey Starosek <star@sunbay.com>
  
  Revision  Changes    Path
  1.6       +1 -1      ports/mail/p5-IMAP-Sieve/Makefile
  1.2       +7 -4      ports/mail/p5-IMAP-Sieve/files/patch-Sieve.pm
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Jun Kuriyama freebsd_committer freebsd_triage 2007-03-10 08:50:53 UTC
State Changed
From-To: open->closed

Committed, thanks!