[pmwiki-users] Using latest PmWiki and AuthUser, but can't set a READ password

Michael Shanley mike at upisup.com
Thu Jan 15 11:44:24 CST 2009


On Thu, Jan 15, 2009 at 12:02 PM, Chris Cox <ccox at endlessnow.com> wrote:

> I'm stuck.  I have AuthUser installed....
>
> $DefaultPasswords['admin'] = crypt('secret');
> $DefaultPasswords['attr'] = crypt('secret');
> $DefaultPasswords['edit'] = 'id:*';
> $DefaultPasswords['upload'] = 'edit';
> $HandleAuth['upload'] = 'edit';
> $HandleAuth['diff'] = 'edit';
>
> include_once("$FarmD/scripts/authuser.php");
> $Author = $AuthId;
>
> When I go to a page and do ?action=attr I would
> love to have just members of the @admins group
> have access.... I thought I just needed to supply
> @admins for the read password.
>
> What am I missing? (I have a feeling this is an
> easy question... but I couldn't find anything
> reading the docs online).
>
>
If you mean you want to keep visitors away from ?action=attr, add this
line...
$HandleAuth['attr'] = 'admin';

If you want to keep people from reading that specific page, say
Main.SecretPage, using @admin, then that should just work. Have you assigned
users to the @admin group?

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090115/43cfa520/attachment.html 


More information about the pmwiki-users mailing list