pam-list-request@xxxxxxxxxx wrote:
To Ludvic Ericson: Looking at your conversion function i found you set the global return code for the conversation function itself but forget to set the return code for each message. Here is a snippet of a working conversation function: switch (msgv[i]->msg_style) { case PAM_PROMPT_ECHO_ON: // Echo on; Username rsp[i].resp = strdup(userinfo->username); rsp[i].resp_retcode = PAM_SUCCESS; break; case PAM_PROMPT_ECHO_OFF: // Echo off; Password rsp[i].resp = strdup(userinfo->password); rsp[i].resp_retcode = PAM_SUCCESS; break;I guess, if you had used 'calloc' instead of 'malloc' to create the response structure, this missing link would have never shown up, because PAM_SUCCESS == 0 ! So, be happy you found it. Good Luck! Andreas -- Dr.-Ing. Andreas Schindler Alpha Zero One Computersysteme GmbH Frankfurter Str. 141 63303 Dreieich Telefon 06103-57187-21 Telefax 06103-373245 schindler@xxxxxx www.az1.de Alpha Zero One Computersysteme GmbH, Brandeniusstr. 3, 44265 Dortmund HRB 11089 Amtsgericht Dortmund, Geschäftsführer : Klaus-Jürgen Koke, Joachim Carle |
_______________________________________________ Pam-list mailing list Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list