[jboss-user] [Datasource Configuration] - Re: Passwords are getting logged in log file through datasource configuration when jboss logging is in debug level

Rahul Singh do-not-reply at jboss.com
Tue Apr 3 06:19:41 EDT 2012


Rahul Singh [https://community.jboss.org/people/rahul.pani] created the discussion

"Re: Passwords are getting logged in log file through datasource configuration when jboss logging is in debug level"

To view the discussion, visit: https://community.jboss.org/message/727954#727954

--------------------------------------------------------------
I added 
<depends>jboss.jca:name=PostgresDS,service=XATxCM</depends>
 <security-domain>EncryptXADBPassword</security-domain>

instead of 
 <xa-datasource-property name="User">$username}</xa-datasource-property>
 <xa-datasource-property name="Password">${password}</xa-datasource-property>

and added in login-config.xml 
 <application-policy name="EncryptXADBPassword">
        <authentication>
            <login-module code="org.jboss.resource.security.SecureIdentityLoginModule" flag="required">
                <module-option name="username">${username}</module-option>
                <module-option name="password">6f8e652f571678f2</module-option>
                <module-option name="managedConnectionFactoryName">jboss.jca:name=PostgresDS,service=XATxCM</module-option>
            </login-module>
        </authentication>
  </application-policy>

But it did not start properly logged deployment failures. It might be related to my settings but if you say so that it should i will try again. Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/727954#727954]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120403/1a5e1777/attachment.html 


More information about the jboss-user mailing list