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.
I guess that means you can't get it yourself, unless you're the ghost, that is.
You'll need to find a ghost disguise.