diff options
Diffstat (limited to 'pam_tacplus.c')
-rw-r--r-- | pam_tacplus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pam_tacplus.c b/pam_tacplus.c index b76b317..600331b 100644 --- a/pam_tacplus.c +++ b/pam_tacplus.c @@ -169,7 +169,7 @@ int _pam_account(pam_handle_t *pamh, int argc, const char **argv, status = PAM_SESSION_ERR; for(srv_i = 0; srv_i < tac_srv_no; srv_i++) { - tac_fd = tac_connect_single(tac_srv[srv_i].addr, tac_srv[srv_i].key); + tac_fd = tac_connect_single(tac_srv[srv_i].addr, tac_srv[srv_i].key, NULL); if (tac_fd < 0) { _pam_log(LOG_WARNING, "%s: error sending %s (fd)", __FUNCTION__, typemsg); @@ -268,7 +268,7 @@ int pam_sm_authenticate (pam_handle_t * pamh, int flags, if (ctrl & PAM_TAC_DEBUG) syslog(LOG_DEBUG, "%s: trying srv %d", __FUNCTION__, srv_i ); - tac_fd = tac_connect_single(tac_srv[srv_i].addr, tac_srv[srv_i].key); + tac_fd = tac_connect_single(tac_srv[srv_i].addr, tac_srv[srv_i].key, NULL); if (tac_fd < 0) { _pam_log(LOG_ERR, "connection failed srv %d: %m", srv_i); continue; @@ -489,7 +489,7 @@ int pam_sm_acct_mgmt (pam_handle_t * pamh, int flags, if(tac_protocol != NULL && tac_protocol[0] != '\0') tac_add_attrib(&attr, "protocol", tac_protocol); - tac_fd = tac_connect_single(active_server.addr, active_server.key); + tac_fd = tac_connect_single(active_server.addr, active_server.key, NULL); if(tac_fd < 0) { _pam_log (LOG_ERR, "TACACS+ server unavailable"); if(arep.msg != NULL) |