community.general/lib/ansible/plugins/connection
Sam Doran 9d4c0dc111 Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776)
* Catch SSH authentication errors and don't retry multiple times to prevent account lock out

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Subclass AnsibleAuthenticationFailure from AnsibleConnectionFailure

Use comparison rather than range() because it's much more efficient.

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Add tests

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Make paramiko_ssh connection plugin behave the same way

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Add changelog

Signed-off-by: Sam Doran <sdoran@redhat.com>
2019-01-23 11:32:25 -05:00
..
__init__.py Log device interaction and push labeled logs back to controller (#50028) 2018-12-21 10:31:43 -05:00
buildah.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
chroot.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
docker.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
funcd.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
httpapi.py Increase persistent command_timeout default value (#51056) 2019-01-21 10:50:52 +05:30
iocage.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
jail.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
kubectl.py fix: ansible_kubectl_ssl_ca_cert variable (#50217) 2018-12-23 09:59:34 +01:00
libvirt_lxc.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
local.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
lxc.py Correct defaults in lxc and lxd connection plugin 2018-06-19 15:45:18 -04:00
lxd.py Fix mixed output from ansible and lxd when using the lxd connection plugin (#45246) 2018-09-18 19:36:51 -04:00
napalm.py Increase persistent command_timeout default value (#51056) 2019-01-21 10:50:52 +05:30
netconf.py Fix connect_timeout config varaible in netconf connection (#51055) 2019-01-21 12:21:09 +05:30
network_cli.py Fix stray string in network_cli (#51142) 2019-01-22 09:07:04 -05:00
oc.py fix: ansible_kubectl_ssl_ca_cert variable (#50217) 2018-12-23 09:59:34 +01:00
paramiko_ssh.py Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
persistent.py Copy detailed logging to persistent.py so local can benefit, too. (#50614) 2019-01-07 15:46:31 -05:00
podman.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
psrp.py PSRP: Add support for reconnection retries (#49772) 2018-12-18 08:20:53 +10:00
qubes.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
saltstack.py Close all open filehandle (#50544) 2019-01-11 10:14:08 -05:00
ssh.py Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
winrm.py WinRM: Improve default logging to ansible.log (#49308) 2018-11-29 18:18:18 -08:00
zone.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00