[pmwiki-users] private group access question(s)

Neil Herber nospam at mail.eton.ca
Fri Mar 4 10:26:31 CST 2005


I am running a password-protected PmWiki for a client. All users are 
granted access via Apache basic authentication. I have a group called 
"Private" which is used to store information that only my direct client and 
I can access (I assigned a read password to the group). However, seeing the 
Private group requires re-entry of the user's password, which is a pain.

What magic bits of PHP can I add to config.php so that:

         if authorized username is "Neil" or "Bob"
                 allow access to Private group
         else
                 do not allow access
         endif

One solution I can think of is to add an access restriction to Apache:

         <Directory "X:/path/to/wiki/Private">
                 AuthType Basic
                 AuthName "Private"
                 AuthUserFile userfile.name
                 AuthGroupFile groupfile.name
                 Require group private
         </Directory>

But I would much rather have an "all PmWiki" solution.


Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 




More information about the pmwiki-users mailing list