Expand my Community achievements bar.

Ldap Identity Provider - Use property values from OSGi config in custom service/servlet

Avatar

Community Advisor

Hello All,

I am trying to utilize the configuration values provided in Apache Jackrabbit Oak Ldap Identity Provider. (Eg: Ldap Provider name, Server Host Name Bind DN etc..). So far I am unable to.

I created a custom servlet, once I hit the servlet and I am inside it, I want to get the values for LDAP Provider name for example. I am unable to import LDAPIdentityProvider or LDAPProviderConfig to see if they can fetch those values.

Please let me know if anyone can direct towards a correct way.

Thanks

Shubham

2 Replies

Avatar

Level 10

Are these values stored in the AEM JCR.

By the way - here is an AEM / ApacheDS LDAP article for anyone wanting to see an example of AEM and an LDAP solution -- Adobe Experience Manager Help | Configuring Adobe Experience Manager 6 to use Apache Directory Servi...

Avatar

Community Advisor

Sorry for delayed update. I was able to use javax.naming.ldap.LdapContext and use the search() method in that to get desired results.