cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li, Wangqian" <>
Subject authentication
Date Mon, 01 Mar 2004 14:17:27 GMT
Hi, Kieran,

I have a question on authentication. Could you help me on this?

I read somewhere that the cocoon action provides authentication functions. 
			<map:action name="authenticator" src="org.apache.cocoon.acting.DatabaseAuthenticatorAction"/>
For this to happen, a pipeline needs to be specified.
I did this:
		<map:match pattern="login">
				<map:act type="authenticator">
					<map:parameter name="descriptor" value="context://msdreport/defs/auth-def.xml"/>
					<map:redirect-to uri="xsp/success.xsp"/>
				<map:redirect-to uri="xsp/fails.xsp"/>
In the defs folder, I have the xml file:
		<table name="msdrpt_webuser">
			<select dbco="rptuser" request-param="username" to-session="user"/>
			<select dbco="pwd" request-param="password"/>

When I run it, it always redirect to fail.xsp page. What could go wrong. 
I've tested the db connection and the underlying table is there.

Thanks for your help.


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

View raw message