[Security & JAAS/JBoss] - Tomcat 5.5 login module compatibility?
by jptalberg
We are currently running JBoss AS 4.2.1 and having difficulty configuring the login-config.xml to use a login module that was written for tomcat 5.5.
In particular, the authentication aspect seems to be working. It only lets valid usernames/passwords through as we expect from our login module. However, our web application is not able to retrieve our custom principal object out of the request; instead we get a org.jboss.security.SimplePrincipal object.
We don't have direct access to the source code for the login module code, should AS 4.2.1 (default all configuration) be able to use a tomcat 5.5 login module without modification?
I have seen http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingCustomPrincpalsWith which seems to state the the custom principal must have a constructor with a string username, or be installed under the Subject using a java.security.acl.group named "CallerPrincipal". I don't think our custom login module does either of these, but I could be wrong as the login-module is not under our control.
In our login-conf.xml we are specifying the following module-options for our custom login-module: appName, principalClass, userClassNames, roleClassNames. I would provide the files but they are on a non accessible network.
Any help in this matter would greatly be appreciated!
Also is there any way to turn up more debug login framework?
Thanks,
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131178#4131178
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131178
18 years, 2 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Issue with the JBoss HelloWorldIPC portlet
by briandehaven
This is the portlet I threw together. There are many other pages and windows deployed. Only the PageLinkWindow and its parent are printed. Exceptions are thrown for every other node the code attempts to access, but they don't propogate into the portlet doView method. They are just printed to console.
Output:: context
| -DemoPortal: portal
| --ipc: page
| ---PageLinkWindow: window
Portlet code:
import java.io.IOException;
| import java.util.Collection;
|
| import javax.portlet.PortletException;
|
| import org.jboss.portal.api.node.PortalNode;
| import org.jboss.portlet.JBossPortlet;
| import org.jboss.portlet.JBossRenderRequest;
| import org.jboss.portlet.JBossRenderResponse;
|
| public class PageLinkPortlet extends JBossPortlet
| {
| protected void doView(JBossRenderRequest request, JBossRenderResponse response) throws IOException, PortletException
| {
| try
| {
| response.setContentType("text/html");
| StringBuffer html = new StringBuffer();
|
| PortalNode baseNode = request.getPortalNode();
| while (baseNode.getParent() != null)
| baseNode = baseNode.getParent();
|
| list(html, baseNode);
| listchildren(html, baseNode, 1);
|
| response.getWriter().write(html.toString());
| }
| catch(Exception e)
| {
| //e.printStackTrace();
| }
| }
|
| private void list(StringBuffer html, PortalNode pn)
| {
| String type = "";
| if (pn.getType() == PortalNode.TYPE_CONTEXT)
| type = "context";
| else if (pn.getType() == PortalNode.TYPE_PORTAL)
| type = "portal";
| if (pn.getType() == PortalNode.TYPE_PAGE)
| type = "page";
| if (pn.getType() == PortalNode.TYPE_WINDOW)
| type = "window";
|
| html.append(pn.getName() + ": " + type + "<br>");
| }
|
| private void listchildren(StringBuffer html, PortalNode pn, int depth)
| {
| Collection<PortalNode> c = (Collection<PortalNode>) pn.getChildren();
|
| for (PortalNode node : c)
| {
| for (int i = 0; i < depth; i++)
| html.append("-");
|
| list(html, node);
| listchildren(html, node, depth + 1);
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131177#4131177
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131177
18 years, 2 months
[JBoss jBPM] - Process Logging Not Happening Correctly
by CBax007
I have a small issue that I was wondering if anyone could help with. I find that when I use the RemoteCommandService to interact with JBPM, not much (if anything at all) gets logged to the JBPM_LOG table. Here's the basic sequence that I'm doing. I start of with a StartProcessInstanceCommand to kick off my new process. The new process gets saved and a single line gets committed to the log table for the start of the process. Because I use the StartProcessInstanceCommand, the process gets moved off the start node and onto the first actual task node. Because of this, I was expecting more in the log table. If I start the process via the web console and signal the start token, I get much more in the log table. So next I use a TaskInstanceEndCommand to complete the active task. Again, the task gets completed and the DB is updated properly except that nothing gets logged to the log table again. Now, if I use the web console to perform the same action, everything gets logged to the log table as expected.
So my question is this. Why does the logging not work correctly when I go in via the RemoteCommandService but does work correclty when I use the web console?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131173#4131173
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131173
18 years, 2 months