[pmwiki-users] passwords and farms

Sandy sandy at onebit.ca
Thu Nov 16 13:07:36 CST 2006


I now have a multi-field farm. (Yay!!!) Most of the fields will be CMS 
use rather than wiki -- one admin, few writers, lots of readers.

I am using AuthUser.

For now, I want each field to have two users:

Admin. Same person for field. Can do anything. This is set in 
farmconfig.php and works.

	$AuthUser['Admin'] = 'xxxx';
	include_once("$FarmD/scripts/authuser.php");
	$DefaultPasswords['admin'] = 'id:Admin';
	$DefaultPasswords['edit'] = 'id:Admin';
	$DefaultPasswords['attr'] = 'id:Admin';
	$DefaultPasswords['upload'] = 'id:Admin';
	include_once("$FarmD/scripts/authuser.php");

Writer. To be set for each wiki. My first thought was to put this in
/local/config.php:

	$AuthUser['Writer1'] = 'xxxx';
	$DefaultPasswords['edit'] = 'id:Admin,Writer1';
	$DefaultPasswords['upload'] = 'id:Admin,Writer1';

That got two people working nicely on the old single-wiki site, version 
2.1.11. But now only Admin can log in.

I wonder if the problem is that farmconfig.php sets up Admin, then calls
AuthUser, and then /local/config.php sets up Cricket *after* that 1st
call to AuthUser.

Regardless of the reasons:

What is the most efficient way (for the administrator) to set up one
Admin identity for all the fields, and then individual identities for
the rest of the fields. These individual identities will most likely 
have edit privileges for all pages, possibly excluding the Site pages.

Thanks in advance,

Sandy












More information about the pmwiki-users mailing list