The second general meaning is a person who demands complete obedience and adherence to strict rules of conduct. The dominant partner in a BDSM relationship is a martinet.
More About Martinet
The noun 'martinet' is derived from the name of a cruelly rigid and demanding 17th Century French army officer.