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.
Login module:
<className>com.worklight.core.auth.ext.LdapLoginModule</className>
<parameter name="ldapProviderUrl" value="ldap://localhost:10389"/>
<parameter name="ldapTimeoutMs" value="2000"/>
<parameter name="ldapSecurityAuthentication" value="simple"/>
<parameter name="validationType" value="searchPattern"/>
<parameter name="ldapSecurityPrincipalPattern" value="{username}"/>
<parameter name="ldapSearchFilterPattern" value="(&(uid={username})(objectclass=inetOrgPerson)(memberof=CN=Raj,OU=users,OU=system,DC=example,DC=com))"/>
<parameter name="ldapSearchBase" value="dc=example,dc=com"/>
</loginModule>
LDAPregistry :
<className>com.worklight.core.auth.ext.LdapLoginModule</className>
<parameter name="ldapProviderUrl" value="ldap://localhost:10389"/>
<parameter name="ldapTimeoutMs" value="2000"/>
<parameter name="ldapSecurityAuthentication" value="simple"/>
<parameter name="validationType" value="searchPattern"/>
<parameter name="ldapSecurityPrincipalPattern" value="{username}"/>
<parameter name="ldapSearchFilterPattern" value="(&(uid={username})(objectclass=inetOrgPerson)(memberof=CN=Raj,OU=users,OU=system,DC=example,DC=com))"/>
<parameter name="ldapSearchBase" value="dc=example,dc=com"/>
</loginModule>
Even after feeding the correct user password as configured in Apache. Challenge handler is still not doing authentication success for me.
Thanks