[Sderby] Anyone fancy a challenge?

Mike Hemstock hemstock at tiscali.co.uk
Sat Feb 21 11:18:23 GMT 2004


On Saturday 21 February 2004 10:51, Rob Keeling wrote:
> ----- Original Message -----
> From: "Mike Hemstock" <hemstock at tiscali.co.uk>
> To: "South Derby LUG General Mailing List" <sderby at mailman.lug.org.uk>
> Sent: Saturday, February 21, 2004 5:32 AM
> Subject: [Sderby] Anyone fancy a challenge?
>
> > Folks,
> >
> > Do any of you folks fancy a little challenge?  I'm writing some PHP
> > pages. All of the users of this will have mailmail accounts using
> > Squirrelmail.
>
> I
>
> > would like to make the mailto: links in the code take the users to the
> > compose page in SQM with the email address inserted into the To: field.
>
> The
>
> > PHP I'm writing requires users to be authenticated.  The account
>
> credentials
>
> > are synchronised between the PHP code and SQM.  I would like the users to
>
> be
>
> > autologged on to SQM because they will have already been authenticated by
>
> the
>
> > PHP pages.
> >
> > So far, I have figured out how to pass the email address to SQM so that
> > it will be used in To:.  However, I cannot work out how to autologon SQM.
>
> The
>
> > logon, I assume, will be recorded using $_SESSION and $_COOKIE variables.
>
> I
>
> > have dumped the ones in use using the code:
>
> Mike, may well be completely off at a tangent with this! Is the web server
> doing the authentication?
> If so, there is a squirrelmail plug in that auto-authenticates using the
> username & password supplied  by
> http auth. Oviously https is required for this!
>
> Rob Keeling
> Network Manager
> Queen Elizabeth`s Grammar School

Hmm, at the moment I've written some PHP to do the auth.  I'm not sure if the 
webserver can do auth as it belongs to the hosting company.  If it can, then 
I guess I just need to figure out how PHP finds the current user as I use 
this in the scripts.  I guess it should be fairly easy?

Thanks,
Mike.




More information about the Sderby mailing list