%PDF- %PDF-
Direktori : /lib/python3/dist-packages/paramiko/__pycache__/ |
Current File : //lib/python3/dist-packages/paramiko/__pycache__/ssh_gss.cpython-312.pyc |
� �ec�p � � � d Z ddlZddlZddlZdZdZdZ ddlZ eed� rej dk( rdZej fZn8dZej j ej j j fZddlmZ ddlmZ dd lmZ dd�Z G d� de� Z G d� de� Zedk reZ G d� de� Z! G d� de� Z"y# eef$ r/ ddlZddlZddlZd Zej* fZn# e$ r d ZdZY nw xY wY �w xY w)z� This module provides GSS-API / SSPI authentication as defined in :rfc:`4462`. .. note:: Credential delegation is not supported in server mode. .. seealso:: :doc:`/api/kex_gss` .. versionadded:: 1.15 � NT� � __title__z python-gssapi�MIT�PYTHON-GSSAPI-NEW�SSPIF)�MSG_USERAUTH_REQUEST)�SSHException)�__version_info__c � � t dk( rt | |� S t dk( rt | |� S t dk( rt j dk( rt | |� S t d� �)a� Provide SSH2 GSS-API / SSPI authentication. :param str auth_method: The name of the SSH authentication mechanism (gssapi-with-mic or gss-keyex) :param bool gss_deleg_creds: Delegate client credentials or not. We delegate credentials by default. :return: Either an `._SSH_GSSAPI_OLD` or `._SSH_GSSAPI_NEW` (Unix) object or an `_SSH_SSPI` (Windows) object :rtype: object :raises: ``ImportError`` -- If no GSS-API / SSPI module could be imported. :see: `RFC 4462 <http://www.ietf.org/rfc/rfc4462.txt>`_ :note: Check for the available API and return either an `._SSH_GSSAPI_OLD` (MIT GSSAPI using python-gssapi package) object, an `._SSH_GSSAPI_NEW` (MIT GSSAPI using gssapi package) object or an `._SSH_SSPI` (MS SSPI) object. If there is no supported API available, ``None`` will be returned. r r r �ntz)Unable to import a GSS-API / SSPI module!)�_API�_SSH_GSSAPI_OLD�_SSH_GSSAPI_NEW�os�name� _SSH_SSPI�ImportError)�auth_method�gss_deleg_credss �2/usr/lib/python3/dist-packages/paramiko/ssh_gss.py�GSSAuthr N sX � �, �u�}��{�O�<�<� �$� $��{�O�<�<� ���B�G�G�t�O���o�6�6��E�F�F� c �<