cyrus-sasl setting PAM_AUTHTOK in PAM?

David van Geest davidv at
Wed Jul 29 18:03:54 EDT 2009

Never mind, looking at the SASL source clears it up and gives me a 
better understanding of what's going on (short answer to my question: 
no).  Now if I could only find why pam_ruby is segfaulting when I try to 
have a conversation with SASL....

David van Geest wrote:
> Hi,
> I'm trying to understand how cyrus-sasl interacts with PAM.  I'm 
> working on a PAM module that needs to read the password given to 
> SASL.  I can read the username fine using 
> pam_get_item(pam->ptr,PAM_USER,&c_item), but when I try it with 
> PAM_AUTHTOK my c_item is still null...  So before I get too deep I 
> want to make sure that what I'm trying to get even exists.
> Once cyrus-sasl has the password, does it set PAM_AUTHTOK?
> Thanks,
> -David
> -- 
> David van Geest
> Software Engineer
> SpinDance, Inc. <>

David van Geest
Software Engineer
SpinDance, Inc. <>

More information about the Cyrus-sasl mailing list