This content has been marked as final.
Show 6 replies
-
1. Re: CallbackHandlerClassName not being used !
gastaldi Apr 7, 2009 3:50 PM (in response to gastaldi)Here is the MBean Configuration:
<mbean code="org.jboss.security.plugins.JaasSecurityManagerService" name="jboss.security:service=JaasSecurityManager"> ... <attribute name="CallbackHandlerClassName">com.george.security.handler.MyCustomCallbackHandler</attribute> </mbean>
-
2. Re: CallbackHandlerClassName not being used !
anil.saldhana Apr 7, 2009 3:57 PM (in response to gastaldi)deploy/security/security-jboss-beans.xml
<!-- JNDI Based Security Management --> <bean name="JNDIBasedSecurityManagement" class="org.jboss.security.integration.JNDIBasedSecurityManagement"/>
You will have to create an instance of your call back handler and then inject into this bean.<bean name="myhandler" class="com.george....." /> <!-- JNDI Based Security Management --> <bean name="JNDIBasedSecurityManagement" class="org.jboss.security.integration.JNDIBasedSecurityManagement"> <property name="callBackHandler"><inject bean="myhandler"/> </bean>
-
3. Re: CallbackHandlerClassName not being used !
gastaldi Apr 7, 2009 4:38 PM (in response to gastaldi)Anil,
I´ve already done that, and the callbackHandler is set, BUT, somehow, the class is instantiated again (ignoring the XML configuration) and the default callback is used again.
Any more suggestions ?? -
4. Re: CallbackHandlerClassName not being used !
gastaldi Apr 7, 2009 4:40 PM (in response to gastaldi)It seems that there is a bug in org.jboss.security.integration.SecurityDomainObjectFactory.
It always creates a new JNDIBasedSecurityManagement, no matter how I configured it.
Maybe changing that will fix this issue ? -
5. Re: CallbackHandlerClassName not being used !
anil.saldhana Apr 7, 2009 5:13 PM (in response to gastaldi)"gastaldi" wrote:
It seems that there is a bug in org.jboss.security.integration.SecurityDomainObjectFactory.
It always creates a new JNDIBasedSecurityManagement, no matter how I configured it.
Maybe changing that will fix this issue ?
Looking at it, I can see that there are issues.
Let me think about workarounds and get back. We want to get this fixed for AS5.1