You can get it to work but you have to twiddle with the code a little bit.
Quoting f...@itu.dk:
Why does Cyrus-SASL not populate the PAM environment items (such as PAM_RHOST) when using the PAM authentication mechanism ? Am I missing something? - Frederik