What determines the syntactic case of a mudāf?

Iḍāfah to Yāʾ al-Mutakallim and the Six Nouns