session optional pam_foreground.so
Near the end of /etc/pam.d/common-session. Since I am authenticating users against an LDAP, I have a sneaky suspicion why my problem occured:
- step 1. Installed Hoary a long time ago
- step 2. Make sure Hoary is able to talk to an LDAP to retrieve its users
- step 3. Upgrade to Breezy (also long time ago). During the upgrade the installer asks: "Dude! someone changed /etc/pam.d/common.session do you want to overwrite the file with the maintainer's version?" Hell no ... I spent a reasonable amount of time configuring pam.d to use pam_ldap (btw: this is an interesting read on how to setup LDAP and stuff) ... and that's when all my problems started.
- step 4. Upgrade to Dapper ... still b0rken but now I finally managed to fix it.