As the guards have told you, you need a gate pass to get through the gate.
Try talking to the little (scared) guy in the bar. He has some information on a gate pass.
Oh well, a ghost stole his gate pass.