kravietz / pam_tacplus

TACACS+ protocol client library and PAM module in C. This PAM module support authentication, authorization (account management) and accounting (session management)performed using TACACS+ protocol designed by Cisco.
GNU Lesser General Public License v3.0
132 stars 100 forks source link

sshd not working #186

Open ayoubkefi opened 2 years ago

ayoubkefi commented 2 years ago

mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: set_tac_srv_addr: server 0 after copy [192.168.10.2:49] mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: set_tac_srv_key: server 0 key is null; address [192.168.10.2:49 mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: _pam_parse: server index 1 mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: 1 servers defined mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: server[0] { addr=192.168.10.2:49, key='****' } mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: tac_service='' mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: tac_protocol='' mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: tac_prompt='' mai 08 07:46:18 ubuntu sshd[2424]: PAM-tacplus: tac_login='' mai 08 07:46:18 ubuntu sshd[2424]: pam_sm_authenticate: called (pam_tacplus v1.6.1) mai 08 07:46:18 ubuntu sshd[2424]: pam_sm_authenticate: user [readwrite] obtained mai 08 07:46:18 ubuntu sshd[2424]: tacacs_get_password: called mai 08 07:46:18 ubuntu sshd[2424]: tacacs_get_password: obtained password mai 08 07:46:18 ubuntu sshd[2424]: pam_sm_authenticate: password obtained mai 08 07:46:18 ubuntu sshd[2424]: pam_sm_authenticate: tty [ssh] obtained mai 08 07:46:18 ubuntu sshd[2424]: pam_sm_authenticate: rhost [127.0.0.1] obtained mai 08 07:46:18 ubuntu sshd[2424]: pam_sm_authenticate: trying srv 0 mai 08 07:46:18 ubuntu ntpd[961]: error resolving pool 0.ubuntu.pool.ntp.org: Name or service not known (-2) mai 08 07:46:19 ubuntu sshd[2424]: tacacs status: TAC_PLUS_AUTHEN_STATUS_FAIL mai 08 07:46:19 ubuntu sshd[2424]: PAM-tacplus: auth failed: 2 mai 08 07:46:19 ubuntu sshd[2424]: pam_sm_authenticate: exit with pam status: 7 mai 08 07:46:19 ubuntu sshd[2424]: Failed password for invalid user readwrite from 127.0.0.1 port 36248 ssh2 mai 08 07:46:20 ubuntu sshd[2424]: Connection closed by invalid user readwrite 127.0.0.1 port 36248 [preauth]