[pmwiki-users] Force username AND password login (NOT just password)

Gabriele Azzaro gazzaro at gazzaro.it
Tue Mar 30 06:21:03 CDT 2010

Hi all,

I'm new to PmWiki, and cannot get my first attempt to force users to 
login with BOTH username AND password. It's for my students, and the 
username is sfp2, the password is student. It works fine. The problem is 
that access is granted even if one inputs just the password on its own, 
with no username, so that anonymous login is effectively allowed... Is 
there a way to FORCE username as well as password login? Also, will it 
work even if a student accessed a particular page directly skipping over 
the main home page of the site? Thanks for any hints, cannot find 
anything specific in the documentation, perhaps I'm wrong... Gabriele

Wiki site: www.gazzaro.it/b/PmWiki
Username: sfp2 (or NOTHING AT THE MOMENT!)
Password: student

Server: Windows Server 2003 with PHP 5*

<?php if (!defined('PmWiki')) exit();
$WikiTitle = 'PmWiki';

$ScriptUrl = 'http://www.gazzaro.it/b/Pmwiki/pmwiki.php';
$PubDirUrl = 'http://www.gazzaro.it/b/Pmwiki/pub';

$DefaultPasswords['admin'] = crypt('password1');
$DefaultPasswords['attr'] = crypt('password1');
$DefaultPasswords['read'] = crypt('password2');
$DefaultPasswords['edit'] = crypt('password2');

$AnalyzeKey = 'aailsa';


$EnableRelativePageVars = 1;

$UnapprovedLinkCountMax = 5;

$GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',
$GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',
$GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]',
                      '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
$GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]',
                      '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
$GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',
                      '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) 
$GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',
                      '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) 
$GUIButtons['hr'] = array(540, '\\n----\\n', '', '',
                      '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
  $GUIButtons['table'] = array(600,
                        '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr 
||\\n||     ||     ||     ||\\n||     ||     ||     ||\\n', '', '',


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100330/19cf9902/attachment.html>

More information about the pmwiki-users mailing list