[NoCat] Authenticating via IMAP

Matt McParland matt at engsoc.org
Tue, 18 Feb 2003 19:21:42 -0500 (EST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1971724357-1824514050-1045614102=:10202
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello,

I've included an IMAP module for NoCat that works with my setup.  We use
UW's IMAP server and this module, using Net::IMAP::Simple, can
authenticate users just fine.

It requires 'DataSource IMAP' and the IMAP_Server set in nocat.conf, and
that's it.  Throw that into the CVS version if you'd like.

I also started an NIS module, but didn't get it finished.  A POP3 module
would probably be as easy as the IMAP one.

-- 
Matt McParland					matt@engsoc.org


--1971724357-1824514050-1045614102=:10202
Content-Type: APPLICATION/x-perl; name="IMAP.pm"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0302181921420.10202@kolsch.engsoc.org>
Content-Description: 
Content-Disposition: attachment; filename="IMAP.pm"

cGFja2FnZSBOb0NhdDo6U291cmNlOjpJTUFQOwoKdXNlIE5vQ2F0OjpTb3Vy
Y2U7CnVzZSBOZXQ6OklNQVA6OlNpbXBsZTsgCnVzZSBzdHJpY3Q7CnVzZSB2
YXJzIHF3KCBASVNBICk7CgpASVNBID0gcXcoIE5vQ2F0OjpTb3VyY2UgKTsK
CnN1YiBhdXRoZW50aWNhdGVfdXNlciB7CiAgICBteSAoJHNlbGYsICR1c2Vy
X3B3LCAkdXNlcikgPSBAXzsKICAgICR1c2VyID0gJHVzZXItPmlkOwoKICAg
IG15ICRzZXJ2ZXIgPSBuZXcgTmV0OjpJTUFQOjpTaW1wbGUoICRzZWxmLT57
SU1BUF9TZXJ2ZXJ9ICk7CgogICAgaWYoICRzZXJ2ZXItPmxvZ2luKCAkdXNl
ciwkdXNlcl9wdyApICkKICAgIHsKICAgICAgcmV0dXJuIDE7CiAgICB9IGVs
c2UgewogICAgICAkc2VsZi0+bG9nKCA0LCAiVHJpZWQgdG8gYXV0aCB2aWEg
IiAuICRzZWxmLT57SU1BUF9TZXJ2ZXJ9ICk7CiAgICAgIHJldHVybiAkc2Vs
Zi0+bG9nKCA0LCAiSU1BUCBhdXRoZW50aWNhdGlvbiB1bnN1Y2Nlc3NmdWwu
IiApOwogICAgfQoKfQoKMTsKCg==
--1971724357-1824514050-1045614102=:10202--