Skip to content

Wrong ticket error is misleading #2

@muhgatus

Description

@muhgatus

Assume that you have 2 kerberos realms in place without a cross realm trust. You have a ticket for Realm A but you connect to a host located in Realm B.

This error occoures:

No handlers could be found for logger "paramiko.transport"
Traceback (most recent call last):
  File "./sshClient", line 22, in <module>
    gss_kex=True,
  File "/usr/local/lib/python2.6/dist-packages/paramiko-1.12.1-py2.6.egg/paramiko/client.py", line 371, in connect
    look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
  File "/usr/local/lib/python2.6/dist-packages/paramiko-1.12.1-py2.6.egg/paramiko/client.py", line 590, in _auth
    raise saved_exception
TypeError: decode() takes no keyword arguments

There should be a better Exception for this :)

If you have the correct ticket in your cred cache it works, so there is no general fault, but a misleading Exception is raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions