The only option to camp in Yosemite is to search Recreation.gov frequently; you might find a cancellation in a campground that accepts reservations in or near Yosemite. Do not arrive at Yosemite without a reservation—you'll probably have to leave the park to sleep.