1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

support GSSAPIAuth back

GSSAPIAuthentication has not been supported
due to PreferredAuthentications trick ( 2bdba17a85 )
This commit is contained in:
Keiichi Mori 2013-09-06 12:23:26 +09:00 committed by Michael Scherer
parent ff203dda45
commit 17c39b94a3

View file

@ -85,7 +85,7 @@ class Connection(object):
"-o", "PubkeyAuthentication=no"]
else:
self.common_args += ["-o", "KbdInteractiveAuthentication=no",
"-o", "PreferredAuthentications=hostbased,publickey",
"-o", "PreferredAuthentications=gssapi-with-mic,hostbased,publickey",
"-o", "PasswordAuthentication=no"]
if self.user != pwd.getpwuid(os.geteuid())[0]:
self.common_args += ["-o", "User="+self.user]