I am trying to understand the implication of using AuthUser 
with the PublishPDF recipe. When a user requests a PDF, 
this causes the PDF server to issue an http request for 
the page contents, so we have to authenticate the PDF 
server as an authorised reader.

The code in PublishPDF that generates the http request 
includes the lines:
  # pass $_COOKIE['PHPSESSID'] contents to wikipublisher 
  if (isset($_COOKIE['PHPSESSID'])) ... 

This passes the session information to the PDF server 
and it works correctly for sites using pmwiki passwords.

With AuthUser, the brute force solution is to bypass it:
if ($_SERVER['REMOTE_ADDR'] != 'ip.of.pdf.server') 
    include_once("$FarmD/scripts/authuser.php"); 

Q1. What do I need to do to make the PublishPDF recipe
    work with AuthUser? 

TIA
-- 
John Rankin
Affinity Limited
T 64 4 495 3737
F 64 4 473 7991
021 RANKIN
[EMAIL PROTECTED]
www.affinity.co.nz



_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to