Description
There appears to be no particular provision in the spec to make sure that proxied contexts returned from the OSGi InitialContextFactoryBuilder should be instances of LdapContext. This may likely be an omission.
Typical exception:
javax.naming.NotContextException: Expected an LdapContext object.
at javax.naming.ldap.InitialLdapContext.getDefaultInitLdapContext(InitialLdapContext.java:109)
at javax.naming.ldap.InitialLdapContext.setRequestControls(InitialLdapContext.java:132)
...