Didn't DS9 shoot this script with Brian Keith guest-starring?
Anyway, other than the kids it's hard to tell this script apart from a lot of what TAS did.
In answer to your question, no, DS9 did the reverse story; instead of getting him to let others come to his habitable moon, they had to get him to leave because they needed to make the moon uninhabitable for some reason(which I don't remember).