summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSebastian Deiss <s.deiss@science-computing.de>2014-02-27 09:27:00 +0100
committerSebastian Deiss <s.deiss@science-computing.de>2014-02-27 09:27:00 +0100
commit2e2324b47b3dacb09ee945728ae3ea16ab4f9ff7 (patch)
treec3ee34a2b93c8438c1890a24bf38129351321c99
parent7c3e505d92d804c7cd5f376cab297bf3552f5aa3 (diff)
Add userauth-banner handling for GSS-API authentication
Previously GSS-API authentication (gssapi-with-mic) failed if the server sent a userauth-banner.
-rw-r--r--paramiko/auth_handler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py
index 81a7946d..ee5fb174 100644
--- a/paramiko/auth_handler.py
+++ b/paramiko/auth_handler.py
@@ -241,6 +241,9 @@ class AuthHandler (object):
# send the supported GSSAPI OIDs to the server
self.transport._send_message(m)
ptype, m = self.transport.packetizer.read_message()
+ if ptype == MSG_USERAUTH_BANNER:
+ self._parse_userauth_banner(m)
+ ptype, m = self.transport.packetizer.read_message()
if ptype == MSG_USERAUTH_GSSAPI_RESPONSE:
"""
Read the mechanism selected by the server.