Lines Matching refs:pamh
564 pam_handle_t *pamh; /* PAM authentication handle */ in cupsdAuthorize() local
582 pamerr = pam_start("cups", username, &pamdata, &pamh); in cupsdAuthorize()
585 …ogClient(con, CUPSD_LOG_ERROR, "pam_start() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); in cupsdAuthorize()
591 pamerr = pam_set_item(pamh, PAM_RHOST, con->http->hostname); in cupsdAuthorize()
593 …n, CUPSD_LOG_WARN, "pam_set_item(PAM_RHOST) returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); in cupsdAuthorize()
597 pamerr = pam_set_item(pamh, PAM_TTY, "cups"); in cupsdAuthorize()
599 …con, CUPSD_LOG_WARN, "pam_set_item(PAM_TTY) returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); in cupsdAuthorize()
603 pamerr = pam_authenticate(pamh, PAM_SILENT); in cupsdAuthorize()
606 …t(con, CUPSD_LOG_ERROR, "pam_authenticate() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); in cupsdAuthorize()
607 pam_end(pamh, 0); in cupsdAuthorize()
612 pamerr = pam_setcred(pamh, PAM_ESTABLISH_CRED | PAM_SILENT); in cupsdAuthorize()
614 …gClient(con, CUPSD_LOG_WARN, "pam_setcred() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); in cupsdAuthorize()
617 pamerr = pam_acct_mgmt(pamh, PAM_SILENT); in cupsdAuthorize()
620 …ient(con, CUPSD_LOG_ERROR, "pam_acct_mgmt() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); in cupsdAuthorize()
621 pam_end(pamh, 0); in cupsdAuthorize()
625 pam_end(pamh, PAM_SUCCESS); in cupsdAuthorize()