Home
last modified time | relevance | path

Searched refs:pamh (Results 1 – 6 of 6) sorted by relevance

/external/ppp/pppd/
Dsession.c113 static pam_handle_t *pamh = NULL; variable
220 pam_error = pam_start (SERVICE_NAME, usr, &pam_conv_data, &pamh);
225 ok = (pam_set_item(pamh, PAM_TTY, ttyName) == PAM_SUCCESS) &&
226 (pam_set_item(pamh, PAM_RHOST, ifname) == PAM_SUCCESS);
231 pam_error = pam_authenticate (pamh, PAM_SILENT);
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);
278 pam_strerror(pamh, pam_error));
279 SET_MSG(msg, (char *) pam_strerror (pamh, pam_error));
[all …]
/external/libcap/pam_cap/
Dpam_cap.c280 int pam_sm_authenticate(pam_handle_t *pamh, int flags, in pam_sm_authenticate() argument
290 retval = pam_get_user(pamh, &pcs.user, NULL); in pam_sm_authenticate()
298 D(("pam_get_user failed: %s", pam_strerror(pamh, retval))); in pam_sm_authenticate()
334 int pam_sm_setcred(pam_handle_t *pamh, int flags, in pam_sm_setcred() argument
348 retval = pam_get_item(pamh, PAM_USER, (const void **)&pcs.user); in pam_sm_setcred()
Dtest_pam_cap.c32 int pam_get_user(pam_handle_t *pamh, const char **user, const char *prompt) { in pam_get_user() argument
40 int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item) { in pam_get_item() argument
/external/libcups/scheduler/
Dauth.c564 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()
[all …]
/external/openssh/
Dauth-pam.c260 pam_getenvlist(pam_handle_t *pamh) in pam_getenvlist() argument
273 pam_putenv(pam_handle_t *pamh, const char *name_value) in pam_putenv() argument
288 sshpam_chauthtok_ruid(pam_handle_t *pamh, int flags) in sshpam_chauthtok_ruid() argument
296 result = pam_chauthtok(pamh, flags); in sshpam_chauthtok_ruid()
/external/libcups/tools/
Dippeveprinter.c747 pam_handle_t *pamh; /* PAM authentication handle */ 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()
804 pam_end(pamh, 0); 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()
811 pam_end(pamh, 0); in authenticate_request()
817 pam_end(pamh, PAM_SUCCESS); in authenticate_request()