PasswordCipher attribute is not honoured

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

PasswordCipher attribute is not honoured

Dignesh
Hi,

I am using TomEE 7.0.2 with HANA database. Below is my XADataSource resource configuration.

        <Resource id="resource/dignesh" type="DataSource">
                JdbcDriver com.sap.db.jdbcext.XADataSourceSAP
                Url jdbc:sap://10.96.2.1:30044/?databaseName=DB1
                User dignesh
                Password dignesh
        </Resource>

The above configuration works fine with no issues. I dont want plain password text to be given in the resource configuration. I modified the above configuration to add passwordcipher

        <Resource id="resource/dignesh" type="DataSource">
                JdbcDriver com.sap.db.jdbcext.XADataSourceSAP
                Url jdbc:sap://10.96.2.1:30044/?databaseName=DB1
                User dignesh
                Password eGBzFTP2XlJzBrrvwk7/OQ==
                PasswordCipher digneshcipher
        </Resource>

I see the passwordcipher is not used and  I am not able to connect to database.

Is it something I am doing wrong in configuration ? Can anyone please help me on this.

Thank you,

Dignesh.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: PasswordCipher attribute is not honoured

Romain Manni-Bucau
HI Dignesh,

PasswordCipher is honnored for datasources, pooled datasources. Here you
use a XADataSource so maybe remove PasswordCipher and replace the password
value by cipher:digneshcipher: eGBzFTP2XlJzBrrvwk7/OQ== which would enable
it for the datsource and the pool


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-05-26 7:58 GMT+02:00 Dignesh <[hidden email]>:

> Hi,
>
> I am using TomEE 7.0.2 with HANA database. Below is my XADataSource
> resource
> configuration.
>
>         <Resource id="resource/dignesh" type="DataSource">
>                 JdbcDriver com.sap.db.jdbcext.XADataSourceSAP
>                 Url jdbc:sap://10.96.2.1:30044/?databaseName=DB1
>                 User dignesh
>                 Password dignesh
>         </Resource>
>
> The above configuration works fine with no issues. I dont want plain
> password text to be given in the resource configuration. I modified the
> above configuration to add passwordcipher
>
>         <Resource id="resource/dignesh" type="DataSource">
>                 JdbcDriver com.sap.db.jdbcext.XADataSourceSAP
>                 Url jdbc:sap://10.96.2.1:30044/?databaseName=DB1
>                 User dignesh
>                 Password eGBzFTP2XlJzBrrvwk7/OQ==
>                 PasswordCipher digneshcipher
>         </Resource>
>
> I see the passwordcipher is not used and  I am not able to connect to
> database.
>
> Is it something I am doing wrong in configuration ? Can anyone please help
> me on this.
>
> Thank you,
>
> Dignesh.
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/PasswordCipher-attribute-is-not-honoured-tp4681761.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>
Loading...