replace() should replace the ldap entry at the location defined by the groovy object, with the groovy object.