开发者

Is there any way to pass the password to pam_start() or pam_authenticate() and bypass the "conversation"?

开发者 https://www.devze.com 2023-03-03 11:53 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消