[jboss-user] [JCA/JBoss] - Re: encrypted dsn connection in JBOSS
coolheartdil
do-not-reply at jboss.com
Mon Dec 18 06:04:55 EST 2006
Hi
I have created the *ds.xml file as
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>betcdb2ds</jndi-name>
<connection-url>jdbc:db2://db2connt.safeway.com:50000/DBU1</connection-url>
<driver-class>com.ibm.db2.jcc.DB2Driver</driver-class>
<min-pool-size>0</min-pool-size>
<type-mapping>betcdb2ds</type-mapping>
<!-- Use the security domain defined in conf/login-config.xml -->
<security-domain>EncryptDBPassword</security-domain>
</local-tx-datasource>
and put an entry in login-config.xml i have added the entry
<application-policy name = "EncryptDBPassword">
<login-module code = "org.jboss.resource.security.JaasSecurityDomainIdentityLoginModule"
flag = "required">
<module-option name = "username">BED1TC</module-option>
<module-option name = "password">8Yan5EI.jO3</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=betcdb2ds</module-option>
<!-- <module-option name = "jaasSecurityDomain">jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword</module-option>-->
</login-module>
</application-policy>
and
mbean code="org.jboss.security.plugins.JaasSecurityDomain"
name="jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword">
<!-- The opaque master password file used to decrypt the encrypted
database password key -->
{CLASS}org.jboss.security.plugins.FilePassword:${jboss.server.home.dir}/conf/server.password
abcdefgh
13
Is there anything wrong here
Cool
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994614#3994614
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994614
More information about the jboss-user
mailing list