[pmwiki-users] authuser bug ?
Falk Hamann
Falk.Hamann at dbaudio.com
Wed Jun 21 05:46:43 CDT 2006
I have a problem with build-in authentifiction on pmwiki.
On the root-page of wiki http://www.example.com/wiki the
authentification always failed for non-admin accounts. Only admin
(configured in config.php can login there). But if a user is
authentificated on a page behind these, then the page
http://www.example.com/wiki is accessible without problems. Thats also
right for users, who have only read rights and login over a nonexisting
page!
Why user can't authentificate on the root-page ?
I mean the auth-script is also active on this page, because of a wrong
user/pw-combination force a "Name/password not recognized"-message.
Programversions:
apache 2.0.58
mod_php 5.1.4
pmwiki 2.1.11
htpasswdform
pmwiki-install-steps:
Alias /wiki/uploads /var/www/pmwiki/uploads/
Alias /wiki/pub /var/www/pmwiki/pub/
Alias /wiki /var/www/pmwiki/pmwiki.php
<Directory /var/www/pmwiki/>
Options None
AllowOverride None
Order deny,allow
Deny from all
<Files pmwiki.php>
Allow from all
</Files>
</Directory>
<DirectoryMatch /var/www/pmwiki/(uploads|pub)/>
Allow from all
</DirectoryMatch>
/home/www/pmwiki/local/config.php:
$ScriptUrl = 'http://<your_host_name>/wiki';
$PubDirUrl = 'http://<your_host_name>/wiki/pub';
$UploadDir = '/var/www/pmwiki/uploads';
$UploadUrlFmt = 'http://<your_host_name>/wiki/uploads';
$EnablePathInfo = 1 ;
$DefaultPasswords['admin'] = crypt ('xxx');
$DefaultPasswords['read'] = "@read";
$DefaultPasswords['edit'] = "@edit";
$DefaultPasswords['attr'] = "@attr";
$AuthUser ['htpasswd'] = "/var/www/pmwiki/local/.htpasswd";
include_once("/var/www/pmwiki/cookbook/htpasswdform.php");
include_once("/var/www/pmwiki/scripts/authuser.php");
$EnablePathInfo = 1 ;
$DefaultPasswords['read'] = "@read";
$DefaultPasswords['edit'] = "@edit";
$DefaultPasswords['attr'] = "@attr";
$AuthUser ['htpasswd'] = "/var/www/pmwiki/local/.htpasswd";
include_once("/var/www/pmwiki/cookbook/htpasswdform.php");
include_once("/var/www/pmwiki/scripts/authuser.php");
Site/AuthUser:
@read: id: *
@edit: fred
@attr: falk
--
[root at Linux] chown linux.users /world
More information about the pmwiki-users
mailing list