Lines Matching refs:pam
648 pam_handle_t *pam = NULL; local
657 &PAM_chat, &isakmp_cfg_config.port_pool[port].pam)) != 0) {
658 if (isakmp_cfg_config.port_pool[port].pam == NULL) {
664 pam_strerror(isakmp_cfg_config.port_pool[port].pam,
669 pam = isakmp_cfg_config.port_pool[port].pam;
677 if ((error = pam_set_item(pam, PAM_RHOST, remote)) != 0) {
680 pam_strerror(pam, error));
686 error = pam_authenticate(pam, 0);
692 pam_strerror(pam, error));
696 if ((error = pam_acct_mgmt(pam, 0)) != 0) {
699 pam_strerror(pam, error));
703 if ((error = pam_setcred(pam, 0)) != 0) {
706 pam_strerror(pam, error));
716 pam_end(pam, error);
717 isakmp_cfg_config.port_pool[port].pam = NULL;