You have to talk tom into cutting off his finger and go in the front door and keep up the ruse until the general unlocks the chest to reward you, instead of sneaking in.