// create the new entry as the admin user
adminContext.createSubcontext( entryRdn, testEntry );
LdapDN userName = new LdapDN( "uid=" + uid + ",ou=users,ou=system" );
DirContext userContext = getContextAs( userName, password );
userContext.rename( entryRdn, newRdn );
// delete the renamed context as the admin user
adminContext.destroySubcontext( newRdn );
return true;
}