Subject: [sup-talk] [PATCH] GSSAPI support for net/imap.rb and sup

From: [email-masked] (Michael Stapelberg)
Date: Mon, 20 Jul 2009 14:34:56 +0200

Hi,

since I installed my new mailserver with Kerberos auth only, I needed to
implement GSSAPI support for Net::IMAP and sup.

I found the C bindings called ruby-gss at:
http://devel.it.su.se/pub/jsp/polopoly.jsp?d=1047&a=3790

Using them (and adding the wrap/unwrap methods for a context, see
03-ruby-gss.patch), it was relatively easy to implement GSSAPIAuthenticator
(see 02-net_imap-gssapi.patch). The addition of the authenticator to sup is
trivial (see 01-sup_gssapi.patch).

Here comes the catch:
As I?m not very much involved in the ruby community (in fact, this is my first
piece of ruby code), I need someone to help me get things upstream (for
Net::IMAP in the first place, but someone maintaining ruby-gss would be great).
As for the sup patch, I think this already is the right place to post it ;-).

Short installation instructions for those not so familiar with ruby:
$ cd ruby-gss
$ ruby extconf.rb
$ make
$ sudo make install
# patch /usr/lib/ruby/1.8/net/imap.rb
# patch /usr/lib/ruby/1.8/sup/imap.rb

Best regards,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01-sup_gssapi.patch
Type: application/octet-stream
Size: 1936 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090720/9d9a88ec/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-net_imap_gssapi.patch
Type: application/octet-stream
Size: 2373 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090720/9d9a88ec/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-ruby-gss.patch
Type: application/octet-stream
Size: 2891 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090720/9d9a88ec/attachment-0002.obj>

---

From: [email-masked] (William Morgan)
Date: Mon, 27 Jul 2009 10:31:09 -0700

Reformatted excerpts from Michael Stapelberg's message of 2009-07-20:
> As I?m not very much involved in the ruby community (in fact, this is
> my first piece of ruby code), I need someone to help me get things
> upstream (for Net::IMAP in the first place, but someone maintaining
> ruby-gss would be great).

I don't have much advice for you other than find the guy who maintains
Net::IMAP, beating him on the head a few times for me, and send him the
patch. I believe net/imap is part of core ruby, which means you can
probably just take this to the ruby-core mailing list.
-- 
William <wmorgan-sup at masanjin.net>