[pmwiki-users] AuthUser and IP-based authorisation

John Rankin john.rankin at affinity.co.nz
Mon Oct 13 16:21:13 CDT 2008


What would be involved in extending AuthUser to grant access 
based on IP address?

Specifically, would it be possible to grant read access to 
requests from a specific IP address, based on that address 
being defined as a username on SiteAdmin.AuthUser?

A number of sites using the PublishPDF library also use AuthUser 
to control access. Currently, the only way to support this is to 
make local/config.php detect incoming requests from the IP address 
of the PDF server and set a username and password.

It would be tidier if the administrator could configure this 
through the wiki, without having to set up a special username 
and password. Requests from that IP address would be given read
access, without having to enter a password.

Is this something that can be done as a local customisation or 
does it require changes to scripts/authuser.php?
-- 
John Rankin
Affinity Limited
T 64 4 495 3737
F 64 4 473 7991
021 RANKIN
john.rankin at affinity.co.nz
www.affinity.co.nz





More information about the pmwiki-users mailing list