title: Worklight LDAP authentication using ApacheDS
body: <p>I am trying to use LDAP authentication in Worklight using Apache DS. I have created LDAP registry in server.xml and also edited the auth config xml file. But, still I am not able to authenticate users from my WL client.</p>
  
  <p>Login module:</p>
  
  <pre><code>&lt;className&gt;com.worklight.core.auth.ext.LdapLoginModule&lt;/className&gt;
      &lt;parameter name="ldapProviderUrl" value="ldap://localhost:10389"/&gt;
      &lt;parameter name="ldapTimeoutMs" value="2000"/&gt;
      &lt;parameter name="ldapSecurityAuthentication" value="simple"/&gt;
      &lt;parameter name="validationType" value="searchPattern"/&gt;
      &lt;parameter name="ldapSecurityPrincipalPattern" value="{username}"/&gt;
      &lt;parameter name="ldapSearchFilterPattern" value="(&amp;amp;(uid={username})(objectclass=inetOrgPerson)(memberof=CN=Raj,OU=users,OU=system,DC=example,DC=com))"/&gt;                        
      &lt;parameter name="ldapSearchBase" value="dc=example,dc=com"/&gt;
  &lt;/loginModule&gt;
  </code></pre>
  
  <p>LDAPregistry :</p>
  
  <pre><code>&lt;className&gt;com.worklight.core.auth.ext.LdapLoginModule&lt;/className&gt;
      &lt;parameter name="ldapProviderUrl" value="ldap://localhost:10389"/&gt;
      &lt;parameter name="ldapTimeoutMs" value="2000"/&gt;
      &lt;parameter name="ldapSecurityAuthentication" value="simple"/&gt;
      &lt;parameter name="validationType" value="searchPattern"/&gt;
      &lt;parameter name="ldapSecurityPrincipalPattern" value="{username}"/&gt;
      &lt;parameter name="ldapSearchFilterPattern" value="(&amp;amp;(uid={username})(objectclass=inetOrgPerson)(memberof=CN=Raj,OU=users,OU=system,DC=example,DC=com))"/&gt;                        
      &lt;parameter name="ldapSearchBase" value="dc=example,dc=com"/&gt;
  &lt;/loginModule&gt;
  </code></pre>
  
  <p>Even after feeding the correct user password as configured in Apache. Challenge handler is still not doing authentication success for me. </p>
  
  <p>Thanks </p>