[pmwiki-users] Find out password for one page

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


Cool.

Not meant as pushing you, but do you think that could be available
anytime soon? I'm asking as otherwise I'll work my way through
understanding and installing AuthUser, which seems to do the trick for
me as well (on first glance at least...)

Thanks,
Mike


Patrick R. Michaud wrote on 02.10.2006 23:26:
> 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