[pmwiki-users] Setting DefaultsPasswords via config files
bartolin at gmx.de
Fri Jun 8 04:45:51 CDT 2007
reading some recent posts about read protection I remembered a problem
I encountered a while ago.
Let's say I have a group "GroupA" which I want to be read protected
with password "foo". That password is given to all readers of GroupA.
Since I can't remember all those passwords I use a configuration file
$DefaultPasswords['read'] = crypt('foo');
But now I want to give additional read access to page "GroupA/PageA"
to some users who are not allowed to read the other pages in GroupA.
Let's assume the second password is "bar".
I can use "?action=attr" on GroupA/PageA to set read permissions to
via the browser. But again I prefer to put that second password in a
config file. The problem is, that adding a line
$DefaultPasswords['read'] = array(crypt('foo'), crypt('bar'));
to local/GroupA.PageA.php doesn't work. For some reasons only "foo" is
recognized as a valid read password for page GroupA/PageA.
BTW: The same problem is described in the question-answer-section of
http://www.pmwiki.org/wiki/PmWiki/PasswordsAdmin (" How can I read
password protect all pages in a group except the HomePage using
I expected PmWiki to read the values from local/GroupA.PageA.php and
override the value from local/GroupA.php. What is the reason that it
If this questions was answered before please give me a hint (a link).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20070608/d549f908/attachment.bin
More information about the pmwiki-users