[jboss-jira] [JBoss JIRA] (JBCOMMON-131) Setting cache timeout for JAAS under jboss-eap-6.1 does not work

Artur Mioduszewski (JIRA) jira-events at lists.jboss.org
Tue Nov 5 10:17:02 EST 2013


Artur Mioduszewski created JBCOMMON-131:
-------------------------------------------

             Summary: Setting cache timeout for JAAS under jboss-eap-6.1 does not work
                 Key: JBCOMMON-131
                 URL: https://issues.jboss.org/browse/JBCOMMON-131
             Project: JBoss Common
          Issue Type: Bug
      Security Level: Public (Everyone can see)
         Environment: jboss-eap-6.1
            Reporter: Artur Mioduszewski
            Assignee: Dimitris Andreadis


When: cache-type="default"  in  security-domain configuration -> authentication works correctly.

When below configuration is used -> JAAS authentication stops to work (on JBoss console there are not any errors)

<code>
...
<security-domain name="myJaasDomain" cache-type="infinispan">
<security-domains>
                <security-domain name="DigitalSignalWS" cache-type="default">
                    <authentication>
                        <login-module code="Database" flag="required">
                            <module-option name="dsJndiName" value="java:jboss/datasources/digital-signal-service-dev-ws-DS"/>
                            <module-option name="principalsQuery" value="SELECT l.PASSWORD FROM LOGIN l WHERE l.USERNAME=?"/>
                            <module-option name="rolesQuery" value="SELECT ar.NAME, 'Roles'                      FROM login l,                    login_access_group lg,                    access_group g,                    access_group_s_access_right ga,                    s_access_right ar                    WHERE                      l.username = ?                      AND l.id = lg.login_ID                     AND lg.groups_ID = g.id                     AND g.ID = ga.access_group_ID                     AND ga.accessRights_ID = ar.ID"/>
                            <module-option name="hashAlgorithm" value="MD5"/>
                            <module-option name="hashEncoding" value="base64"/>
                            <module-option name="unauthenticatedIdentity" value="guest"/>
                        </login-module>
                    </authentication>
                </security-domain>
...

<subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="web">
            <cache-container name="cluster" aliases="ha-partition" default-cache="default">
                <transport lock-timeout="60000"/>
                <replicated-cache name="default" mode="SYNC" batching="true">
                    <locking isolation="REPEATABLE_READ"/>
                </replicated-cache>
            </cache-container>
            <cache-container name="web" aliases="standard-session-cache" default-cache="repl">
                <transport lock-timeout="60000"/>
                <replicated-cache name="repl" mode="ASYNC" batching="true">
                    <file-store/>
                </replicated-cache>
                <replicated-cache name="sso" mode="SYNC" batching="true"/>
                <distributed-cache name="dist" mode="ASYNC" batching="true">
                    <file-store/>
                </distributed-cache>
            </cache-container>
            <cache-container name="ejb" aliases="sfsb sfsb-cache" default-cache="repl">
                <transport lock-timeout="60000"/>
                <replicated-cache name="repl" mode="ASYNC" batching="true">
                    <file-store/>
                </replicated-cache>
                <replicated-cache name="remote-connector-client-mappings" mode="SYNC" batching="true"/>
                <distributed-cache name="dist" mode="ASYNC" batching="true">
                    <file-store/>
                </distributed-cache>
            </cache-container>
            <cache-container name="hibernate" default-cache="local-query">
                <transport lock-timeout="60000"/>
                <local-cache name="local-query">
                    <transaction mode="NONE"/>
                    <expiration max-idle="100000"/>
                </local-cache>
                <invalidation-cache name="entity" mode="SYNC">
                    <transaction mode="NON_XA"/>
                    <expiration max-idle="100000"/>
                </invalidation-cache>
                <replicated-cache name="timestamps" mode="ASYNC">
                    <transaction mode="NONE"/>
                </replicated-cache>
            </cache-container>
        </subsystem>
...
<code>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list