[pmwiki-users] authuser
Patrick R. Michaud
pmichaud at pobox.com
Tue Jun 21 13:32:45 CDT 2005
On Tue, Jun 21, 2005 at 06:25:53PM +0100, Hans wrote:
> Tuesday, June 21, 2005, 5:52:09 PM, Patrick wrote:
> > Well, the script "updates" (as opposed to "reinitializes") the session
> > with the new authenticated user. By any chance are you also using
> > httpauth?
>
> No. As I said in the previous email, it is now actually working.
> And I am working through levels of confusion as to where and how
> passwords+usernames are set.
By this do you mean the confusion is in attaching usernames + passwords
(authorizations) to pages in PmWiki, or simply the act of associating
a password with a specific username?
> > So, if you wanted a site-wide edit restriction, you can do:
> >
> > $DefaultPasswords['edit'] = 'id:bart,nancy';
>
> This seems to work as well. What does not work is
> $DefaultPasswords['edit'] = 'id:*';
Okay, I'll check into this.
> I have not tried combinations like foobar id:nancy in the
> $DefaultPasswords setting.
That won't work -- any passwords (as opposed to user authorizations)
have to be encrypted in the $DefaultPasswords array.
> I also notice that entering a username and password does not pass this
> username ( $_SESSION['authid'] ) to the {$Author} variable. Could this
> be included, so the username automatically appears in the sign author
> box, and other places on pages where {$Author} is used?
Well, I've been thinking this would be better done as a local customization,
because one's username might not always correspond to his/her authorname.
I.e., I might want a username of "pmichaud" but an author name of
"Patrick Michaud".
However, perhaps I could make this setting the default, and then have
a mechanism for overriding it.
Pm
More information about the pmwiki-users
mailing list