-
1. Re: Getting Callback Handler from LoginModule
starksm64 Jun 15, 2004 10:15 AM (in response to jeeads)This is on the server side? It makes little sense in general to have a server side callback handler attempt to interact with a user input which is why the default CallbackHandler does not deal with TextInputCallbacks. You can change the CallbackHandler used by jboss by setting the CallbackHandlerClassName attribute on the JaasSecurityManagerService if you have a setup where this does make sense.
<!-- JAAS security manager and realm mapping --> <mbean code="org.jboss.security.plugins.JaasSecurityManagerService" name="jboss.security:service=JaasSecurityManager"> <attribute name="SecurityManagerClassName"> org.jboss.security.plugins.JaasSecurityManager </attribute> <attribute name="CallbackHandlerClassName"> com.dot.MyCallbackHandler </attribute> </mbean>
-
2. Re: Getting Callback Handler from LoginModule
jeeads Jun 15, 2004 10:35 AM (in response to jeeads)Scott,
You are correct the login module being used for the remote datasource is on the server and therefore has no connection with the client. I will have to make my API aware of the need for capturing a username and password from the user when a datasource with that type of authorization is accessed.
Thanks
Jerry -
3. Re: Getting Callback Handler from LoginModule
padrew Apr 9, 2009 4:58 PM (in response to jeeads)I have writen my own CallbackHandler and when I configure it in my jboss-service.xml file:
<!-- JAAS security manager and realm mapping --> <mbean code="org.jboss.security.plugins.JaasSecurityManagerService" name="jboss.security:service=JaasSecurityManager"> <attribute name="ServerMode">true</attribute> <attribute name="SecurityManagerClassName">org.jboss.security.plugins.JaasSecurityManager</attribute> <attribute name="DefaultUnauthenticatedPrincipal">anonymous</attribute> <attribute name="CallbackHandlerClassName">com.DbCallbackHandler</attribute>
I am getting a No ClassLoaders found for: com.DbCallbackHandler.
The class does exist in a jar on the server. Does it need to be placed in a special location?