Hello Adrian,
On Thursday, November 21, 2002, Adrian Jones wrote...

> We have the notify plugin on the homepage and a separaet icon for SM
> itself, the icon passes the username and password from our intranet
> login straight to redirect.php so the login page is not required
> once logged into our screens.

> The question comes before you have logged in to SM because the
> notify screen won't work.

> We want to know how the $key is generated so we can start the SM
> session from our login without redirect.php opening SM.

$key is an encrypted value.  Take a look at src/redirect.php starting
about line 84.  The encryption routines can be seen in
functions/strings.php

The problem with setting the values yourself is you have to work on
setting some values to the session for SquirrelMail as well, such as
$onetimepad and $username for example.  If you just want to allow a
small login box on your main page for logging into SquirrelMail, take
a look at this quick solution:

http://article.gmane.org/gmane.mail.squirrelmail.user/4664

I suggested this the other day, and tested it myself, the only draw
back is that it always has java script disabled.  You could take a
look at src/login.php on the java script code that sets that value and
duplicate it.

-- 
Jonathan Angliss
([EMAIL PROTECTED])



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to