[pmwiki-users] Find out password for one page

Patrick R. Michaud pmichaud at pobox.com
Mon Oct 2 16:26:28 CDT 2006


On Mon, Oct 02, 2006 at 11:16:01PM +0200, Mike wrote:
> Patrick R. Michaud wrote on 02.10.2006 22:42:
> >    # 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';
> 
> No, that would be just brilliant!!
> What if I have a page called "GroupAttribute"? (Not that it's likely,
> but still...)

It works exactly the same as it does now -- i.e., a GroupAttribute
page's passwords apply both to the group and to the GroupAttribute 
page itself.  (Put another way, it's not possible for a GroupAttribute 
page to have per-page passwords that are different from the group's.)

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

Except it would probably be either

   $DefaultAttr['Main.WikiSandbox']['passwdedit'] 
     = array('@nopass',
             crypt('firstvalidpw'),
             crypt('secondvalidpw'));

or

   $DefaultAttr['Main.WikiSandbox']['passwdedit']
     = '@nopass $1$dug5u1fB$F0IVEjB9IminlTE6ps6a2. 
        $1$t9fevv1D$ljEheiGtYt3.Q3Krrrpn80';

Pm




More information about the pmwiki-users mailing list