Actuals,
You got the right film, but the wrong scenario. Kevin McCarthy was the General who arrived unannounced at the base and failed it on an ORI. Rock Hudson was the Colonel who was sent to Carmody AFB to clear up the mess.
Interestingly, the main screenwriter of Gathering of Eagles was the same person who wrote 12 O'Clock High.