Lines Matching refs:pam
645 pam_handle_t *pam = NULL;
654 &PAM_chat, &isakmp_cfg_config.port_pool[port].pam)) != 0) {
655 if (isakmp_cfg_config.port_pool[port].pam == NULL) {
661 pam_strerror(isakmp_cfg_config.port_pool[port].pam,
666 pam = isakmp_cfg_config.port_pool[port].pam;
674 if ((error = pam_set_item(pam, PAM_RHOST, remote)) != 0) {
677 pam_strerror(pam, error));
683 error = pam_authenticate(pam, 0);
689 pam_strerror(pam, error));
693 if ((error = pam_acct_mgmt(pam, 0)) != 0) {
696 pam_strerror(pam
700 if ((error = pam_setcred(pam, 0)) != 0) {
703 pam_strerror(pam, error));
713 pam_end(pam, error);
714 isakmp_cfg_config.port_pool[port].pam = NULL;