Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using Jboss4.2.2 configuration for Configured Identity with Password Based Encryption (PBE) can you any one tell me about what is use of server.password ,and how to creaed it.

project-prod-ds.xml

 <local-tx-datasource>
    <jndi-name>mobeeadminDatasource</jndi-name>
            <use-java-context>false</use-java-context>
            <connection-url>jdbc:oracle:thin:@localhost:1521:xe</connection-url>
            <driver-class>oracle.jdbc.OracleDriver</driver-class>

             <security-domain>EncryptedOracleDbRealm</security-domain>
            </local-tx-datasource>
         <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
                     name="jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword">
          <constructor>
             <arg type="java.lang.String" value="ServerMasterPassword"></arg>
          </constructor>
          <!-- The opaque master password file used to decrypt the encrypted
          database password key -->
          <attribute name="KeyStorePass">{CLASS}org.jboss.security.plugins.FilePassword:${jboss.server.home.dir}/conf/server.password</attribute>
          <attribute name="Salt">mobeeadm</attribute>
          <attribute name="IterationCount">13</attribute>
        </mbean>
        <mbean code="org.jboss.jdbc.HypersonicDatabase"
          name="jboss:service=Hypersonic,database=mobeeadminDatasource">
          <attribute name="Database">mobeeadminDatasource</attribute>
          <attribute name="InProcessMode">true</attribute>
       </mbean>

login-config.xml

<application-policy name="EncryptedOracleDbRealm">
   <authentication>
      <login-module code= "org.jboss.resource.security.JaasSecurityDomainIdentityLoginModule"
         flag = "required">
         <module-option name="username">kcbuser</module-option>
         <module-option name="password">29gsr5RGZ9cUs5/sDXk81r</module-option>
         <module-option name="managedConnectionFactoryName">
            jboss.jca:service=LocalTxCM,name=mobeeadminDatasource
         </module-option>
         <module-option name="jaasSecurityDomain">
            jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword
         </module-option>
      </login-module>
   </authentication>
</application-policy>
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.