Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 68569 invoked from network); 10 Jun 2005 14:59:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jun 2005 14:59:51 -0000 Received: (qmail 44089 invoked by uid 500); 10 Jun 2005 14:59:30 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 44060 invoked by uid 500); 10 Jun 2005 14:59:30 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 44043 invoked by uid 99); 10 Jun 2005 14:59:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail-7.integraonline.com (HELO integraonline.com) (204.130.255.163) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 10 Jun 2005 07:59:24 -0700 Received: (qmail 9127 invoked from network); 10 Jun 2005 14:59:07 -0000 Received: from unknown (HELO rd2) (?pbs?holly.iat-cti.com@208.46.68.194) by 0 with SMTP; 10 Jun 2005 14:59:07 -0000 From: "Robert Harper" To: "'Tomcat Users List'" Subject: RE: Problem with security? Date: Fri, 10 Jun 2005 08:59:03 -0600 Keywords: Tomcat Users Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <885C7EC41C6782488AD7D3A7C325910601F3D408@blums0009> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think you have missed the point that you cannot get user information unless the user authenticates. You don't want to have a user authenticate but you want to get user information. These are mutually exclusive tasks. If the user does not authenticate, you can only get the external IP address of the requestor. In order to get user information, you must have the user authenticate. You might have your users sent to a page that gathers the user ID and then store it in a cookie. You cannot count on the browser sending user information because the logged in user may and often is not the actual user. I don't know how you can call it secure if you don't require a key to open the door. You may be encrypted in your transfer over SSL but if you don't have the user log in, you are not secure. Robert S. Harper Information Access Technology, Inc. -----Original Message----- From: Gagnon, Joseph M (US SSA) [mailto:joseph.m.gagnon@baesystems.com] Sent: Friday, June 10, 2005 8:43 AM To: Tomcat Users List Subject: RE: Problem with security? I believe I've covered that all in my original message. Read further. -----Original Message----- From: egan0019 [mailto:egan0019@umn.edu] Sent: Friday, June 10, 2005 10:10 AM To: Tomcat Users List Subject: Re: Problem with security? Look into the ServletRequest interface. That interface, which is extended in HttpServletRequest. You can call the getRemoteAddr(), getRemoteHost(), etc. methods. You receive null in your getRemoteUser because the user hasn't been 'authenticated' yet. On 10 Jun 2005, Gagnon, Joseph M (US SSA) wrote: > Hello, > > I'm new to JSP development (and to dynamic web development as a whole) > so please bear with me. I'm investigating using JSP/Java for a project > at my workplace. My system (test server, if you will) is a PC running > Windows XP Pro and I am using Tomcat 5.5.9. > > I have a situation where I want to be able to provide user access to an > application by determining the identity of the requesting user, without > them having to go through a login procedure. Specifically, what I've > been trying to do is call the request.getRemoteUser() method to ID the > requesting user. When I do so, I keep getting null. After reading in > the JSP and Java servlet specifications, I see that this call would > return null if the user is not authenticated. Reading further, I get > the impression that by default, no authentication is needed to access [Robert Harper] [snip] --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org