[Security & JAAS/JBoss] - LdapExtLoginModule, DatabaseServerLoginModule and password-s
by braca
Hi,
I want to use LdapExtLoginModule for authenticating users and DatabaseServerLoginModule for retrieving roles. However, it doesn't work. I can't even login/authenticate. Without the Database-Module and getting some sample roles out of ldap is working. So what's wrong? Here's my login-config.xml:
| <application-policy name = "jmx-console">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
| <module-option name="password-stacking">useFirstPass</module-option>
| <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
| <module-option name="java.naming.provider.url">ldaps://10.31.4.4:636</module-option>
| <module-option name="bindDN">cn=Test,ou=User</module-option>
| <module-option name="bindCredential">xxx</module-option>
| <module-option name="baseCtxDN">ou=sample,o=orga</module-option>
| <module-option name="baseFilter"><![CDATA[(&(cn={0})(objectClass=inetOrgPerson))]]></module-option>
| <module-option name="searchTimeLimit">5000</module-option>
| <module-option name="searchScope">SUBTREE_SCOPE</module-option>
| </login-module>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
| <module-option name="password-stacking">useFirstPass</module-option>
| <module-option name = "dsJndiName">java:InformixDS</module-option>
| <module-option name = "rolesQuery">
| SELECT a.name, 'Roles' \
| FROM b_rolle a \
| INNER JOIN b_benrolleorga b \
| ON a.id = b.x_rolle_id \
| WHERE (a.gueltigbis IS NULL OR a.gueltigbis ='' OR a.gueltigbis >= TODAY ) \ AND \
| user=?
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
| Exception is:
| 2009-01-22 14:16:30,343 DEBUG [org.jboss.security.auth.spi.LdapExtLoginModule] Bad password for username=test
| java.lang.NullPointerException
| at javax.naming.InitialContext.getURLScheme(InitialContext.java:269)
| at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:318)
| at javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:87)
| at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
| at org.jboss.security.auth.spi.LdapExtLoginModule.rolesSearch(LdapExtLoginModule.java:421)
| at org.jboss.security.auth.spi.LdapExtLoginModule.createLdapInitContext(LdapExtLoginModule.java:351)
| at org.jboss.security.auth.spi.LdapExtLoginModule.validatePassword(LdapExtLoginModule.java:232)
| at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:210)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| ...
|
Thanks for an answer
braca
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204003#4204003
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204003
17 years, 5 months
[JBoss jBPM] - Re: DeploymentDescriptor not setted on IntegrationControl af
by dhanushgopinath
Carlos,
As a workaround You may try setting the deployment descriptor again on the integration control after checking if it has a deployment descriptor. Like this may be
| IntegrationControl integControl = factory
| .getIntegrationControl(bpelProcDef);
|
| // Create DeploymentDescriptor instance
| DeploymentDescriptor deployDesc = new DeploymentDescriptor();
|
| // Create InputSource
| InputSource is = new InputSource(deploymentDescriptorContent input stream
| );
| // Read the deployment descriptor into the deployDesc object
|
| DeploymentDescriptorReader reader = new DeploymentDescriptorReader();
| reader.read(deployDesc, is);
|
| integControl.setDeploymentDescriptor(deployDesc);
Hope this helps. I faced this issue (integration control not holding deploy descriptor) in a different way, a code like this help it fix.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204002#4204002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204002
17 years, 5 months
[JBoss jBPM] - DeploymentDescriptor not setted on IntegrationControl after
by karluqs
Hi,
I deployed a BPEL process on jBPM. This process has an invoke node to a WS then an wait node and after that another invoke. Everything was working fine, i tested a few times. So for crash recovery test, i shutdown jboss when reached the wait node. After the restart, i waited for the process to continue. It restarted ok but an error ocurred when the second invoke WS was reached.
| java.lang.NullPointerException
| org.jbpm.bpel.integration.jms.IntegrationControl.getPartnerCatalog(IntegrationControl.java:293)
| org.jbpm.bpel.integration.jms.IntegrationControl.createCaller(IntegrationControl.java:261)
| org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:162)
| org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:75)
| sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
I put a debug on it, so i discovered the following, the property deploymentDescriptor (org.jbpm.bpel.integration.server.DeploymentDescriptor) was not setted on org.jbpm.bpel.integration.jms.IntegrationControl. This property is only setted on org.jbpm.bpel.integration.server.IntegrationConfigurator.contextInitialized(... that it's called when the process is deployed.
When i restart JBoss all my process already deployed can't call WS because the IntegrationControl related to the process don't receive the deploymentDescriptor object on JmsIntegrationServiceFactory.getIntegrationControl(
And another problem, since this deploymentDescriptor is only read from the current deployed process, the old version from the same process will fail after a JBoss restart, because the deployment file don't exist anywhere.
This is a bug, right?
Anybody has a workround for this?
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203999#4203999
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203999
17 years, 5 months
[JBoss Getting Started Documentation] - Jboss not accessible on remote server.
by kashif_jboss
HI All,
i am facing a problem with jboss while accessing it from remote machine. i hope some1 will b able to find its solution for me.
i have installed lastes available jboss (jboss-5.0.0.GA) on a linux machine. now when i start jboss, it starts successfully on 8080 port on that machine as i can it in logs. but when i try to access it from my machine from browser using ip of that machine like (http://192.168.0.1:8080 where 192.168.0.1 is the ip of machine where jboss is installed). it shows me "page can not be displayed".
Now when i check for firewall. there is no firewall configured. server is listening on 8080 port (telnet 192.168.0.1 8080) but page is not displaying.
now when i stop jboss and start tomcat on same linux machine and same port then i am able to access page of tomcat using url (http://192.168.0.1:8080).
now there is one more thing.
when jboss is up and i use command lynx http://127.0.0.1:8080 on linux server then it shows me jboss page on that machine without graphics... means jboss is up and running for its local host... but not from oustside the machine...
but i have not done anything particular with configuration of jboss...
also i have tried to use different remote servers but no success. also i have tried it by changing my own machine that was used to access server but still same case...
so...can anyone please tell me where am i doing wrong?
Thanks in advance
Kashif
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203998#4203998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203998
17 years, 5 months
[JBoss Tools (users)] - Re: Error Creating Seam Portlet
by mottfried
And again its not working, i dont know why.
Todays morning i started my machine - created a new JBoss Seam Portlet Project 2.0, used portletbridge-1.0.0.B5 and jboss-seam-2.0.2.SP1/jboss-seam-2.0.3.CR1. Created my Seam Portlet, deployed to JBoss Portal 2.7.1/JBoss Portal 2.7.0
| 13:55:42,390 ERROR [InternalPortletContentProvider] Portlet invoker exception during portlet window rendering
| org.jboss.portal.portlet.PortletInvokerException: javax.servlet.ServletException
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:101)
| at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
| at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
| at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
| at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:75)
| at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
| at org.jboss.portal.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:116)
| at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
| at org.jboss.portal.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:221)
| at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.org$jboss$portal$core$impl$portlet$state$ProducerPortletInvoker$invoke$aop(ProducerPortletInvoker.java:53)
| at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
|
| ....
|
| Caused by: javax.servlet.ServletException
| at org.jboss.portal.web.command.CommandServlet.include(CommandServlet.java:97)
| at org.jboss.portal.web.command.CommandDispatcher.include(CommandDispatcher.java:50)
| at org.jboss.portal.web.jboss.JBossWebContext.include(JBossWebContext.java:66)
| at org.jboss.portal.web.impl.DefaultServletContainer.include(DefaultServletContainer.java:190)
| at org.jboss.portal.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
| ... 171 more
| Caused by: java.lang.NoSuchMethodError: org.jboss.portletbridge.component.UIPortletViewRoot.processPhaseListeners(Ljavax/faces/context/FacesContext;Ljavax/faces/event/PhaseId;Z)V
| at org.jboss.portletbridge.component.UIPortletViewRoot.encodeBegin(UIPortletViewRoot.java:51)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:934)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
| at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
| at org.jboss.portletbridge.lifecycle.RenderResponsePhase.executePhase(RenderResponsePhase.java:58)
| ....
|
When i replace the provided Seam libs with:
| * jsf-facelets-1.1.14.jar
| * richfaces-api-3.3.0.GA.jar
| * richfaces-impl-3.3.0.GA.jar
| * richfaces-ui-3.3.0.GA.jar
| * commons-digester-1.8.1.jar
| * commons-beanutils-1.8.0.jar
|
it's working.
It would be a very good documentation hint if you add all needed libs and its versions for JBoss Tools and JBoss Portal. I would help you here but iam a real newbie to JBoss and its tools.
Then i found a little bug, sometimes when undeploying a project it is not deleted in the jboss workspace directory .metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_Application_Server_4.2_-_jboss-portal-2.7.1\deploy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203994#4203994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203994
17 years, 5 months