Alex Rivera | Logout

JBoss AS 7.1 - datasource how to encrypt password

Asked 2012-05-09T17:20:01.110
17

In JBoss AS 5, I have a datasource defined in *-ds.xml but put username/encrypted password in *-jboss-beans.xml.

Now in JBoss AS 7.1, the datasource is defined in standalone.xml or domain.xml. Where do I put the encrypted password in AS 7.1?

In other words, how is a clear password encrypted and secured in AS 7?

Edit
Report

1 Answer

2

In an environment CentOS release 6.3, JBoss-EAP-6.0.0 this only worked with code="SecureIdentity", using picketbox-4.0.9.Final-redhat-1.jar for password encryption.

<security-domain name="some-ds-EncryptedPassword">
  <authentication>
    <login-module code="SecureIdentity" flag="required">
      <module-option name="username" value="username"/>
      <module-option name="password" value="encrypted_password"/>
    </login-module>
  </authentication>
</security-domain>

code="SecureIdentityLogin" gives "PB00024: Access Denied:Unauthenticated caller:null".

Source: https://docs.jboss.org/author/display/AS7/Security+subsystem+configuration

answered 2013-03-26T15:15:57.773

Your Answer