[jboss-user] [Security & JAAS/JBoss] - Re: DatabaseServerLoginModule with Cipher and PBEWithMD5AndD

ragavgomatam do-not-reply at jboss.com
Thu Aug 7 21:05:58 EDT 2008


Check out the login-config.xml element in the following :- 

<application-policy name = "testPBEIdentityLoginModule">
  |       <authentication>
  |          <login-module code = "org.jboss.resource.security.PBEIdentityLoginModule"
  |             flag = "required">
  |             <module-option name = "principal">sa</module-option>
  |             <module-option name = "userName">sa</module-option>
  |             <!--
  |             output from:
  |                org.jboss.resource.security.PBEIdentityLoginModule
  |                thesecret testPBEIdentityLoginModule abcdefgh 19 PBEWithMD5AndDES 
  |             -->
  |             <module-option name = "password">3fp7R/7TMjyTTxhmePdJVk</module-option>
  |             <module-option name = "ignoreMissigingMCF">true</module-option>
  |             <module-option name = "pbealgo">PBEWithMD5AndDES</module-option>
  |             <module-option name = "pbepass">testPBEIdentityLoginModule</module-option>
  |             <module-option name = "salt">abcdefgh</module-option>
  |             <module-option name = "iterationCount">19</module-option>
  |             <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
  |          </login-module>
  |       </authentication>
  |    </application-policy>
  |    <application-policy name = "testPBEIdentityLoginModuleTmpFilePassword">
  |       <authentication>
  |          <login-module code = "org.jboss.resource.security.PBEIdentityLoginModule"
  |             flag = "required">
  |             <module-option name = "principal">sa</module-option>
  |             <module-option name = "userName">sa</module-option>
  |             <!--
  |                output from:
  |                org.jboss.resource.security.PBEIdentityLoginModule
  |                thesecret2 testPBEIdentityLoginModuleTmpFilePassword abcdefgh 19 PBEWithMD5AndDES 
  |             -->
  |             <module-option name = "password">2zff525DS/OgTuWuJtHYHa</module-option>
  |             <module-option name = "ignoreMissigingMCF">true</module-option>
  |             <module-option name = "pbealgo">PBEWithMD5AndDES</module-option>
  |             <module-option name = "pbepass">{CLASS}org.jboss.security.plugins.TmpFilePassword:${java.io.tmpdir}/tmp.password,5000</module-option>
  |             <module-option name = "salt">abcdefgh</module-option>
  |             <module-option name = "iterationCount">19</module-option>
  |             <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
  |          </login-module>
  |       </authentication>
  |    </application-policy> 
  | 

More information available at 
http://wiki.jboss.org/wiki/ConfigJCALoginModule

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169436#4169436

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169436



More information about the jboss-user mailing list