[Bug 436852] gdm calls pam functions in the wrong order