If you like eggplant, you'll be sure to enjoy this dish. (If you don't like eggplant, try substituting zucchini, it will be delicious!) There are a myriad of tasty possibilities here: add olives, anchovies, roasted peppers, crumbled Italian sausage, or different herbs. If your tomatoes are lackluster, add other zesty items to compensate, or substitute a good-quality canned tomato, such as San Marzano.
Place the eggplant in a colander and lightly salt, tossing to coat. Let the eggplant drain in the sink for 30 minutes to decrease any potential bitterness. Pat the eggplant dry with paper towels and set aside.
Combine the unpeeled garlic cloves with 1 cup water in a small pan. Bring to a boil over high heat and cook for 5 minutes. Drain and allow the garlic to cool. When cool enough to handle, remove and discard the skins, and mash the cloves into a paste.
Heat half of the olive oil in a large, heavy-bottomed skillet, preferably nonstick, over medium-high heat. When the oil is hot, add half of the eggplant and cook, stirring occasionally, until the eggplant is just tender and golden. Set the first batch aside and continue cooking the remaining eggplant in the remaining oil.
Bring a large pot of water to a boil over high heat. Add salt and the ziti, and cook until the pasta is al dente.
Meanwhile, combine the garlic, fresh and sun-dried tomatoes, and the chicken stock in a large skillet and cook over medium heat, stirring frequently, for 3 to 4 minutes, or until the garlic is fragrant and the tomatoes are hot. Stir in the basil and the reserved eggplant, and cook until the mixture is warmed through. Season to taste with salt and pepper.
Drain the pasta and toss it with the eggplant-tomato mixture. Transfer the ziti to a warm platter and sprinkle with the cheese. Serve hot or at room temperature.