[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#177900: Still present



On Monday 27 October 2003 21:29, Fabio Massimo Di Nitto wrote:
> > Then, I downloaded the rest of the needed AxKit modules
> > directly from CPAN. Since sid has perl 5.8.1, this implied a fresh
> > install of those too. apache-perl version is 1.3.28-4, and I think
> > everything is very fresh.
>
> which modules that are not part of Debian???

Let's see. I tend to pull perl stuff from CPAN rather than use Debian 
packages from most things, so I didn't really check. However, I can see 
that you would at least need the Debian packages
 libapache-session-perl libapache-requestnotes-perl
(I use those modules from CPAN), in addition to the AxKit dependencies. 
I installed quite a lot of other Perl packages below Apache::Session 
that is not in the Debian package, but I don't think they are really 
needed. 

Then, I could not find 
Apache::AxKit::Plugin::Session 
in Debian. That's the main module to do the hard work. So, you should 
pull that from CPAN, as well as its dependencies. 

Furthermore, I think you need
AxKit::XSP::Session
AxKit::XSP::Auth
AxKit::XSP::Global
Neither of which I could find in Debian. It also seems 
Crypt::GeneratePassword
is required. However, it is quite easy to install these from CPAN, just 
use the cpan shell and follow the dependencies, if 
Apache::AxKit::Plugin::Session is successfully installed, then you have 
all that is needed, IIRC. 

Obviously, it had been good if I could come up with a more minimal 
example, but the point is that it seems that none if this stuff is ever 
being called... 


> > The symptoms are exactly as before, PerlAuth*Handlers seems not to
> > be called at all. It falls back to Basic Authentication, and says.
> > couldn't check user.  No user file?: ::logtest.xsp
> > I've tried it on a couple examples.
>
> how can i reproduce it?? i couldn't fine logtest.xsp in the axkit
> examples.

I've attached my axkit.conf and the logtest.xsp file. I think that's the 
final pieces needed to reproduce the problem. If not, please let me 
know!

Just drop logtest.xsp in /var/www, Include axkit.conf, restart and send 
a HTTP request for http://localhost/logtest.xsp. That does it for me. 

Best,

Kjetil
<?xml version="1.0"?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<xsp:page language="Perl"
	xmlns:xsp="http://www.apache.org/1999/XSP/Core";;
	xmlns:auth="http://www.creITve.de/2002/XSP/Auth";;
        xmlns:session="http://www.apache.org/1999/XSP/Session";;
        xmlns:param="http://axkit.org/NS/xsp/param/v1";;
  	xmlns="http://www.w3.org/1999/xhtml";;>
<html>
    <head>
        <title>Auth Login Test</title>
    </head>
    <body>
      <auth:password-matches>
	<auth:encrypted>$1$jsdxRBEt$IzCeNthea4KqzkzNB7sT4/</auth:encrypted> 
	<auth:clear><param:passwd/></auth:clear>
	<auth:true>
	  <auth:login>
	    <auth:access type="user">
	      test
	    </auth:access>
	  </auth:login>
	  <strong>Password is valid</strong>
	</auth:true>
	<auth:false><em>Password is invalid</em></auth:false>
      </auth:password-matches>
    </body>
</html>
</xsp:page>

##
## AxKit Configuration
##

PerlModule AxKit
PerlModule Apache::AxKit::Plugin::Session
AddType text/xml .xsp
AddHandler axkit .xml .xsp
Options -All +Indexes +FollowSymLinks

AxDebugLevel 10

AxAddPlugin Apache::AxKit::Plugin::Session

AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT

AxAddXSPTaglib AxKit::XSP::Auth
AxAddXSPTaglib AxKit::XSP::Session
AxAddXSPTaglib AxKit::XSP::Global
AxAddXSPTaglib AxKit::XSP::Param

PerlSetVar AuthCookieURLDebug 10



# Directory without restrictions, but tracking sessions
<Location />
    AuthType Apache::AxKit::Plugin::Session
    AuthName AxKitSession
    PerlFixupHandler Apache::AxKit::Plugin::Session->recognize_user
</Location>


<Location /test/ >
    AuthType Apache::AxKit::Plugin::Session
    AuthName AxKitSession
    PerlSetVar AxKitSessionLoginScript /login.xsp
    PerlAuthenHandler Apache::AxKit::Plugin::Session->authenticate
    PerlAuthzHandler Apache::AxKit::Plugin::Session->authorize
    Require user test
</Location>

<Location /login.xsp>
    AuthType Apache::AxKit::Plugin::Session
    AuthName AxKitSession
    PerlSetVar AxKitSessionLoginScript /login.xsp
    PerlAuthenHandler Apache::AxKit::Plugin::Session->authenticate
    PerlAuthzHandler Apache::AxKit::Plugin::Session->authorize
    require valid-user
</Location>

<Location /logtest.xsp>
    AuthType Apache::AxKit::Plugin::Session
    AuthName AxKitSession
    PerlSetVar AxKitSessionLoginScript /login.xsp
    PerlAuthenHandler Apache::AxKit::Plugin::Session->authenticate
    PerlAuthzHandler Apache::AxKit::Plugin::Session->authorize
    require valid-user
</Location>

Reply to: