Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 1662 invoked by uid 99); 18 Nov 2004 11:20:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [129.60.39.102] (HELO tama5.ecl.ntt.co.jp) (129.60.39.102) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 18 Nov 2004 03:20:30 -0800 Received: from vcs3.rdh.ecl.ntt.co.jp (vcs3.rdh.ecl.ntt.co.jp [129.60.39.110]) by tama5.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id iAIBKJmL000954 for ; Thu, 18 Nov 2004 20:20:19 +0900 (JST) Received: from vcs3.rdh.ecl.ntt.co.jp (localhost [127.0.0.1]) by vcs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id iAIBKJt2003969 for ; Thu, 18 Nov 2004 20:20:19 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (mfs3.rdh.ecl.ntt.co.jp [129.60.39.112]) by vcs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id iAIBKIkO003966 for ; Thu, 18 Nov 2004 20:20:18 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [127.0.0.1]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id iAIBKI5x014108 for ; Thu, 18 Nov 2004 20:20:18 +0900 (JST) Received: from nttmail3.ecl.ntt.co.jp ([129.60.39.100]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id iAIBKHrN014100 for ; Thu, 18 Nov 2004 20:20:17 +0900 (JST) Received: from dmailsv1.y.ecl.ntt.co.jp (dmailsv1.y.ecl.ntt.co.jp [129.60.53.14]) by nttmail3.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id iAIBKHrt000273 for ; Thu, 18 Nov 2004 20:20:17 +0900 (JST) Received: from mailsv01.y.ecl.ntt.co.jp by dmailsv1.y.ecl.ntt.co.jp (8.12.11/dmailsv-1.1c) with ESMTP id iAIBKGJR010187 for ; Thu, 18 Nov 2004 20:20:16 +0900 (JST) Received: from localhost by mailsv01.y.ecl.ntt.co.jp (8.12.11/Lab-1.3) with ESMTP id iAIBKGn1006236 for ; Thu, 18 Nov 2004 20:20:16 +0900 (JST) Date: Thu, 18 Nov 2004 20:22:09 +0900 (JST) Message-Id: <20041118.202209.48533891.suguri.kazuhito@lab.ntt.co.jp> To: cactus-user@jakarta.apache.org Subject: Re: FormAuthentication and Error Code 500 From: Kazuhito SUGURI In-Reply-To: <31D0DEEB9650D81182BA00105ADE8CB70DD6FB@EXCHANGE> References: <31D0DEEB9650D81182BA00105ADE8CB70DD6FB@EXCHANGE> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Hi Setanta, In article <31D0DEEB9650D81182BA00105ADE8CB70DD6FB@EXCHANGE>, Thu, 18 Nov 2004 11:03:53 -0000, Setanta Mathews wrote: smathews> public void beginA(WebRequest theRequest) smathews> { smathews> theRequest.setRedirectorName("ServletRedirectorSecure"); smathews> FormAuthentication fa = new FormAuthentication("0", smathews> "qUqP5cyxm6YcTAhz05Hph5gvu9M="); smathews> theRequest.setAuthentication(fa); smathews> } Is the password "qUqP5cyxm6YcTAhz05Hph5gvu9M=" base-64 encoded? Your system may stores passwords with encrypted and base-64 encoded form, however, you should give a password with plain text form to the system. So, you should pass a plain password to the constructor, I guess. smathews> The HTTP traffic is smathews> smathews> 1 - Cactus Request smathews> smathews> GET /ServletRedirectorSecure? HTTP/1.1 smathews> Content-type: application/x-www-form-urlencoded smathews> User-Agent: Jakarta Commons-HttpClient/2.0rc1 smathews> Host: localhost:8889 smathews> smathews> 2 - OC4J Response smathews> smathews> HTTP/1.1 200 OK smathews> Date: Thu, 18 Nov 2004 10:43:46 GMT smathews> Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE smathews> Content-Location: smathews> http://localhost:8889/jsp/html/portlet/my_account/j_login.jsp smathews> Set-Cookie: JSESSIONID=b3eabbf09d734b998c79d15602741b8c; Path=/ smathews> Connection: Close smathews> Content-Type: text/html;charset=ISO-8859-1 smathews> Cache-Control: no-cache smathews> Transfer-Encoding: chunked smathews> smathews> 3 - Cactus Request smathews> smathews> POST /j_security_check? HTTP/1.1 smathews> Content-type: application/x-www-form-urlencoded smathews> User-Agent: Jakarta Commons-HttpClient/2.0rc1 smathews> Host: localhost:8889 smathews> Cookie: $Version=0; JSESSIONID=b3eabbf09d734b998c79d15602741b8c smathews> Content-Length: 54 smathews> smathews> j_username=0&j_password=qUqP5cyxm6YcTAhz05Hph5gvu9M%3D smathews> smathews> 4 - OC4J Response smathews> smathews> HTTP/1.1 100 Continue smathews> Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE smathews> Date: Thu, 18 Nov 2004 10:43:47 GMT The last response means that the authentication is not completed. I'm not sure why your container responses with status 100, however, this may make your case, i.e. "unable to find line starting with HTTP". Regards, ---- Kazuhito SUGURI mailto:suguri.kazuhito@lab.ntt.co.jp