Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 50484 invoked from network); 21 Apr 2009 14:51:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Apr 2009 14:51:13 -0000 Received: (qmail 82322 invoked by uid 500); 21 Apr 2009 14:51:11 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 82298 invoked by uid 500); 21 Apr 2009 14:51:11 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 82290 invoked by uid 99); 21 Apr 2009 14:51:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 14:51:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brandon.goodin@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-fx0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 14:51:03 +0000 Received: by fxm23 with SMTP id 23so2739785fxm.0 for ; Tue, 21 Apr 2009 07:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=R5MVQ5Pwtt/o+C81AkRYFG6Fz1KxxzLOg035UHrKOFk=; b=S0zQ8oYjP2LoCIw/xI2CiMB3dCe1ycpYjNP0pHPxY/IpJ9jsSR+IK7A8lsKQQ3hiWv lvhTb4jrIKDxNKDWLlkiWOqONbj/49BO28esfvc2/PExuVGVEexpWdjFpyZMfE5MFkCo eZk3tfczDiZj0CIB2J2Yp+mMzoNxcqqAR741w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=i8SK3A++9vw8OfeEcXeDEH1NLVnZthZh6NP5Ri8kdxS8YdIfOOzpSwfAQPf2NlkkHN NeJKxbm+kXHm9PitGu6gYJAtlwTr803/eFnDmfX/h2puxQtBV3YxuJdTi5CcDVU65jrI sxoGNKpWfPV0IM0yADuf/9XIAYVw9jHP9VeN0= MIME-Version: 1.0 Received: by 10.223.103.133 with SMTP id k5mr2112314fao.23.1240325443549; Tue, 21 Apr 2009 07:50:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Apr 2009 09:50:43 -0500 Message-ID: <2fe5ef5b0904210750w64685c38p99d5a57413ac961f@mail.gmail.com> Subject: Re: Sql Map file From: Brandon Goodin To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=001636c5a75877fa05046811c5e5 X-Virus-Checked: Checked by ClamAV on apache.org --001636c5a75877fa05046811c5e5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You could use JNDI, or can extends the simple datasource and add your own hashing. I'm not sure why you are that concerned about the password being in there. If someone gets access to your WEB-INF folder and you don't want them in there... you have bigger issues my friend. :) Brandon On Tue, Apr 21, 2009 at 9:42 AM, Jhaver, Rishi wrote: > Hi > > I'm new to Ibatis and was wondering if anyone's faced this issue before. > Couldn't find a solution on the website FAQs. > > I have the following in my sqlmapconfig file. > > > > value="oracle.jdbc.driver.OracleDriver"/> > > > > > > I dont want the user name and password to be exposed as clear text in a > config file. > Is there a way to hide this information, maybe by passing the information > programmatically or using another way. > My main concern is to not keep the user credentials in clear text in a > config file. > > > Thanks > Rishi... > > --001636c5a75877fa05046811c5e5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You could use JNDI, or can extends the simple datasource and add your own h= ashing. I'm not sure why you are that concerned about the password bein= g in there. If someone gets access to your WEB-INF folder and you don't= want them in there... you have bigger issues my friend. :)

Brandon


On Tue, Apr 21, 2009 at 9:42 AM, Jhaver,= Rishi <RJhaver@= wheels.com> wrote:
Hi
=A0
I'm new to Ibatis=20 and was wondering if anyone's faced this issue before.
Couldn't find a=20 solution on the website FAQs.
=A0
I have the following=20 in my sqlmapconfig file.
=A0
=A0 <transactionManager type=3D&quo= t;JDBC"=20 commitRequired=3D"false">
=A0=A0=A0 <dataSource=20 type=3D"SIMPLE">
=A0=A0=A0=A0=A0 <property=20 name=3D"JDBC.Driver"=20 value=3D"oracle.jdbc.driver.OracleDriver"/>
=A0=A0=A0=A0=A0= =20 <property name=3D"JDBC.ConnectionURL" value=3D"jdbc:oracl= e:thin:@XXX1:9999:XXX1"/>=A0=A0=A0=A0=A0=20 <property name=3D"JDBC.Username" value=3D"XXX"/>
=A0=A0=A0=A0=A0=20 <property name=3D"JDBC.Password" value=3D"XXX"/>
=A0=A0=A0=20 </dataSource>
=A0 </transactionManager>
I dont=20 want the user name and password to be exposed as clear text in a config=20 file.
Is there a way to=20 hide this information, maybe by passing the information=20
programmatically or using another=20 way.
My main concern is=20 to not keep the user credentials in clear text in a config=20 file.
=A0
=A0
Thanks
Rishi...
=A0

--001636c5a75877fa05046811c5e5--