Highlighted

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

snbaem

03-11-2017

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

Replies

Highlighted

snbaem

05-12-2017

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