[pmwiki-users] defining authuser groups in config.php
Patrick R. Michaud
pmichaud at pobox.com
Tue Aug 15 13:44:33 CDT 2006
On Tue, Aug 15, 2006 at 01:16:52PM +0200, benjamin behringer wrote:
> hi list
> is it somhow possible to define usergroups in config.php I did try the
> following but without success:
>
> $AuthUser['Admin'] = crypt('adminpassword');
> $AuthUser['Adminuser'] = crypt('adminuserpassword');
> $AuthUser['Normaluser'] = crypt('userpassword');
>
> $AuthUser['@admins'] = array('id:Admin','id:BenjaminBehringer');
There's not an easy way to do a single group listing from config.php.
However, one can do:
$AuthUser['Admin'] = array(crypt('adminpassword'), '@admins');
$AuthUser['Adminuser'] = array(crypt('adminuserpassword', '@admins');
$AuthUser['Normaluser'] = crypt('userpassword');
which both sets the passwords and places 'Admin' and 'Adminuser'
into the @admins group.
Pm
More information about the pmwiki-users
mailing list