Home
last modified time | relevance | path

Searched refs:pamerr (Results 1 – 2 of 2) sorted by relevance

/external/libcups/scheduler/
Dauth.c565 int pamerr; /* PAM error code */ in cupsdAuthorize() local
582 pamerr = pam_start("cups", username, &pamdata, &pamh); in cupsdAuthorize()
583 if (pamerr != PAM_SUCCESS) 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()
592 if (pamerr != PAM_SUCCESS) 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()
598 if (pamerr != PAM_SUCCESS) in cupsdAuthorize()
599 …con, CUPSD_LOG_WARN, "pam_set_item(PAM_TTY) returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); in cupsdAuthorize()
[all …]
/external/libcups/tools/
Dippeveprinter.c748 int pamerr; /* PAM error code */ in authenticate_request() local
795 if ((pamerr = pam_start(PAMService, data.username, &pamdata, &pamh)) != PAM_SUCCESS) in authenticate_request()
797 fprintf(stderr, "pam_start() returned %d (%s)\n", pamerr, pam_strerror(pamh, pamerr)); in authenticate_request()
801 if ((pamerr = pam_authenticate(pamh, PAM_SILENT)) != PAM_SUCCESS) in authenticate_request()
803 fprintf(stderr, "pam_authenticate() returned %d (%s)\n", pamerr, pam_strerror(pamh, pamerr)); in authenticate_request()
808 if ((pamerr = pam_acct_mgmt(pamh, PAM_SILENT)) != PAM_SUCCESS) in authenticate_request()
810 fprintf(stderr, "pam_acct_mgmt() returned %d (%s)\n", pamerr, pam_strerror(pamh, pamerr)); in authenticate_request()