Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 64358 invoked from network); 2 Oct 2006 13:52:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 13:52:35 -0000 Received: (qmail 89959 invoked by uid 500); 2 Oct 2006 13:52:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 89938 invoked by uid 500); 2 Oct 2006 13:52:21 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 89924 invoked by uid 99); 2 Oct 2006 13:52:21 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 06:52:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [212.112.178.113] ([212.112.178.113:36082] helo=figo.voiceprovider.se) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 5C/BA-16499-B7911254 for ; Mon, 02 Oct 2006 06:52:00 -0700 Received: (qmail 1221 invoked by uid 10030); 2 Oct 2006 13:51:11 -0000 Received: from 212.112.178.134 by figo (envelope-from , uid 10004) with qmail-scanner-1.24 (clamdscan: 0.80/590. uvscan: v4.2.40/v4407. spamassassin: 2.55. Clear:RC:1(212.112.178.134):. Processed in 2.691572 secs); 02 Oct 2006 13:51:11 -0000 Received: from unknown (HELO ?212.112.178.134?) (212.112.178.134) by 0 with SMTP; 2 Oct 2006 13:51:07 -0000 Message-ID: <4521194B.1020209@voiceprovider.com> Date: Mon, 02 Oct 2006 15:51:07 +0200 From: Magnus Bergman User-Agent: Thunderbird 1.5 (X11/20060113) MIME-Version: 1.0 To: users@tomcat.apache.org Subject: extending JDBCRealm Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I'm using the JDBCRealm to authorize users to access my applications. I would like to "log" users when they login or tries to login to any application on my tomcat, to do this I have extended the JDBCRealm and overridden the authenticate-methods, by this I can log when and which user login to any application on my tomcat, but I also want to log which host/ip-number they login from? I know that information is in the HttpServletRequest, but how do I get hold of that information in my extended JDBCRealm? Or maybe there is a better way to solve this? /magnus --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org