Jbpm console and LDAP authentication
by Frédéric Viollet
Hi,
I'm running JBPM in a plain Tomcat (Jbpm-jpdl-3.2.3 & Tomcat 6.0.18)
I managed to get this work by following the wiki
http://wiki.jboss.org/wiki/JbpmOnTomcat
The next step is to make Tomcat and jbpm authenticate on an Active
Directory.
I managed to configure the
$TOMCAT_HOME/conf/Catalina/localhost/jbpm-console.xml to authenticate on
an AD
<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://myldap.server:389"
connectionName="MyAdmin"
connectionPassword="MyPassword"
userPattern="cn={0}, CN=Users, DC=iamverif, DC=dom"
roleBase="CN=Users, DC=iamverif, DC=dom"
roleName="cn"
roleSearch="uniqueMember={0}" />
But, now when I try to authenticate on the jbpm-console, I get the
following message. I know I'm missing something, but I can't figure out
what...
Any help would be greatly appreciated.
"
type : Status report
message : Access to the requested resource has been denied
description : Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.
"
Thanks for your help.
Fred
15 years, 9 months
[JBoss jBPM] - Re: Parameter userName does not exist as a named parameter
by alfergar
Hello
I have exactly the same problem.
500 Internal Server Error
java.lang.IllegalArgumentException: Parameter username does not exist as a named parameter in [from aut.bus.Usuario u where u.username = :username]
at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:356)
at org.hibernate.impl.AbstractQueryImpl.setString(AbstractQueryImpl.java:643)
at aut.dao.impl.hibernate.UsuarioDaoImpl.getByUserName(UsuarioDaoImpl.java:39)
at aut.service.impl.UserDetailsServiceImpl.loadUserByUsername(UserDetailsServiceImpl.java:56)
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:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203)
at $Proxy99.loadUserByUsername(Unknown Source)
at org.acegisecurity.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:87)
at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:115)
at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:188)
at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:199)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
I tried to include the libraries jbpm-identity.jar and jbpm-jpdl.jar
but it doesnt work
Thank you for your interest
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180726#4180726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180726
15 years, 9 months
[JBoss jBPM] - Switching the Database Backend and jBPM 3.2.3
by danrowley
G'day,
I'm from a large government department in Australia, that is currently evaluating JBoss jBPM, through the construction of a prototype using a three-tier architecture (presentation, business, and data).
We are using jBPM 3.2.3, and have come across some problems, at the data layer of our architecture, while referring to Chapter 8 of the JBoss jBPM jPDL 3.2 User Guide; very early days.
http://docs.jboss.org/jbpm/v3/userguide/thejbpmdatabase.html#d0e2578
In Chapter 8, it reads:
"Making the default webapp talk to the correct datasource is again not very difficult. The first step in doing this is simply locate the 'jboss-service.xml' file in the folder '${JBPM_SDK_HOME}/jbpm-server/server/jbpm/deploy/jbpm.sar/META-INF'. Change the contents of this file with the contents of the listing below. An attentive reader will notice that the only difference is an exchange of the token 'DefaultDS' by 'JbpmDS'."
However, in our installation of jBPM 3.2.3, we cannot find the folder:
'${JBPM_SDK_HOME}/jbpm-server/server/jbpm/deploy/jbpm.sar'.
Is Chapter 8 out of sync with 3.2.3 or have I done something incorrectly?
Thanks heaps,
Dan Rowley
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180708#4180708
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180708
15 years, 9 months