[pmwiki-users] Problem with RequireAuthor
tamouse mailing lists
tamouse.lists at gmail.com
Thu Mar 29 16:45:30 CDT 2012
On Thu, Mar 29, 2012 at 3:41 PM, Didier HALATRE <didier.halatre at free.fr> wrote:
> Le 29/03/2012 20:08, tamouse mailing lists a écrit :
>> On Thu, Mar 29, 2012 at 12:41 PM, Didier HALATRE<didier.halatre at free.fr>
>>> I have installed the last version 2.2.36
>>> And make the indications of the page
>>> Add in config.php in local :
>>> $EnablePostAuthorRequired = 1;
>>> # Force author name to match login name
>>> if (@$AuthId) $Author = $AuthId;
>>> I also add :
>>> $DefaultPasswords['read'] = 'id:*';
>>> $DefaultPasswords['edit'] = 'id:*';
>>> The fisrt time I invoke the wiki, I go in the identification page. I
>>> the name and the password and all is OK but $AuthId is empty.
>>> May be I forget something ?
>> Probably a silly question, but did you put a user/password in
> In the documentation, it's in Site.AuthUser.
> I try with SiteAdmin.AuthUser and there is the same result.
> The login is OK. But the $AuthId is empty :-(
> $AuthId is empty.
Then that documentation is incorrect. Is it on a page on the pmwiki
site? Or the local documentation that came with your installation? Can
you tell me which page it says Site.AuthUser?
Now, why, $AuthId is empty is still a mystery....
By any chance, is your user's password the same as one of the
passwords you set in config.php? For example, if a user's password in
SiteAdmin.AuthUser is the same as, say, the admin password set in
$DefaultPasswords['admin'], the latter takes precedence and you don't
get an $AuthId set in that case.
I share your pain with learning the Authorization system. Someone
wrote http://www.pmwiki.org/wiki/Cookbook/QuickStartForAuthUser and
then everything became a lot clearer to me.
More information about the pmwiki-users