[pmwiki-users] Dumb Question: Access Classes without AuthUser?

Stirling Westrup sti at pooq.com
Tue Nov 6 01:39:38 CST 2007


I've got a PmWiki website that I also use as a personal information manager.
Right now I'm not using AuthUser, since there's only two classes of access:
public and private.

Now, I've been thinking of putting up some content that I want to limit to a
few close friends. Rather than going the full AuthUser route, I'd like to just
introduce some passwords that would give varying degrees of access to the
internals. As such, I would have group passwords, but no usernames. Such a
scheme might look like:

$DefaultPasswords['@personal']  = crypt("JustMePassword");
$DefaultPasswords['@intimates'] = crypt("VeryCloseFriendsPassword");
$DefaultPasswords['@friends']   = crypt("FriendsPassword");
$DefaultPasswords['@prerelease']= crypt("AlmostPublicPassword");

This would allow me to set @personal, etc passwords on groups, and be able to
change the passwords without having to edit the group attributes.

Now, of course the above won't work, but I hope it illustrates what I'd like.
I can do something vaguely like it by installing AuthUser and doing:

$AuthUser['personal']  = crypt("JustMePassword");
$AuthUser['intimates'] = crypt("VeryCloseFriendsPassword");
$AuthUser['friends']   = crypt("FriendsPassword");
$AuthUser['prerelease']= crypt("AlmostPublicPassword");

$AuthUser['@personal']  = 'personal';
$AuthUser['@intimates'] = 'intimates';
$AuthUser['@friends']   = 'friends';
$AuthUser['@prerelease']= 'prerelease';

But this requires everyone to log in with both a username and a password, and
I'd prefer only the password.

Anyone have any suggestions as to how I might do this?




More information about the pmwiki-users mailing list