-
1. Re: Deploying Custom Login Module
jwkaltz Feb 21, 2003 8:46 AM (in response to zampetti)In JBoss 3,
- deploy your custom login module in the deploy directory (as a class or inside a jar)
- add an application policy in the file
login-config-xml :
<application-policy name = "mysecuritydomain_as_in_ejb_jar">
<login-module code = "org.jboss.security.auth.spi.ProxyLoginModule" flag = "required">
<module-option name = "moduleName">my.package.MyLoginModule</module-option>
<module-option name = "myparameter1">bla </module-option>
... other parameters ...
</login-module>
</application-policy>
- start JBoss and check the output for warnings
- deploy your EJBs as usual
I think that's all. -
2. Re: Deploying Custom Login Module
chris.is Mar 5, 2003 9:49 AM (in response to zampetti)I've done this and I am getting a ClassNotFoundException over and over again. The ProxyLoginModule can't find my class.
..
<application-policy name = "MyRealm">
<login-module code "org.jboss.security.auth.spi.ProxyLoginModule" flag = "required">
<module-option name = "moduleName">my.logins.MyLoginModule</module-option>
</login-module>
</application-policy>
and I placed the package in the deploy directory. I tried it packed in a jar and unpacked, just in maps.
It still won't work. How come? -
3. Re: Deploying Custom Login Module
chris.is Mar 5, 2003 9:56 AM (in response to zampetti)I did this and it won't work. I get ClassNotFoundExceptions. ProxyLoginModule can't find my loginmodule. I placed it in the deploy map. I tried it packed in a jar and unpacked, the class in maps.
So how come it won't work? -
4. Re: Deploying Custom Login Module
chewitty Apr 23, 2003 6:42 AM (in response to zampetti)You need to put the jar containing your JAAS custom LoginModule in the server/default/lib and not the deploy directory - assuming that you are using the default server.
Hope that helps.
Regards,
Ferdinand