Lines Matching refs:retcode
162 int asme, ch, asthem, fastlogin, prio, i, retcode,
289 retcode = pam_start("su", user, &conv, &pamh);
290 if (retcode != PAM_SUCCESS) {
291 syslog(LOG_ERR, "pam_start: %s", pam_strerror(pamh, retcode));
292 errx(1, "pam_start: %s", pam_strerror(pamh, retcode));
302 retcode = pam_authenticate(pamh, 0);
303 if (retcode != PAM_SUCCESS) {
317 retcode = pam_get_item(pamh, PAM_USER, &v);
318 if (retcode == PAM_SUCCESS)
322 pam_strerror(pamh, retcode));
333 retcode = pam_acct_mgmt(pamh, 0);
334 if (retcode == PAM_NEW_AUTHTOK_REQD) {
335 retcode = pam_chauthtok(pamh,
337 if (retcode != PAM_SUCCESS) {
339 aerr = pam_strerror(pamh, retcode);
347 pam_strerror(pamh, retcode));
351 if (retcode != PAM_SUCCESS) {
354 pam_strerror(pamh, retcode)))
358 pam_strerror(pamh, retcode));
413 retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED);
414 if (retcode != PAM_SUCCESS) {
416 pam_strerror(pamh, retcode));
420 retcode = pam_open_session(pamh, 0);
421 if (retcode != PAM_SUCCESS) {
423 pam_strerror(pamh, retcode));