Abusing the sync protocol for fun and profit.

Bron Gondwana brong at fastmail.fm
Thu Feb 21 15:52:49 EST 2008


On Thu, 21 Feb 2008 09:20:34 -0600, "Dan White" <dwhite at olp.net> said:
> Bron Gondwana wrote:
> > Attached are three perl modules,
> > 
> > Cyrus/SyncClient.pm
> > Cyrus/ImapReplica.pm
> > Mail/IMAPTalk.pm
> > 
> > I'm including this copy of Mail::IMAPTalk because without it, the clever
> > 'literal' stuff doesn't work properly.  I'll prod Rob to clean it up and
> > re-package it and push it to CPAN so I can depend on that version and
> > have things all be happier.
> 
> Thanks Bron,
> 
> This works great for me. I'm able to synchronize between my old 
> 2.1.17 server, with a perdition proxy frontend end, to my newer 
> 2.3.10 server.

Excellent, that's what I like to hear :)

> I had a hiccup in the SyncClient.pm module during DIGEST-MD5 
> authentication.
> 
> I changed to PLAIN, using the following changes, to get it working:

Wow, that wouldn't work for us at all.  I did have to put -p 1 on the
syncserver command line in cyrus.conf before it would let me authenticate
at all, and nothing but DIGEST-MD5 worked for me.  Also, 
Authen::SASL::Cyrus worked fine, but then the connnection was encrypted and
I had to try and pipe all the IO through it as well, which I couldn't be
bothered with making pipe nicely.

> [diff]

Thanks for that.  I probably should make it try both in order or something
funky like that.  Maybe an "auth_digestmd5" and an "auth_plain" function
which are tried in that order.

Bron.
-- 
  Bron Gondwana
  brong at fastmail.fm



More information about the Info-cyrus mailing list