Thanks for the detailed example. It gives me a good alternative if the DBAuth SessionValidator stuff falls through. I think I might look into the DatabaseAuthenticatorAction class and see how it does things for the PASSWORD() stuff.
-Eric Dalquist ----- Original Message ----- From: "Tim Myers" <[EMAIL PROTECTED]> To: "Eric Dalquist" <[EMAIL PROTECTED]> Sent: Monday, July 01, 2002 11:41 AM Subject: Re: Form Validator > > > On Mon, Jul 01, 2002 at 08:56:18AM -0400, Eric Dalquist wrote: > > Tim, > > Could I get an example of how you would set your sitemap up to use the > > XSP you attached? > > Hi Eric, > > This is probably more than you wanted to see, > > my directory layout is a little like this: > > shortcourses/ > sitemap.xmap > xsp/ > action/ > authenticate.xsp > permissions.xsp > admin/ > login.xsp > menu.xsp > signup.xsp > index.xsp > > in the components/actions section: > > <map:action name="xsp-action" src="org.apache.cocoon.acting.ServerPagesAction"/> > > in the pipeline: > > <map:match pattern="admin/*"> > <map:act type="req-params"> > <map:parameter name="parameters" value="login"/> > <map:act type="session-invalidator"/> > <map:act type="xsp-action" src="xsp/action/authenticate.xsp"> > <map:act type="xsp-action" src="xsp/action/permissions.xsp"> > <map:parameter name="permissions" value="sc_admin"/> > <map:generate src="xsp/admin/{../../../1}" type="serverpages"/> > <map:transform src="../stylesheets/page2html.xsl"/> > <map:transform src="../stylesheets/html/content.xsl"/> > <map:serialize/> > </map:act> > </map:act> > <map:generate src="xsp/admin/login.xsp" type="serverpages"/> > <map:transform src="../stylesheets/page2html.xsl"/> > <map:transform src="../stylesheets/html/content.xsl"/> > <map:serialize/> > </map:act> > > <map:act type="req-params"> > <map:parameter name="parameters" value="logout"/> > <map:act type="session-invalidator"/> > </map:act> > > <map:act type="xsp-action" src="xsp/action/permissions.xsp"> > <map:parameter name="permissions" value="sc_admin"/> > <map:act type="xsp-action" src="xsp/action/dateformat.xsp"/> > > <map:act type="req-params"> > <map:parameter name="parameters" value="mod-db-add table-set"/> > <map:act type="mod-db-add"> > <map:parameter name="table-set" value="{table-set}"/> > </map:act> > </map:act> > > <map:act type="req-params"> > <map:parameter name="parameters" value="mod-db-upd table-set"/> > <map:act type="mod-db-upd"> > <map:parameter name="table-set" value="{table-set}"/> > </map:act> > </map:act> > > <map:act type="req-params"> > <map:parameter name="parameters" value="mod-db-del table-set"/> > <map:act type="mod-db-del"> > <map:parameter name="table-set" value="{table-set}"/> > </map:act> > </map:act> > > <map:generate src="xsp/admin/{../1}" type="serverpages"/> > <map:transform src="../stylesheets/page2html.xsl"/> > <map:transform src="../stylesheets/html/content.xsl"/> > <map:serialize type="html"/> > </map:act> > > <map:act type="session-invalidator"/> > <map:generate src="xsp/admin/login.xsp" type="serverpages"/> > <map:transform src="../stylesheets/page2html.xsl"/> > <map:transform src="../stylesheets/html/content.xsl"/> > <map:serialize/> > > </map:match> > > My match is obviously far more complicated than necesarry, but i wanted to show > you stuff in context quickly. > > If you find this helpful, please see that it gets back to the user list. > > > Tim > > > > -Eric Dalquist > > > > ----- Original Message ----- > > From: "Tim Myers" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, June 30, 2002 11:07 PM > > Subject: Re: Form Validator > > > > > > > > > My other question with the DBAuth stuff is can cocoon run the > > submitted > > > > > password through MySQLs PASSWORD() function? I would really like to be > > > > able > > > > > to keep the password column in the table encrypted and still be able > > to > > > > use > > > > > the DBAuth stuff. > > > > > > sometime slightly less than a year ago i sent a patch to the dev mailing > > list > > > for exactly that purpose. Since then, i don't use it anymore. I use an > > > xsp action with esql that i'll go ahead and attach. > > > > > > If you really want the patch for dbauth, let me know-- but i consider it > > hackish. > > > > > > Tim > > > > > > > > > > > > -------------------------------------------------------------------------- -- > > ---- > > > > > > > --------------------------------------------------------------------- > > > Please check that your question has not already been answered in the > > > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > > > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>