Lines Matching refs:pam_error
179 int pam_error; local
220 pam_error = pam_start (SERVICE_NAME, usr, &pam_conv_data, &pamh);
221 dbglog("---> PAM INIT Result = %d", pam_error);
222 ok = (pam_error == PAM_SUCCESS);
231 pam_error = pam_authenticate (pamh, PAM_SILENT);
232 if (pam_error == PAM_SUCCESS) {
238 if (pam_error == PAM_USER_UNKNOWN) {
243 dbglog("PAM Authentication failed: %d: %s", pam_error,
244 pam_strerror(pamh, pam_error));
245 SET_MSG(msg, (char *) pam_strerror (pamh, pam_error));
252 pam_error = pam_acct_mgmt (pamh, PAM_SILENT);
253 if (pam_error == PAM_SUCCESS) {
266 if (pam_error == PAM_USER_UNKNOWN) {
277 dbglog("PAM Account checks failed: %d: %s", pam_error,
278 pam_strerror(pamh, pam_error));
279 SET_MSG(msg, (char *) pam_strerror (pamh, pam_error));
286 pam_error = pam_open_session (pamh, PAM_SILENT);
287 if (pam_error == PAM_SUCCESS) {
292 SET_MSG(msg, (char *) pam_strerror (pamh, pam_error));
413 int pam_error = PAM_SUCCESS; in session_end() local
416 if (PAM_session) pam_error = pam_close_session (pamh, PAM_SILENT); in session_end()
418 pam_end (pamh, pam_error); in session_end()