<!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;">
    Ldap configuration
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/jardimpinheiro">Moises Jardim Pinheiro</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/829547#829547">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I need to configure jboss with ldap but I have some problems.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I tried to do this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>web.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;security-constraint&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;web-resource-collection&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;web-resource-name&gt;</span>HtmlAuth<span class="jive-xml-tag">&lt;/web-resource-name&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;description&gt;</span>application security constraints
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/description&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;url-pattern&gt;</span>/*<span class="jive-xml-tag">&lt;/url-pattern&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;http-method&gt;</span>GET<span class="jive-xml-tag">&lt;/http-method&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;http-method&gt;</span>POST<span class="jive-xml-tag">&lt;/http-method&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;/web-resource-collection&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;auth-constraint&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;role-name&gt;</span>admin<span class="jive-xml-tag">&lt;/role-name&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;/auth-constraint&gt;</span>
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;/security-constraint&gt;</span>
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;login-config&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;auth-method&gt;</span>BASIC<span class="jive-xml-tag">&lt;/auth-method&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;realm-name&gt;</span>LDAP Test<span class="jive-xml-tag">&lt;/realm-name&gt;</span>
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;/login-config&gt;</span>
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;security-role&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;role-name&gt;</span>admin<span class="jive-xml-tag">&lt;/role-name&gt;</span>
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;/security-role&gt;</span>

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>jboss-web.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>
<span class="jive-xml-tag">&lt;jboss-web&gt;</span>
&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;<span class="jive-xml-tag">&lt;security-domain&gt;</span>java:/jaas/my_ldap_security_domain<span class="jive-xml-tag">&lt;/security-domain&gt;</span>
<span class="jive-xml-tag">&lt;/jboss-web&gt;</span>

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>standalone.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;security-domain name="my_ldap_security_domain"&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;authentication&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;login-module code="LdapExtended" flag="required"&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="java.naming.provider.url" value="ldap://hml-ldap:389"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="java.naming.security.authentication" value="simple"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="bindDN" value="cn=admin,dc=company,dc=com,dc=br"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="bindCredential" value="pass"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="baseCtxDN" value="ou=users,dc=company,dc=com,dc=br"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="baseFilter" value="uid={0},dc=company,dc=com,dc=br"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="rolesCtxDN" value="ou=groups,dc=company,dc=com,dc=br"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="roleFilter" value="(member={1})"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="roleAttributeID" value="cn"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="throwValidateError" value="true"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;module-option name="searchScope" value="ONELEVEL_SCOPE"/&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/login-module&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/authentication&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/security-domain&gt;</span>


</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When a put username and password occur this exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>11:52:48,535 ERROR <a class="jive-link-external-small" href="org.jboss.security.authentication.JBossCachedAuthenticationManager" rel="nofollow">org.jboss.security.authentication.JBossCachedAuthenticationManager</a> (http-localhost-127.0.0.1-8080-1) Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:270) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.reflect.Method.invoke(Method.java:601) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.security.AccessController.doPrivileged(Native Method) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at javax.security.auth.login.LoginContext.login(LoginContext.java:594) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:449) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-infinispan-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:383) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-infinispan-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:371) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-infinispan-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:160) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-infinispan-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.web.security.JBossWebRealm.authenticate(JBossWebRealm.java:214) <a class="jive-link-external-small" href="" rel="nofollow">jboss-as-web-7.1.1.Final.jar:7.1.1.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:180) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) <a class="jive-link-external-small" href="" rel="nofollow">jboss-as-web-7.1.1.Final.jar:7.1.1.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) <a class="jive-link-external-small" href="" rel="nofollow">jbossweb-7.0.13.Final.jar:</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.Thread.run(Thread.java:722) <a class="" href="https://community.jboss.org/message/829547#829547#829547/rt.jar:1.7.0_11">Ldap configuration</a></p><p>Caused by: javax.naming.NamingException: PB00019: Processing Failed:Search of baseDN(ou=users,dc=company,dc=com,dc=br) found no matches</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.auth.spi.LdapExtLoginModule.bindDNAuthentication(LdapExtLoginModule.java:482) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.auth.spi.LdapExtLoginModule.createLdapInitContext(LdapExtLoginModule.java:438) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.auth.spi.LdapExtLoginModule.validatePassword(LdapExtLoginModule.java:312) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-4.0.7.Final.jar:4.0.7.Final</a></p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:267) <a class="jive-link-external-small" href="" rel="nofollow">picketbox-4.0.7.Final.jar:4.0.7.Final</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What is going on?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I changed some configurations and tried a lot but I don't achieve.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>There are other programs that connect in the same ldap and work fine. However in this case (with jboss) there are some problems, certainly in my configurations.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks!</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/829547#829547">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>