[pmwiki-users] Cluster: Cascading-Inherit GroupAttribute Passwords

Sivakatirswami katir at hindu.org
Wed Jun 27 19:54:58 CDT 2007


Kathryn Andersen wrote:
> On Wed, Jun 27, 2007 at 10:14:42AM -1000, Sivakatirswami wrote:
>>>> thus it would appear that the Child groups are not inheriting
>>>> the password entered for the cluster's matriarch group.
> 
[snip]
>>
>> $WikiDir = new PageStore('wiki.d/{$Group}/{$FullName}');
> 
> Aha!  This could be the culprit!
> You really need to set $WikiDir as early as possible, because it tells
> everything where to look for the pages.
> 
> One of the things Cluster does in its setup is to check whether certain
> pages exist.  But if you set $WikiDir *after* you call Cluster, then
> Cluster will use the default value for $WikiDir and not the correct one.
> So of course none of the GroupAttributes pages are found, because
> Cluster is looking in the wrong place!
> 
> Kathryn Andersen

Yes! that's it...

change top of farm config to:

<?php

$FarmPubDirUrl = 'http://wiki.flowers.org/pmwiki/pub';

$DefaultPasswords['admin'] # etc password section

# make WikiDir almost the very first setting

$WikiDir = new PageStore('wiki.d/{$Group}/{$FullName}');

$EnablePageListProtect = 1;

$PageListCacheDir = 'work.d';
mkdirp($PageListCacheDir);
include_once('local/config.php'); ### <----- load wiki's customizations
include_once("$FarmD/cookbook/cluster.php");
include_once("$FarmD/cookbook/wsplus.php");
include_once("$FarmD/cookbook/zap.php");

#########

so now, just to confirm, I believe everything is
now working as expected.

1) set attributes and passwords for

WebContent.GroupAttributes?action=attr

2) quit Fire Fox

3) boot browser again and attempt to go to

WebContent-PhotoGalleries.WebContent-PhotoGalleries

and (Jai Ganesha!) I am asked for a password.

4) enter password assigned in the last sesson
to the Cluster Matriarch  and I'm into the child group

Outstanding.  We now have a complete solution,
sans Apache BA and sans AuthUser for access control
that is actually doable, maintainable with very little overhead...

Thank you

Sivakatirswami
www.himalayanacademy.com

Get Hinduism Today Digital Edition. It's Free!
http://www.hinduismtoday.com/digital/



More information about the pmwiki-users mailing list