Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 894A818FE4 for ; Thu, 28 May 2015 09:12:15 +0000 (UTC) Received: (qmail 84151 invoked by uid 500); 28 May 2015 09:12:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84087 invoked by uid 500); 28 May 2015 09:12:12 -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 84076 invoked by uid 99); 28 May 2015 09:12:11 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2015 09:12:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 910CDC0B79 for ; Thu, 28 May 2015 09:12:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3vMIy2bVPWkk for ; Thu, 28 May 2015 09:12:10 +0000 (UTC) Received: from tor.combios.es (tor3.combios.es [185.5.236.93]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id C800C20FEE for ; Thu, 28 May 2015 09:12:09 +0000 (UTC) Received: by tor.combios.es (Postfix, from userid 500) id B34CE3C2608; Thu, 28 May 2015 11:12:04 +0200 (CEST) Received: from [192.168.1.2] (unknown [47.59.178.139]) (Authenticated sender: andre.warnier@ice-sa.com) by tor.combios.es (Postfix) with ESMTPA id 981583C0630 for ; Thu, 28 May 2015 11:11:58 +0200 (CEST) Message-ID: <5566DBC3.6070603@ice-sa.com> Date: Thu, 28 May 2015 11:11:31 +0200 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: can we pass OS username while connection Database from Tomcat References: <5566C746.8030905@apache.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Vijay, do not "top post". As you can see below, it makes it difficult to follow the conversation. Vijay Kumar wrote: > Hi Mark, > > Thanks for your update. > > I should have specify my requirement little more clear to you to understand > what you are saying. > > I have Oracle Database where my objects are installed and I have also a > Linux instance where i installed Tomcat. > I am currently creating connection to the Oracle database from Tomcat using > 'apps' user as this schema is having all permissions. > > One of my client want to monitor the connections that are created from my > application. For this i want to pass my Linux user information (userid) > while creating the connection from my application or in context.xml file. > > Please suggest is it possible or not? > > Regards, > Vijay G > > On Thu, May 28, 2015 at 1:14 PM, Mark Thomas wrote: > >> On 28/05/2015 08:26, Vijay Kumar wrote: >>> Hi, >>> >>> Is it possible to pass OS username when making connection to any Database >>> from Tomcat context.xml? >> In theory this should be possible if you are using SPNEGO authentication. >> >> Testing this to figure out what is required to make it work is on the >> TODO list. It is likely that some combination of configuration, Tomcat >> code changes and application changes will be required. >> >> Mark >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org