Connecting the protective ground of a 3 phase AC motor
I am not sure where should I connect the protective earth of the
  motor?


The protective earth of your motor should go to exactly the same place as if it were directly connected to your incoming AC 3-ph supply - it must go to a reliable earth for safety reasons.