[jboss-user] [Security & JAAS/JBoss] - SecurityAssociaton.getSubject is null

AbhayaJha do-not-reply at jboss.com
Tue Apr 24 06:24:49 EDT 2007


Hi,

We are migrating JBoss 3.2.3 to JBoss 4.0.5.GA.
We have configured login-config.xml and jboss-service.xml for JAAS.

configurations  are as below:

anonymous wrote : conf/login-config.xml

<application-policy name="settlement">
  
       <login-module code="com.db.dcs.model.settlements.jboss.security.LdapDBLoginModule" flag="required">
<module-option name="validatePWD">false</module-option>
</login-module>

</application-policy>

anonymous wrote : conf/jboss-service.xml

mbean code="org.jboss.security.plugins.SecurityConfig" name="jboss.security:service=SecurityConfig">
		jboss.security:service=XMLLoginConfig
	
	
		login-config.xml
	
	<!-- JAAS security manager and realm mapping -->
	<!-- PACO change JaasSecurityManager by JaasSecurityDomain -->
	
		
         org.jboss.security.plugins.JaasSecurityDomain
      
	
	
	<!-- PACO -->
	
    jboss.security:service=JaasSecurityManager
    
        
    

anonymous wrote : default\deploy\jbossweb-tomcat55.sar\server.xml

  <!-- SSL/TLS Connector configuration using the SSL domain keystore -->
	
                 
               



LoginModule is invoked properly but when we try to get the subject 
by SecurityAssociation.getSubject() then subject is null.



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

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



More information about the jboss-user mailing list