-
1. Re: unothodox module stacking?
j2ee_junkie Jun 19, 2006 7:34 PM (in response to bezdomny)B,
I say you have at least three options. Extend JBoss' DatabaseServerLoginModule to handle your extra functionality. Or, create a custom login module that only handles your extra functionality and stack. If these wont work, then implement your own module. LoginModules can be tricky to implement from scratch, so it is best to extend.
cgriffith -
2. Re: unothodox module stacking?
bezdomny Jun 19, 2006 9:06 PM (in response to bezdomny)Thanks for the reply. I could accomplish what I want if I can pass a stored proc call in the module option. Is that possible? Something like call usp_login ?
B -
3. Re: unothodox module stacking?
j2ee_junkie Jun 20, 2006 8:17 AM (in response to bezdomny)B,
I am not sure what path you have decided to take. Extend DBSLM, stack custom with DBSLM, or create custom LM. The DBSLM by itself will not accept such an option, but any extension or custom LM you make can.
cgriffith -
4. Re: unothodox module stacking?
bezdomny Jun 20, 2006 10:38 AM (in response to bezdomny)Thanks for your advice. I'm going to try to extend the DSLM, but I admit I have no idea what that might entail. Any advice you have on this would be great. I've done some searching on the site, but there seems to be just pieces of info for specific problems.
Thanks!
B -
5. Re: unothodox module stacking?
j2ee_junkie Jun 20, 2006 10:54 AM (in response to bezdomny)B,
If you have no idea how to implement login modules, then you some work to due. Read the java JAAS tutorial http://java.sun.com/j2se/1.5.0/docs/guide/security/index.html ,
chapter 8 of server guide http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html,
and the JBossSX wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSX.
Just to get you started though, you will probably want to overide the commit method. If the user has been logged in, then do your stuff.
If you still have questions, feel free to ask. cgriffith