[pmwiki-users] need help with AuthUser password syntax in config.php

Patrick R. Michaud pmichaud at pobox.com
Wed Apr 5 15:30:10 CDT 2006


On Wed, Apr 05, 2006 at 04:12:22PM -0400, Neil Herber wrote:
> Could someone please give me the correct syntax for AuthUser 
> passwords? The docs "claim" to explain them, but they are obviously 
> not idiot-proof, because they don't work for me. I will add this info 
> to the AuthUser page once I get it. What it says now:
> [...]
> 
> In config.php, which of these work?????
> 
> $DefaultPasswords['admin'] = 'id:NeilHerber';

Works.

> $DefaultPasswords['admin'] = 'id:@admins';
> $DefaultPasswords['admin'] = '@admins';

Just '@admins' is normal, but I think that 2.1.0 allows
'id:@admins' to also work.  (I could be wrong about this.)

> How do I allow multiples?????
> 
> $DefaultPasswords['admin'] = 'id:NeilHerber,FredSmith';

Works.

> $DefaultPasswords['admin'] = 'id:@admins,FredSmith';

Should be

   $DefaultPasswords['admin'] = array('@admins', 'id:FredSmith');

but again I think that 'id:@admins,FredSmith' might also work
in 2.1.

> $DefaultPasswords['admin'] = '@admins,FredSmith';

This one definitely does not work.

Pm




More information about the pmwiki-users mailing list