This pluggable authentication module (PAM) which can run scripts upon login looks cool:
as does this:
Unfortunately, I'm having lots of problems with libpam-http. I can't get ssl to work at all. :-(
Ah wait - I think this is what I'm really looking for:
Direct download link:
DOH!:
PAM [error: /lib/security/pam_script.so: undefined symbol: pam_getenv
UPDATE: Why was I taking notes on these libraries? See here: