[jboss-jira] [JBoss JIRA] Commented: (JBAS-5312) Make DynamicLoginConfig a bean

Stefan Guilhen (JIRA) jira-events at lists.jboss.org
Tue May 13 17:15:26 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAS-5312?page=comments#action_12412666 ] 
            
Stefan Guilhen commented on JBAS-5312:
--------------------------------------

DynamicLoginConfig is going to remain as an mbean for backwards compatibility. A metadata factory has been developed to allow for the declaration of policies directly in -beans.xml files:

<deployment xmlns="urn:jboss:bean-deployer:2.0">

   <application-policy xmlns="urn:jboss:security-beans:1.0" name="somepolicy">
      <authentication>
         <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
            <module-option name="usersProperties">testusers.properties</module-option>
            <module-option name="rolesProperties">testroles.properties</module-option>
         </login-module>
         <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="optional">
            <module-option name="dsJndiName">java:/DefaultDS</module-option>
            <module-option name="principalsQuery">SELECT PASSWD FROM JBM_USER WHERE USER_ID=?</module-option>
            <module-option name="rolesQuery">SELECT ROLE_ID, 'Roles' FROM JBM_ROLE WHERE USER_ID=?</module-option>
         </login-module>
      </authentication>
   </application-policy>
   ...
</deployment>

The declaration of an application-policy results in the creation of an ApplicationPolicyBean that registers the policy with the security layer (XMLLoginConfigImpl).

> Make DynamicLoginConfig a bean
> ------------------------------
>
>                 Key: JBAS-5312
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5312
>             Project: JBoss Application Server
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Security
>    Affects Versions: JBossAS-5.0.0.Beta4
>            Reporter: Anil Saldhana
>         Assigned To: Stefan Guilhen
>             Fix For: JBossAS-5.0.0.CR1
>
>
> Just the way XMLLoginConfig was made into a bean with an additional @JMX annotation,  Dynamic LoginConfig needs to be made into a bean.  Any internal attributes that use ObjectNames (if any) need to be injectable.
> An usage of DynamicLoginConfig is in deploy/security-policies-service.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list