cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Flynn <>
Subject Authentication puzzle
Date Tue, 09 Jan 2007 16:57:59 GMT
I am trying to get simple authentication to work for a single document,
using local files for the authentication step, but I can't get it to 
return an authentication success.

The following works fine when run using Saxon from the commandline,
with userid=peter and password=GHYTFVN.map4h (ie it returns the expected 
authentication XML:
and when run with other data it returns the failure:
as described in

But run via Cocoon it only fails. Does Cocoon automatically perform the 
required crypt(3) on the password string from the form before passing 
the parameter_password into the handler authentication URI?


   <user id="peter" authority="abcd">
     <name>Peter Flynn</name>

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=""

   <xsl:output method="xml"/>
   <xsl:param name="userid"/>
   <xsl:param name="password"/>

   <xsl:template match="/">
         <xsl:when test="users/user/@id=$userid and
             <xsl:value-of select="users/user[@id=$userid]/@authority"/>
             <xsl:value-of select="users/user[@id=$userid]/branchuri">
             <xsl:value-of select="users/user[@id=$userid]/@id"/>
             <xsl:value-of select="users/user[@id=$userid]/@id"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message