[pmwiki-users] Find out password for one page

Mike mike at widowitz.com
Mon Oct 2 16:16:01 CDT 2006


Patrick R. Michaud wrote on 02.10.2006 22:42:
> On Mon, Oct 02, 2006 at 03:30:37PM -0500, Patrick R. Michaud wrote:
>> Now that I think about it, I think I even know an easy way to
>> implement it that wouldn't interfere with the existing authorization
>> system.  Hmmmm....
> 
> ...would something like the following be too onerous for 
> an admin to deal with in config.php...?
> 
>    # restrict ?action=attr
>    $DefaultPasswords['attr'] = '@lock';
> 
>    # set read password for Main group
>    $DefaultAttr['Main.GroupAttribute']['passwdread'] = crypt('secret');
> 
>    # set edit password for Main.WikiSandbox
>    $DefaultAttr['Main.WikiSandbox']['passwdedit'] = '@nopass';
> 
> Pm
> 

No, that would be just brilliant!!
What if I have a page called "GroupAttribute"? (Not that it's likely,
but still...)

Mike

PS: of course, I assume, that stuff like this would also be possible:
$DefaultAttr['Main.WikiSandbox']['passwdedit'] = '@nopass, firstvalidpw,
secondvalidpw';




More information about the pmwiki-users mailing list