How best to achieve Single Sign-On (using JASIG CAS) with SquirrelMail?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm fairly new to PHP programming, I'm trying to achieve single
sign-on between SquirrelMail and our Java-based portal (uPortal).

I'm using JASIG CAS as the authentication system (via PAM CAS on the
IMAP server).  CAS uses one-time password tokens, so each brand new
IMAP authentication attempt will require a new password.

To complicate this further, I'm also planning to use IMAP proxy
(up-imapproxy).   So I'll need to cache password tokens for a short
while in the session and once they expire in the proxy re-obtain new
password credentials from CAS.

I'd also like to continue offering the non-CAS method of IMAP
authentication.  Incidentally, I'm using ESUP phpCAS software.

I've managed to get something working by directly modifying the source
code of several SquirrelMail source files (including imap_general.php
and webmail.php) but it doesn't feel right.

I think I should really be using hooks.  As I understand it, I need a
hook to be called every time the function sqimap_login from
imap_general.php is called.  This hook will need to be able to modify
the password string used for IMAP connection.  It will need to attempt
IMAP authentication and when the password token expires in the IMAP
proxy it will acquire a new password token and re-attempt
authentication.

Does anybody have any advice on the best way to implement this?

Thanks

Mark
-- 
"Those who ignore standards are doomed to reinvent them." - Tantek

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux