[pmwiki-users] Pre-fill author required field with login name on a one-password-for-all wiki?

Benoit Dutilleul benoit.dutilleul at googlemail.com
Wed Feb 13 11:25:16 CST 2008


Dear Patrick,

I am using pmwiki-2.2.0-beta63. Please find below a copy of what could be
relevant parts of my config.php

$DefaultPasswords['admin'] = crypt('something');
$DefaultPasswords['read'] = crypt('something');
$DefaultPasswords['edit'] = crypt('something');
$DefaultPasswords['rss'] = crypt('something');

##  If you want uploads enabled on your system, set $EnableUpload=1.
##  You'll also need to set a default upload password, or else set
##  passwords on individual groups and pages.  For more information
##  see PmWiki.UploadsAdmin.
$EnableUpload = 1;
$UploadMaxSize = 10000000;
$DefaultPasswords['upload'] = crypt('something');
$EnablePostAuthorRequired = 1 ;

##  The feeds.php script enables ?action=rss, ?action=atom, ?action=rdf,
##  and ?action=dc, for generation of syndication feeds in various formats.
if ($action == 'rss') include_once("$FarmD/scripts/feeds.php");   # RSS 2.0
if ($action == 'rss') $EnablePageListProtect = 0;

## Define usernames and passwords.
$AuthUser['admin'] = crypt('somethingelse');

## -- ZAP v2007.4 --------------------------------------
include_once("$FarmD/scripts/authuser.php");
include_once("$FarmD/cookbook/zap.php");
include_once("$FarmD/cookbook/zaptoolbox.php");
$ZAPmailmode = true;
$ZAPconfig['mail'] = true;
$FmtPV['$Today'] = 'strftime("d, %Y", $page["time"])';
$FmtPV['$VisitorIP'] = '$_SERVER["REMOTE_ADDR"]';

## Set passwords
#$DefaultPasswords['read'] = 'id:*';
#$DefaultPasswords['edit'] = 'id:*';
#$DefaultPasswords['admin'] = 'id:admin';
#$DefaultPasswords['zap'] = 'id:*';

## protect sources
$HandleAuth['source'] ='admin';

I hope that is enough to help me locate what could be the problem.
Kind regards,

Benoit


2008/2/7, Patrick R. Michaud <pmichaud at pobox.com>:
>
> On Wed, Feb 06, 2008 at 09:51:36AM +0100, Benoit Dutilleul wrote:
> >    Hi there,
> >
> >    One of my wikis is currently setup with a one-password-for-all (read
> and
> >    edit) and $EnablePostAuthorRequired=1. When users login on the wiki,
> they
> >    have to provide a login name (anything they want) and the wiki
> password.
> >    If they attempt to edit a page, there is a red warning message "An
> author
> >    name is required" displayed only the first time they save an edit. I
> was
> >    wondering whether it is possible to have pmwiki inherit that author
> name
> >    from the login name because this has caused a bit of confusion with
> my
> >    users.
>
> Normally this happens by default in PmWiki, so something
> else must be causing it not to work.
>
> What is your system using for logins?
>
> Pm
>
>


-- 
Wanderer, your footsteps are the road, and nothing more; wanderer, there is
no road, the road is made by walking. By walking one makes the road, and
upon glancing behind one sees the path that never will be trod again.
Wanderer, there is no road-- Only wakes upon the sea. -- Antonio Machado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20080213/d7119cfb/attachment.html 


More information about the pmwiki-users mailing list