Is there any way to pass the password to pam_start() or pam_authenticate() and bypass the "conversation"?
pam_start() takes a parameter that is a structure ( http://linux.die.net/man/3/pam_conv ) where you can set a callback method for getting the password. Since I already have the password before my call to pam_start, I was wondering if there was a way to pass that information instead of setting up 开发者_如何学Gothe callback.
Apparently, there is not a way.
But see my work-around at https://stackoverflow.com/a/5970078/55944
精彩评论