Python GSSAPI Wrapper
Project description
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.6+ (older releases support older versions, but are unsupported)
the decorator python package
Compiling from Scratch
To compile from scratch, you will need Cython >= 0.21.1.
For Running the Tests
the nose package
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 $ python setup.py build $ python setup.py 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)
Robbie Harwood (@frozencemetery) - current maintainer and developer
Simo Sorce (@simo5) - developer
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file gssapi-1.7.2.tar.gz
.
File metadata
- Download URL: gssapi-1.7.2.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 748efbcf7cfb31183cd75e5314493e79fe3521b3ec00d090a77e23f7c75fa59d |
|
MD5 | 83f6991c295ad5a4d4fd33062635a96b |
|
BLAKE2b-256 | e44d03fcc6a2d052920336069df97866d7b506556ed9f3a5ee2ca1e0cbad45d4 |
File details
Details for the file gssapi-1.7.2-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 776.2 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcde5311a574c2ac314dddaf9608310bd7a4eae3b361ab6374c552428534b51b |
|
MD5 | 64393c2ed6f09b1aa5063014afc1295f |
|
BLAKE2b-256 | d607263e078b90de8f0f02042de2565ce27d565d5c0005d7d25a2700b535c637 |
File details
Details for the file gssapi-1.7.2-cp310-cp310-win32.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp310-cp310-win32.whl
- Upload date:
- Size: 672.4 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14bde0adcb6fd435021292899f8111396e54c039b47f107e97c40608ee451b84 |
|
MD5 | 2d08a171cc4c68fdbdebb622bf16f845 |
|
BLAKE2b-256 | 6d6ac9ae2f765a54dd57f6e3f4a4fccae196d019f05a60c33ca2136f4109aa05 |
File details
Details for the file gssapi-1.7.2-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 543.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d07a74a57cf0df22d0db9452cf500d487736e91cbd21aefffefa3d53e8d8ca2 |
|
MD5 | fbb21889d5873d5ce0cf788e009da30a |
|
BLAKE2b-256 | 19c3f5d502924bb037a160eabd28f1c5c54d52760d1e5a33b5edc915c4f73ec8 |
File details
Details for the file gssapi-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 602.5 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c02a563d7e8b4005ccfc1f6080eaf0805c052876397ea9fb03b7ee725bbbbccc |
|
MD5 | da8cf645eafc72a42349d6ee3da44886 |
|
BLAKE2b-256 | cb23765fc4087525b91480b400145a22229b5116bd70f36390cc81505b13ea1c |
File details
Details for the file gssapi-1.7.2-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 774.2 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a01dbcd17760cdd77701006105e00a1bd213bd6e189b6602242f175ab488afee |
|
MD5 | dbe48ab35eb4dc7cb020118ad37d052c |
|
BLAKE2b-256 | ab347c86b3a3a541fe16b54c8ff90288b4899721eca43b2e1f8775bf11224f5d |
File details
Details for the file gssapi-1.7.2-cp39-cp39-win32.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp39-cp39-win32.whl
- Upload date:
- Size: 670.8 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69983699e9ef39fb7f84b02039d739362fb39959285bb5fdd0efcc19943aa5b3 |
|
MD5 | 1d84890859eb79e1d1a48eb20d7f5e9c |
|
BLAKE2b-256 | aeac86c76314951bb67e93d1533cf02d9ce19646109f69966db7f53441e03dc0 |
File details
Details for the file gssapi-1.7.2-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 543.0 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7123301f368f4198c46c62ee791878e7174fe7eed05c5d602708e0c5ec6774db |
|
MD5 | 0616d75966d4fc013dfa7d9da1663787 |
|
BLAKE2b-256 | 9344eea104bf1658c6fbff94e8ccca30bb4359809606fc0a4467f6907ec5ef13 |
File details
Details for the file gssapi-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 601.9 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe5e95c88fd737117374223683e319b0d80024f7d176822f14a12be0663cc3d7 |
|
MD5 | 4b8541009df14dea095170b2f6e8b1b5 |
|
BLAKE2b-256 | 75d7178dcfa06ad43dfcd913f79b6817852e5961e98598ae7167e08285fa51cc |
File details
Details for the file gssapi-1.7.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 775.4 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33aa276927a82ec630bf580fdd187399062568e699901c33ff8191d3ae9daa4f |
|
MD5 | fb1b960f81799831d420178ad2553afe |
|
BLAKE2b-256 | 7080fb68a74f6008c8a8ca9f75addcfad38e7bb8422a22b6a77cddd1339e482c |
File details
Details for the file gssapi-1.7.2-cp38-cp38-win32.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp38-cp38-win32.whl
- Upload date:
- Size: 672.0 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5231e3d5d299cefe535a854b7e8d4700775704e75fa33fc3aba1cf83a3e2e7a0 |
|
MD5 | d90154853801340f84120564ef4e0c9a |
|
BLAKE2b-256 | a8ed75e37d847c2784306fccb21abb89435a1ce86cfbd5fe20a5e3a22a77da28 |
File details
Details for the file gssapi-1.7.2-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 535.8 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65b2820fd547398c55c69ab6884245b268ea56702f6411149a3be6e520e3efd5 |
|
MD5 | 62cfc359f340f0800efe0bc3e9844754 |
|
BLAKE2b-256 | 998ff0b6213aa5cb2bde0dda6e97695e34058182b6ac676fd476ba911a1b000e |
File details
Details for the file gssapi-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 591.0 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad1df7dd638485402c5b9afef5b7355d855266a09e2f7d55e5f0c8ee0f6a2e7 |
|
MD5 | 788f38776846e575affd49001594e431 |
|
BLAKE2b-256 | 9c74651de40eeabe63c149fd52f3638badb8c346705bcc69c9e53af1bc8f2f66 |
File details
Details for the file gssapi-1.7.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 760.4 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20b5365557684856c9b20160b26eaba664afd92a7c098b4bc0c0b2aaf7e5a31c |
|
MD5 | aae050b3a1dddaf6e4aac6a33454e298 |
|
BLAKE2b-256 | 5421636ef7668939cb7459ac062c9839d5b4798539f42ff259ae14fd661e714b |
File details
Details for the file gssapi-1.7.2-cp37-cp37m-win32.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp37-cp37m-win32.whl
- Upload date:
- Size: 656.3 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b199f59450c4cdc85d7d4f0f35f2b7b7420e536309d0370a5ea0734d56d06e38 |
|
MD5 | 45cff40136b63f7722d1171d9b60761e |
|
BLAKE2b-256 | 8e93185078176b534a375e3b99e727136591ae206e82b40dd24f15fbf9a75073 |
File details
Details for the file gssapi-1.7.2-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 583.6 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145bee55bff2461d2704b958bb6f45f6abf11442efe0f2e7a612f0ab049613f2 |
|
MD5 | ffbc570e8d4ce26a7f89f230b0522ffb |
|
BLAKE2b-256 | 7a821ce6aa145a850098df950324ce33b8f9544f4d8dc9320875a7a4b6a8a4b1 |
File details
Details for the file gssapi-1.7.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 759.5 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b02bbdd850c079b1d453546579fc283f0646f56ff4b39cd3b0e27263a6af97e |
|
MD5 | f9edb9008ca28e590d368ada9d227c17 |
|
BLAKE2b-256 | 2042ac870fc6dbf49239e7273bc1b4b7c38fb702392d5d061932125747850ede |
File details
Details for the file gssapi-1.7.2-cp36-cp36m-win32.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp36-cp36m-win32.whl
- Upload date:
- Size: 654.7 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2b57d01debcaa79b91a9c7e40ccc200cbcae9afe48f15cc54901ddf733b4d91 |
|
MD5 | 81d869aa442929b208b1769e761c72fe |
|
BLAKE2b-256 | 2c18c3d63aadb45809f0b227f0c80e549a4880a1cbd17fed558e7f5e99a84147 |
File details
Details for the file gssapi-1.7.2-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: gssapi-1.7.2-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 582.3 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b4b979c075062654a64aeb6faf579f3070d6e52a9c94b10e77eaea0ef88795d |
|
MD5 | 7604527161c60c58fcb48f5da893b5bd |
|
BLAKE2b-256 | 3b31ae19f5d1a900edd963f3eadefd6636933c9a0486e89137ea90c5c3562d74 |