<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
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<br>
<br>
Wiki site: <a class="moz-txt-link-abbreviated" href="http://www.gazzaro.it/b/PmWiki">www.gazzaro.it/b/PmWiki</a><br>
Username: sfp2 (or NOTHING AT THE MOMENT!)<br>
Password: student<br>
<br>
Server: <span id="descr">Windows Server 2003</span> with PHP 5<b><br>
</b><br>
config.php:<br>
<br>
&lt;?php if (!defined('PmWiki')) exit();<br>
$WikiTitle = 'PmWiki';<br>
<br>
$ScriptUrl = '<a class="moz-txt-link-freetext" href="http://www.gazzaro.it/b/Pmwiki/pmwiki.php">http://www.gazzaro.it/b/Pmwiki/pmwiki.php</a>';<br>
$PubDirUrl = '<a class="moz-txt-link-freetext" href="http://www.gazzaro.it/b/Pmwiki/pub">http://www.gazzaro.it/b/Pmwiki/pub</a>';<br>
<br>
$DefaultPasswords['admin'] = crypt('password1');<br>
$DefaultPasswords['attr'] = crypt('password1');<br>
$DefaultPasswords['read'] = crypt('password2');<br>
$DefaultPasswords['edit'] = crypt('password2');<br>
<br>
include_once("scripts/xlpage-utf-8.php");<br>
include_once("$FarmD/cookbook/pmform.php");<br>
include_once("$FarmD/scripts/authuser.php");<br>
include_once("$FarmD/cookbook/analyze.php");<br>
$AnalyzeKey = 'aailsa';<br>
<br>
$DiffKeepDays=690;<br>
<br>
$EnableRelativePageVars = 1;<br>
<br>
$UnapprovedLinkCountMax = 5;<br>
include_once("scripts/urlapprove.php");<br>
<br>
$GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"');<br>
$GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"');<br>
$GUIButtons['indent'] = array(500, '\\n-&gt;', '\\n', '$[Indented
text]',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/indent.gif"$[Indented
text]"');<br>
$GUIButtons['outdent'] = array(510, '\\n-&lt;', '\\n', '$[Hanging
indent]',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging
indent]"');<br>
$GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered)
list]"');<br>
$GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet)
list]"');<br>
$GUIButtons['hr'] = array(540, '\\n----\\n', '', '',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');<br>
&nbsp;$GUIButtons['table'] = array(600,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr
||\\n||&nbsp;&nbsp;&nbsp;&nbsp; ||&nbsp;&nbsp;&nbsp;&nbsp; ||&nbsp;&nbsp;&nbsp;&nbsp; ||\\n||&nbsp;&nbsp;&nbsp;&nbsp; ||&nbsp;&nbsp;&nbsp;&nbsp; ||&nbsp;&nbsp;&nbsp;&nbsp; ||\\n', '', '', <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/table.gif"$[Table]"');<br>
<br>
$MaxIncludes=500;<br>
include_once("$FarmD/cookbook/blogit/blogit.php");<br>
<br>
<br>
</body>
</html>