Skip to main content

Python GSSAPI Wrapper

Project description

https://badge.fury.io/gh/pythongssapi%2Fpython-gssapi.svg https://badge.fury.io/py/gssapi.svg

Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should also be useable with other GSSAPI mechanisms.

Documentation for the latest released version (including pre-release versions) can be found at https://pythongssapi.github.io/python-gssapi/stable.

Documentation for the latest commit on main can be found at https://pythongssapi.github.io/python-gssapi/latest.

Requirements

Basic

  • A working implementation of GSSAPI (such as from MIT Kerberos) which supports delegation and includes header files

  • a C compiler (such as GCC)

  • Python 3.7+ (older releases support older versions, but are unsupported)

  • the decorator python package

Compiling from Scratch

To compile from scratch, you will need Cython >= 0.29.29 which is automatically installed by pip in an isolated build virtual environment.

For Running the Tests

  • the k5test package

To install test dependencies using pip:

$ pip install -r test-requirements.txt # Optional, for running test suite

Installation

Easy Way

$ pip install gssapi

From the Git Repo

After being sure to install all the requirements,

$ git clone https://github.com/pythongssapi/python-gssapi.git
$ pip install .

Tests

The tests for for Python-GSSAPI live in gssapi.tests. In order to run the tests, you must have an MIT Kerberos installation (including the KDC). The tests create a self-contained Kerberos setup, so running the tests will not interfere with any existing Kerberos installations.

Structure

Python-GSSAPI is composed of two parts: a low-level C-style API which thinly wraps the underlying RFC 2744 methods, and a high-level, Pythonic API (which is itself a wrapper around the low-level API). Examples may be found in the examples directory.

Low-Level API

The low-level API lives in gssapi.raw. The methods contained therein are designed to match closely with the original GSSAPI C methods. All relevant methods and classes may be imported directly from gssapi.raw. Extension methods will only be imported if they are present. The low-level API follows the given format:

  • Names match the RFC 2744 specification, with the gssapi_ prefix removed

  • Parameters which use C int constants as enums have enum.IntEnum classes defined, and thus may be passed either the enum members or integers

  • In cases where a specific constant is passed in the C API to represent a default value, None should be passed instead

  • In cases where non-integer constants would be used in the API (i.e. OIDs), enum-like objects have been defined containing named references to values specified in RFC 2744.

  • Major and minor error codes are returned by raising gssapi.raw.GSSError. The major error codes have exceptions defined in in gssapi.raw.exceptions to make it easier to catch specific errors or categories of errors.

  • All other relevant output values are returned via named tuples.

High-Level API

The high-level API lives directly under gssapi. The classes contained in each file are designed to provide a more Pythonic, Object-Oriented view of GSSAPI. The exceptions from the low-level API, plus several additional exceptions, live in gssapi.exceptions. The rest of the classes may be imported directly from gssapi. Only classes are exported by gssapi – all functions are methods of classes in the high-level API.

Please note that QoP is not supported in the high-level API, since it has been deprecated.

Extensions

In addition to RFC 2743/2744, Python-GSSAPI also has support for:

  • RFC 4178 (GSS-API Negotiation Mechanism)

  • RFC 5587 (Extended GSS Mechanism Inquiry APIs)

  • RFC 5588 (GSS-API Extension for Storing Delegated Credentials)

  • RFC 5801 (GSS-API SASL Extensions)

  • (Additional) Credential Store Extension

  • Services4User

  • Credentials import-export

  • RFC 6680 (GSS-API Naming Extensions)

  • DCE and IOV MIC extensions

  • acquire_cred_with_password and add_cred_with_password

  • GGF Extensions

  • Kerberos specific extensions

The Team

(GitHub usernames in parentheses)

  • Jordan Borean (@jborean93) - current maintainer and developer

  • Simo Sorce (@simo5) - developer

  • Robbie Harwood (@frozencemetery) - author emeritus

  • Solly Ross (@directxman12) - author emeritus

  • Hugh Cole-Baker (@sigmaris) - author emeritus

Get Involved

We welcome new contributions in the form of Issues and Pull Requests on Github. If you would like to join our discussions, you can find us on libera.chat IRC, channel #python-gssapi.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gssapi-1.8.2.tar.gz (94.3 kB view details)

Uploaded Source

Built Distributions

gssapi-1.8.2-cp311-cp311-win_amd64.whl (674.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

gssapi-1.8.2-cp311-cp311-win32.whl (610.3 kB view details)

Uploaded CPython 3.11 Windows x86

gssapi-1.8.2-cp311-cp311-macosx_11_0_arm64.whl (547.5 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

gssapi-1.8.2-cp311-cp311-macosx_10_9_x86_64.whl (597.2 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

gssapi-1.8.2-cp310-cp310-win_amd64.whl (676.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

gssapi-1.8.2-cp310-cp310-win32.whl (609.9 kB view details)

Uploaded CPython 3.10 Windows x86

gssapi-1.8.2-cp310-cp310-macosx_11_0_arm64.whl (550.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

gssapi-1.8.2-cp310-cp310-macosx_10_9_x86_64.whl (596.2 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

gssapi-1.8.2-cp39-cp39-win_amd64.whl (705.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

gssapi-1.8.2-cp39-cp39-win32.whl (633.7 kB view details)

Uploaded CPython 3.9 Windows x86

gssapi-1.8.2-cp39-cp39-macosx_11_0_arm64.whl (568.6 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

gssapi-1.8.2-cp39-cp39-macosx_10_9_x86_64.whl (624.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

gssapi-1.8.2-cp38-cp38-win_amd64.whl (707.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

gssapi-1.8.2-cp38-cp38-win32.whl (634.2 kB view details)

Uploaded CPython 3.8 Windows x86

gssapi-1.8.2-cp38-cp38-macosx_11_0_arm64.whl (561.6 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

gssapi-1.8.2-cp38-cp38-macosx_10_9_x86_64.whl (612.3 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

gssapi-1.8.2-cp37-cp37m-win_amd64.whl (702.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

gssapi-1.8.2-cp37-cp37m-win32.whl (626.3 kB view details)

Uploaded CPython 3.7m Windows x86

gssapi-1.8.2-cp37-cp37m-macosx_10_9_x86_64.whl (604.4 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file gssapi-1.8.2.tar.gz.

File metadata

  • Download URL: gssapi-1.8.2.tar.gz
  • Upload date:
  • Size: 94.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2.tar.gz
Algorithm Hash digest
SHA256 b78e0a021cc91158660e4c5cc9263e07c719346c35a9c0f66725e914b235c89a
MD5 310b5e6bd7aeda235b877487c9eb1fed
BLAKE2b-256 27715110b5af9354e5eb66a30dbaa6bac2a5e3013057120544830a849dbd087b

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 674.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8b4c1c664635153b0055a08bf30ec1552c8aa064a76f565d7905057500f334b3
MD5 f43c27ed2eed0a3e529bf63dd1a85389
BLAKE2b-256 ad883525602008b60ec3f2f3b2191f709a98542d2f4c7bedaecb68d590f0bb64

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp311-cp311-win32.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp311-cp311-win32.whl
  • Upload date:
  • Size: 610.3 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4aaed04439aed8eba525ea44dd7219ecd97d520254320e66ac53d9ae4acb8fe5
MD5 02484dfcc297ffaa06b2a556e4a8e02f
BLAKE2b-256 cb460edae670477ea32244858ed4b6970dff8dc86b7cb549b840a0340ec6a98f

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67c85758a6b40042509c96bb00d0873a501491453ad5b0da88dbfa9343c8ffea
MD5 01ea79d5749c27158a3591b452d53c2f
BLAKE2b-256 d2d2836db96140de5152dc014fd9d83f0cf40f07160de3c645c0e6a2cb76b5a3

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 47d69b1fd3bd0764d7a14500c6cbd8fd08198ee6e1737048a01ad7024d57f67d
MD5 88a82480b5ac82b2190de2b569e87a6b
BLAKE2b-256 b470be4e9736ca7d67afebbc874ef7d880c283292304527c526ff63788aeae19

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 676.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f75b094913a1757e5e634b70b03e808cab0eb02c802ec50b760636b23b0aa50c
MD5 52c327cb9f071ea6d8dc60f75a67d77a
BLAKE2b-256 2d0685ba9d00ac91df12bab7e11138251bd6abdb9a125fb4c5b7ca81922bafd4

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp310-cp310-win32.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp310-cp310-win32.whl
  • Upload date:
  • Size: 609.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cdd6bff2cf7f3a5a5a24cddde137b6e117fe53aad81f240dee2e8e383c0b289b
MD5 a6c1657a4768c95e4d2e93b367f7a3e5
BLAKE2b-256 bdc40118c8b57ea2cc0d90fd73b3913e5bc71881fd999097c1b94f46b9b56c88

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a36bc089036196aa03c3c312ea1639677065b3d7e8f37edbba731f61f5e56dd6
MD5 a6c1f8ba4b7e7bdf79416e15bd804cbc
BLAKE2b-256 07ff8acb19608ad388e853bae13f5b223d6c0ebc7480949792bde7408bb5d8e2

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7c14cf97d61073d8211abfded77066af791356868022acda10224a8212639cf5
MD5 0230110f13dfecafbf99ce7acfe0c0c7
BLAKE2b-256 ba0d8e2b9fdcf92685f9d75e9e5662fe551ae8ef78d0a49a0691173a98f76de2

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 705.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fac7d1f4b14383bd29d3996cf5f6f23d0dc50ffd7965d2bc35bcc0849da24152
MD5 3e52ba1326a8db04e080b1e069d68f9d
BLAKE2b-256 fb068deda19dda3f308eaf85141c22ec485f067a597dad25b8ddd9543d67fd99

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp39-cp39-win32.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 633.7 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dcd2be270bf490b6007eb3734795aaeddf92848f79b69d6a23f6204ccaa9b6c7
MD5 e98f07c2951aff8e65ae0ca3e05387b3
BLAKE2b-256 58a25c98c62a87ae3bb0f69ce92be350ce3565711deac678d76d67f63c47aa07

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75763c49b3e18da60e160d76e8ac9a27b0bbd637c6e88513150fbb7158ae15d7
MD5 cceb2d743a3316fb6fd564987d144a45
BLAKE2b-256 33975b61a4e98d59095861fe899a232c43ed841607a0cddb86df0c28fdc45eb0

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d6be1d8e07cc151e217f8a0ccf7c28ca5a1bb0ae00c8512586642c9f876a7298
MD5 c888de2605f3d3b7b1586af99d275064
BLAKE2b-256 5c9829742495a9823ce6cd3fa1a2e79f577aab073584c02bbae1b1e3b0ab36bb

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 707.4 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 787262e0db124d302c972d30e6f4b7c81423e696d08ee6e07047194a9bce2664
MD5 7cbaa0e945d6ce9df7affeb8e99e39a4
BLAKE2b-256 ce0bff6ae4a40e55c16662b8f115fed8f1d7b449a250d88c35455790a6fea7d2

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp38-cp38-win32.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 634.2 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 43c8b1acb8efa1f881ff7f7e912ccdc611689484190b7cc83f538b44f8992cbd
MD5 f95ddcb6c7e8ac076faf0d93f596a181
BLAKE2b-256 9ea2ab93ef92ee3ea56ff7efaf6e494c81f15e04c414afad7639258054f303c2

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13aba9a947994f5f5f1fb6f425b397a359b191cee2983fa33911cf5e212d6cfb
MD5 4f9ab44081965d633c7a4d9ed95dd9e9
BLAKE2b-256 09775460b39ae054a8db83e847fbcbfc9e568e4676f7fdecc81df4b8021045b5

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 512a2bd98e8003f48d98908bf54d1ed94c5388764e0a09fdc24cc691422a4162
MD5 2d78bd91e9c3dd3e4f9a77d10a7bba5b
BLAKE2b-256 564aa1592f85a8b0ff2d825d89d42f1d527d3c874235551429099163bbe203d1

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 702.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 85e7e623dfe51fef3f613acb965c4fa1866e7a7ee2c2558cbe2f203798171510
MD5 62a19761b3d92e4beed490c2e14ed1be
BLAKE2b-256 549de6965848a3c8f8b2ab628152e96f97cd08f9dc685e8018375d3893dcb704

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp37-cp37m-win32.whl.

File metadata

  • Download URL: gssapi-1.8.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 626.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gssapi-1.8.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 84bfd1b3954a5a608302884a36586eed6f623f6f38fcd331ad55937eca1ea89f
MD5 ea1d83ddf7a989f1b4f950db15f0ed81
BLAKE2b-256 1cc62a5b88f81b69d07863ddfef8c71cb4faafeed32cdf382b03105808af42da

See more details on using hashes here.

Provenance

File details

Details for the file gssapi-1.8.2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gssapi-1.8.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 02e0a8f35e1f5b1c0eada646e3da1af3022c25e8df26ded3fd18ee78abb155ea
MD5 6258d4cfee9cb4552371eb2f9ca77860
BLAKE2b-256 d91a486b96b32f7d223f948f8920ce8d295f6796a31ad85e5bbed524ac8d2caf

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page