A while back i wrote i had some problems with the InitialLdapContext class. I added the following method to it, which seems to work for Open Exchange, but since the documentation of what the method should return for a LDAP name, i have no idea if it always is correct this way. Comments are welcome. public String getNameInNamespace () throws NamingException { String url = (String) myProps.get( PROVIDER_URL ); int i = url.lastIndexOf('/'); if (i == -1) return ""; else return url.substring(i + 1); } - Erwin