Version 11

    JAAS login configuration on JBoss

    See also DynamicLoginConfig


    The default jboss-service configuration (conf/jboss-service.xml) sets up the following security related MBeans:


       <mbean code=''''
          <attribute name=''LoginConfig''></attribute>
       <mbean code=''''
          <attribute name=''ConfigResource''>login-config.xml</attribute>
       <!-- JAAS security manager and realm mapping -->
       <mbean code=''''
          <attribute name=''SecurityManagerClassName''>


    This sets up the security config service (, which will use another service ( defined below to manage login configuration.

    The login config service loads a base set of configurations from the resource login-config.xml (resolved to conf/login-config.xml). XMLLoginConfig is not limited to this though and can load additional configuration files via the loadConfig method (this is done programmatically by DynamicLoginConfig).


    The configuration files loaded may be either in XML (DTD or the sun JAAS configuration format.

    Ths configuration specifies (and configures) a set of login modules for security domains eg:

        <!-- Config for certificate authentication in servlet
        <application-policy name = ''client-cert''>
              <login-module code=''''
                 flag = ''required''>
                <module-option name=''password-stacking''>useFirstPass</module-option>
                <module-option name=''securityDomain''>java:/jaas/client-cert</module-option>
                <module-option name=''unauthenticatedIdentity''>guest</module-option>
                <module-option name=''rolesProperties''></module-option>


    NOTE: This specified a login using client certificate authentication over SSL (see BaseCertLoginModule); DR4 still has problems with CertRolesLoginModule, but the CVS version worked.