Postby jch » Wed Mar 14, 2007 10:11 am
Well, there is, but it's not pretty at the moment.
You can use pam_listfile to block a user, but you'll also need om_om2authid to get a PAM_USER name that's useful for putting in a pam_listfile command.
Basically you want to add "auth required om_om2authid" and "auth required pam_listfile ..." lines to ~/sys/pam.d/ual.remote and you can use that to block access for specified users.
Of course, that will also stop them coming in through MAPI, but that's probably what you want.
We really ought to have a separate PAM file for IMAP, but it's not practicable to do that until I've finished re-factoring the PAM stuff and brought it screaming and kicking into the 21st century.
jch