Yep, that happened to me too. I passed a Dex check to talk the the guard before he started to attack, but I didn't have the option to use the password. I did previously save the guys in the cave from the gnolls and received the pass phrase.