Thanks Peter ! Looks like you've done a good job. I have not looked at it in details yet (I need some time to do that ... :)) but I will try to do it asap and will give you my feedback.
Just a remark: It is much easier if you provide a diff against the existing classes (in CVS - and not against an older version as the classes may have changed). Do you think you could do that ? Thanks again. We appreciate your help. -Vincent ----- Original Message ----- From: "Peter Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 4:35 PM Subject: webserver authentication > > Hi Vincent, > > Here is the source for form-based authentication. It is based on the > cactus 1.2 release. > > (1) > I added to and changed the following .java source files that currently > exist in cactus 1.2: > AbstractTestController > WebRequest > AbstractTestCaller > ServletHttpClient > AbstractHttpClient > AbstractTestCase > ServletTestCase > ServiceEnumeration > All the addition & modification that I made are enclosed within: > /* ---- BEGIN psw ---- */ > > /* ---- END psw ---- */ > > (2) > I added a new package, org.apache.cactus.client.authentication, with > the following .java files: > Auth > ConnectionInfo > Identity > LogonURLException > > (3) > I added a new class to test the form-based authentication in the > following .java file: > FormBasedAuthenticationTest > For the test to run successfully, the cactus redirector servlet needs > to protected in the web.xml file. > Also, add a user with (userid, password) == (mallen, mallen) to the > security realm of the webserver, and > make sure that (mallen, mallen_wrong) is NOT valid, > (does_not_exist_in_db, abcxyz) is also NOT valid. > > (4) > In order for form based authntication to work, 3 entries are required > in the cactus.properties file: > example: > servlet22.loginFormActionURL = > http://localhost:7001/struts_ant_cactus_3/j_security_check > servlet22.loginFormUsernameFieldname = j_username > servlet22.loginFormPasswordFieldname = j_password > > The code was tested under tomcat 3.2.3 and also weblogic sp1. > > Let me know what you think. Thanks. > > Peter > > (See attached file: forte4j_modified_cactus_src.jar)(See attached > file: cactus.properties) ---------------------------------------------------------------------------- ---- > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
