<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Problem with ldap authentication
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/jmiguel77">Jose Miguel Loor</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/763751#763751">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I have an installation of brms-standalone-5.3.0 server, connected to my office ldap this way:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In the login-config</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><!--</p><p>          BRMS Platform Security Domain</p><p>--></p><p>   <application-policy name="brms"></p><p>      <authentication></p><p><!--</p><p>         <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required"></p><p>            <module-option name="usersProperties">props/brms-users.properties</module-option></p><p>            <module-option name="rolesProperties">props/brms-roles.properties</module-option></p><p>         </login-module></p><p>--></p><p>          <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" ></p><p>                    <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option></p><p>                    <module-option name="java.naming.provider.url">ldap://192.168.0.5:389</module-option></p><p>                    <module-option name="bindDN">cn=admin,dc=ndeveloper,dc=com</module-option></p><p>                    <module-option name="bindCredential">ndeveloper</module-option></p><p>                    <module-option name="baseCtxDN">ou=People,dc=ndeveloper,dc=com</module-option></p><p>                    <module-option name="baseFilter">(cn={0})</module-option></p><p>                    <module-option name="rolesCtxDN">ou=Group,dc=ndeveloper,dc=com</module-option></p><p>                    <module-option name="roleFilter">(member={1})</module-option></p><p>                    <module-option name="roleAttributeID">gidNumber</module-option></p><p>                    <module-option name="roleAttributeIsDN">false</module-option></p><p>                    <module-option name="roleNameAttributeID">cn</module-option></p><p>                    <module-option name="roleRecursion">-1</module-option></p><p>                    <module-option name="searchScope">ONELEVEL_SCOPE</module-option></p><p>          </login-module></p><p>      </authentication></p><p>   </application-policy></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and in the components.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><security:identity authenticate-method="#{authenticator.authenticate}" jaas-config-name="brms"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I can login to th jboss-brms console, register a Guvnor repository in jboss dev studio, and add a new package with a diagram But when i log in to the brms console, search for my package and open the process file, i get this error:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) initialize</p><p>2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) Security domain: brms</p><p>2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) login</p><p>2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) Logging into LDAP server, env={java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, roleNameAttributeID=cn, searchScope=ONELEVEL_SCOPE, java.naming.security.principal=cn=admin,dc=ndeveloper,dc=com, roleRecursion=-1, baseCtxDN=ou=People,dc=ndeveloper,dc=com, roleAttributeID=gidNumber, roleFilter=(member={1}), rolesCtxDN=ou=Group,dc=ndeveloper,dc=com, baseFilter=(cn={0}), jboss.security.security_domain=brms, java.naming.provider.url=ldap://192.168.0.5:389, roleAttributeIsDN=false, bindDN=cn=admin,dc=ndeveloper,dc=com, bindCredential=*****, java.naming.security.authentication=simple, java.naming.security.credentials=***}</p><p>2012-10-08 11:41:40,680 DEBUG [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) Bad password for username=admin</p><p>2012-10-08 11:41:40,680 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) abort</p><p>2012-10-08 11:41:40,683 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jboss-brms].[OryxEditorServlet]] (http-127.0.0.1-8080-7) Servlet.service() for servlet OryxEditorServlet threw exception</p><p>java.lang.IllegalArgumentException: Unable to authenticate user.</p><p>          at org.drools.guvnor.server.files.OryxEditorServlet.service(OryxEditorServlet.java:53)</p><p>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)</p><p>          at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65)</p><p>          at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)</p><p>          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</p><p>          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)</p><p>          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)</p><p>          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)</p><p>          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)</p><p>          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</p><p>          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)</p><p>          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>          at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)</p><p>          at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)</p><p>          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)</p><p>          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)</p><p>          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)</p><p>          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)</p><p>          at java.lang.Thread.run(Thread.java:662)</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/763751#763751">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>