-
1. Re: how to encrypt the database connection info in *-ds.xml
jaikiran Nov 2, 2006 3:27 AM (in response to hammer) -
2. Re: how to encrypt the database connection info in *-ds.xml
drosenstark Feb 26, 2007 10:10 AM (in response to hammer)I followed the instructions there and it is not working. I assume that i am missing some definition somehwere like in my jboss-web.xml. When my servlet starts up and tries to access the datasource, i am receiving:
Invalid authentication attempt, principal=null
The entry in the login-config.xml file is as below and i see the entry in the jndi view. I also added in the entry to my jboss-web.xml:
<security-domain>java:/jaas/EncryptTitanAppPassword</security-domain>
Any ideas would be appreciated.
<application-policy name="EncryptTitanAppPassword">
<login-module code="org.jboss.resource.security.SecureIdentityLoginModule"
flag = "required">
<module-option name="username">db_app</module-option>
<module-option name="password">-608c5c4947ba8657d2897448e1d8761d</module-option>
<module-option name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=db_tomcatdv</module-option>
</login-module>
</application-policy>