From: Derrick J Brashear (shadow at andrew dot cmu dot edu)
Date: Mon Nov 08 2004 - 15:17:41 EST
On Nov 8, 2004, at 1:08 PM, Jason DiCioccio wrote:
> In my PAM debug log, I'm getting the message "Authentication
> successful" when I enter in a correct user/pass pair (using smtptest).
> However, sendmail is giving me an authentication failure (-13). I
> do not get this same error if I change the pam config so that sendmail
> uses pam_pwdb.so instead. However, I cannot figure out why, if SASL
> is receiving a PAM_SUCCESS return code from pam_sm_authenticate, and
> it's not calling any of the other functions in pam_alakazam, it would
> return a fail code.
I'd guess you need a setcred function that returns success; setcred is
part of the auth hook.