I had to sign a non-disparagement agreement (also with unlimited time frame) when I left my latest company. I was lead developer there, not sure if the position matters.
I signed because I really don't have anything negative to say about that company. Your situation maybe is different.
I hope this was in exchange for severance pay, or some other benefit? If not, then the best option is usually to take the contract, promise to review it carefully, and do nothing.