Hi, 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
local/GroupA.php with:
$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
foo bar
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
configuration files?").
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
does not?
If this questions was answered before please give me a hint (a link).
Thanks!
Christian
pgpSZI7g4lkPj.pgp
Description: PGP signature
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
