[Mod-auth-commit] mod_authn_pam/src mod_authn_pam.c,1.2,1.3
Brought to you by:
firechipmunk,
honx
From: <fir...@us...> - 2003-11-11 09:16:20
|
Update of /cvsroot/mod-auth/mod_authn_pam/src In directory sc8-pr-cvs1:/tmp/cvs-serv13173/src Modified Files: mod_authn_pam.c Log Message: added more PAM checking. still don't work :-/ Index: mod_authn_pam.c =================================================================== RCS file: /cvsroot/mod-auth/mod_authn_pam/src/mod_authn_pam.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mod_authn_pam.c 11 Nov 2003 08:53:07 -0000 1.2 --- mod_authn_pam.c 11 Nov 2003 09:16:17 -0000 1.3 *************** *** 164,169 **** for (i = 0; i < num_msg; i++) { /* initialize to safe values */ ! // response[i].resp_retcode = 0; ! // response[i].resp = 0; /* select response based on requested output style */ --- 164,169 ---- for (i = 0; i < num_msg; i++) { /* initialize to safe values */ ! response[i].resp_retcode = 0; ! response[i].resp = 0; /* select response based on requested output style */ *************** *** 183,186 **** --- 183,191 ---- response[i].resp_retcode = PAM_SUCCESS; break; + case PAM_ERROR_MSG: + case PAM_TEXT_INFO: + response[i].resp = strdup(""); + response[i].resp_retcode = PAM_SUCCESS; + break; default: if (response) *************** *** 245,249 **** pam_end(pamh, PAM_SUCCESS); ! // XXX: I don't like defaulting to GRANTED. I would like to reorganize the logic above sometime -chip return AUTH_GRANTED; } --- 250,254 ---- pam_end(pamh, PAM_SUCCESS); ! // XXX: I don't like defaulting to AUTH_GRANTED. I would like to reorganize the logic above sometime -chip return AUTH_GRANTED; } |