Hi Monika,Osgi is an JNDI implementation does not interact well with
factory DirContext or LdapContext for casting it back. You can find
couple of issue in web on this with various osgi providers. To over come
this make use of enhanced LDAP API which replaces JNDI and the existing
LDAP API like "schema aware" API with convenient ways to access any LDAP
server. Thanks,