82725

Worklight LDAP authentication using ApacheDS

Question:

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="(&amp;(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="(&amp;(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

Answer1:

Worklight provides a tutorial and sample covering "Using LDAP Login Module to authenticate users with LDAP server". I would recommend reading these resources and attempting to get your environment setup with the sample provided first:

Tutorial:

<a href="http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/08_05_Using_LDAP_Login_Module_to_authenticate_user_with_LDAP_server.pdf" rel="nofollow">http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/08_05_Using_LDAP_Login_Module_to_authenticate_user_with_LDAP_server.pdf</a>

Sample:

<a href="http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/LDAPLoginModuleProject.zip" rel="nofollow">http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/LDAPLoginModuleProject.zip</a>

Recommend

  • Worklight LDAP authentication using ApacheDS 2.0
  • IBM Worklight - Keep me logged in feature
  • Detect Worklight Server Hostname/IP Address from Worklight Client code
  • Worklight 6.1 and iOS 8
  • IBM Worklight 6.0 - App Center on iOS7 fails to open
  • How do you connect to an LDAP server using node-oracledb?
  • Spring Security 3.1.3 @EnableWebSecurity
  • How to add plugin dependencies to pom.xml
  • Giving security priviliege to a scheduler in Java EE 6
  • Is Android development possible on netbooks? [closed]
  • Entity Framework Core 1.0.1 add-migration
  • Recreate Apple Watch fitness tracker ‘progress’ bar - gradient on CAShapeLayer stroke
  • Success handler not working after Symfony2 login
  • Angular5 Service Worker update(SWUpdate) not detecting on firefox. Working on chrome
  • What is a structure of u-boot flash file? ( ARM versatile pb )
  • JPA/EclipseLink Returning No Results
  • Pyglet uses too much cpu
  • How can I tell Phusion Passenger which python to use?
  • jQuery timepicker 'Object does not support this property or method'
  • get_absolute_url with parameters
  • SPARQL date range
  • CORS with socket.io
  • mave 3.2 not able to access local nexus instance return 502 code
  • Magento site down due to mysql error General error: 1030 Got error -1 from storage engine
  • Cannot get the UserManager class
  • Tomcat memory Leak
  • Angular2 component view does not update on value change via method
  • CakePHP ACL tutorial initDB function warnings
  • Unable to decode certificate at client new X509Certificate2()
  • Needing to do .toArray() to get output of mongodb .find() on key name not value
  • Cannot resolve symbol 'MyApi'
  • Symfony2: How to get request parameter
  • ORA-29908: missing primary invocation for ancillary operator
  • SetUp method failed while running tests from teamcity
  • Understanding cpu registers
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?