<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
In the cookbook/htpasswdform.php file...<br>
<br>
-----------------------------<br>
/*<br>
&nbsp;* HtpasswdForm - An Htpasswd file editor for PmWiki<br>
&nbsp;* Copyright 2005 by D.Faure (<a class="moz-txt-link-abbreviated" href="mailto:dfaure@cpan.org">dfaure@cpan.org</a>)<br>
&nbsp;*<br>
&nbsp;* You can redistribute it and/or modify it under the terms of the GNU
General<br>
&nbsp;* Public License as published by the Free Software Foundation; either
version<br>
&nbsp;* 2 of the License, or (at your option) any later version.<br>
&nbsp;*<br>
&nbsp;* See <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/HtpasswdForm">http://www.pmwiki.org/wiki/Cookbook/HtpasswdForm</a> for info.<br>
&nbsp;*/<br>
include_once('scripts/authuser.php');<br>
# If the admin hasn't configured any password entries, just return.<br>
if (!$AuthUser) return;<br>
-------------------------------<br>
<br>
So I'm not need to include authuser.php in local/config.php if I
include cookbook/htpasswdform.php...<br>
<br>
Here is now my config.php (without comments). There is no longer
Main.Logins.php file:<br>
<br>
-------------------------------<br>
&lt;?php if (!defined('PmWiki')) exit();<br>
$WikiTitle = 'Municipalit&eacute; de Saint-Boniface';<br>
$ScriptUrl = '<a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net">http://stbo.mediapublinet.net</a>';<br>
$PubDirUrl = '<a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net/pub">http://stbo.mediapublinet.net/pub</a>';<br>
$EnablePathInfo = 1;<br>
$EnableGUIButtons = 1;<br>
$EnableUpload = 1;<br>
$EnableDiag = 1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # enable remote diagnostics<br>
$EnableIMSCaching = 1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # allow browser caching<br>
$SpaceWikiWords = 1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # turn on WikiWord spacing<br>
XLPage('fr','PmWikiFr.XLPage');<br>
$DefaultGroup = "Main";<br>
$DefaultName = "Accueil";<br>
function AsSpacedAlt($text) {<br>
&nbsp; $text = preg_replace("/([[:lower:]\\d])([[:upper:]])/",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$1 $2', $text);<br>
&nbsp; $text =<br>
&nbsp;&nbsp;&nbsp; preg_replace('/(?&lt;![-\\d])(\\d+( |$))/',' $1',$text);<br>
&nbsp; $text =<br>
&nbsp;&nbsp;&nbsp; preg_replace("/([[:upper:]])([[:upper:]][[:lower:]\\d])/",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$1 $2', $text);<br>
&nbsp; return $text{0}.strtolower(substr($text,1));<br>
}<br>
$AsSpacedFunction = 'AsSpacedAlt';<br>
$HtpasswdFile = "local/.htpasswd";<br>
include_once("cookbook/htpasswdform.php");<br>
?&gt;<br>
-----------------------<br>
I try <a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net/Site/AuthUser">http://stbo.mediapublinet.net/Site/AuthUser</a> . It's shows me that
the AuthUser extension is enabled.<br>
<br>
<br>
Patrick R. Michaud a &eacute;crit&nbsp;:
<blockquote cite="mid20060519143255.GI15870@host.pmichaud.com"
 type="cite">
  <pre wrap="">On Fri, May 19, 2006 at 12:56:52AM -0400, <a class="moz-txt-link-abbreviated" href="mailto:webmaster@mediapublinet.net">webmaster@mediapublinet.net</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I now removed any reference to UserAuth.
The page <a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net/Main/Logins">http://stbo.mediapublinet.net/Main/Logins</a> still doesn't work.

After a trace into cookbook/htpasswdform.php, I noticed that the script doesn't
pass the second line:

    # If the admin hasn't configured any password entries, just return.
    if (!$AuthUser) return;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Are you including scripts/authuser.php?  And have you configured it
somehow, either using the Site.AuthUser or by setting values of $AuthUser
before it gets loaded?

Pm


  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Beno&icirc;t Pruneau
Charg&eacute; de projet
M&eacute;diaPublinet International
<a class="moz-txt-link-abbreviated" href="mailto:webmestre@mediapublinet.net">webmestre@mediapublinet.net</a>
<a class="moz-txt-link-freetext" href="http://mediapublinet.net/">http://mediapublinet.net/</a>
</pre>
</body>
</html>