// JNDI issue: must use the name object here rather then string,
// otherwise more backslashes are needed
// works with both javax.naming.ldap.LdapName or
// org.apache.directory.shared.ldap.name.DN
DN ldapRdn = new DN( rdn );
ctx.createSubcontext( ldapRdn, attrs );
SearchControls sctls = new SearchControls();
sctls.setSearchScope( SearchControls.SUBTREE_SCOPE );