I'm reminded of the Star Trek Original Series episode, Patterns of Force.
A Star Fleet captain creates a Nazi society on a foreign planet, trying to be efficient and benevolent. However, you can't contain the evil, and he becomes a drugged puppet leader.