Python expect (pexpect) timeout with Kerberos-based authentication in Ansible Automation Platform

Solution Verified - Updated -

Issue

  • When try to connect to Windows machine with Kerberos authentication fails with a pexpect timeout:

    raise TIMEOUT(msg)\nTIMEOUT: Timeout exceeded.\n<pexpect.pty_spawn.spawn object at 0x7fdfff321dd0>\ncommand: /bin/kinit\nargs: [u'/bin/kinit', u'USER@CUSTOMER.DOMAIN']\nbuffer (last 100 chars): ' \\r\\n'\nbefore (last 100 chars): ' \\r\\n'\nafter: <class 'pexpect.exceptions.TIMEOUT'>\nmatch: None\nmatch_index: None\nexitstatus: None\nflag_eof: False\npid: 27\nchild_fd: 12\nclosed: False\ntimeout: 60\ndelimiter:
    

Environment

  • Ansible Automation Platform
    • 1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content