Skip to main content

Windows Negotiate Authentication Client and Server

Project description

Python SPNEGO Library

Build Status codecov PyPI version License

Library to handle SPNEGO (Negotiate, NTLM, Kerberos) authentication. Also includes a packet parser that can be used to decode raw NTLM/SPNEGO/Kerberos tokens into a human readable format.

Requirements

See How to Install for more details

Optional Requirements

The following Python libraries can be installed to add extra features that do not come with the base package:

How to Install

To install pyspnego with all basic features, run

pip install pyspnego

Kerberos Authentication

While pyspnego supports Kerberos authentication on Linux, it isn't included by default due to its reliance on system packages to be present.

To install these packages, run the below

# Debian/Ubuntu - Python 2
apt-get install gcc python-dev libkrb5-dev

# Debian/Ubuntu - Python 3
apt-get install gcc python3-dev libkrb5-dev

# Centos/RHEL
yum install gcc python-devel krb5-devel

# Fedora
dnf install gcc python-devel krb5-devel

# Arch Linux
pacman -S gcc krb5

Once installed you can install the Python packages with

pip install pyspnego[kerberos]

Kerberos also needs to be configured to talk to the domain but that is outside the scope of this page.

While NTLM auth works out of the box, it is recommended to install the gss-ntlmssp library for full Negotiate support. This can be done with

# Debian/Ubuntu
apt-get install gss-ntlmssp

# Centos/RHEL
yum install gssntlmssp

# Fedora
dnf install gssntlmssp

# Arch Linux
# AUR package https://aur.archlinux.org/packages/gss-ntlmssp/

How to Use

See the examples section for examples on how to use the authentication side of the library.

Note: While server/acceptor authentication is available for all protocols it is highly recommended you have the system GSSAPI and NTLM system libraries present for acceptor authentication. Pyspnego NTLM acceptor authentication should work but it is not as thoroughly tested as the GSSAPI implementation.

Backlog

  • Add support for anonymous authentication
  • See if pywinrm wants to use this

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

pyspnego-0.1.6.tar.gz (94.3 kB view details)

Uploaded Source

Built Distributions

pyspnego-0.1.6-py2.py3-none-any.whl (107.7 kB view details)

Uploaded Python 2 Python 3

pyspnego-0.1.6-cp39-cp39-win_amd64.whl (348.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyspnego-0.1.6-cp39-cp39-win32.whl (328.8 kB view details)

Uploaded CPython 3.9 Windows x86

pyspnego-0.1.6-cp38-cp38-win_amd64.whl (348.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyspnego-0.1.6-cp38-cp38-win32.whl (329.7 kB view details)

Uploaded CPython 3.8 Windows x86

pyspnego-0.1.6-cp37-cp37m-win_amd64.whl (345.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

pyspnego-0.1.6-cp37-cp37m-win32.whl (325.8 kB view details)

Uploaded CPython 3.7m Windows x86

pyspnego-0.1.6-cp36-cp36m-win_amd64.whl (345.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

pyspnego-0.1.6-cp36-cp36m-win32.whl (326.0 kB view details)

Uploaded CPython 3.6m Windows x86

pyspnego-0.1.6-cp35-cp35m-win_amd64.whl (343.4 kB view details)

Uploaded CPython 3.5m Windows x86-64

pyspnego-0.1.6-cp35-cp35m-win32.whl (324.4 kB view details)

Uploaded CPython 3.5m Windows x86

pyspnego-0.1.6-cp27-cp27m-win_amd64.whl (333.5 kB view details)

Uploaded CPython 2.7m Windows x86-64

pyspnego-0.1.6-cp27-cp27m-win32.whl (318.6 kB view details)

Uploaded CPython 2.7m Windows x86

File details

Details for the file pyspnego-0.1.6.tar.gz.

File metadata

  • Download URL: pyspnego-0.1.6.tar.gz
  • Upload date:
  • Size: 94.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6.tar.gz
Algorithm Hash digest
SHA256 0356bccedc033b7266d89503eca50717f81fc9d3b98cb1dd5227bb7c1a9275ae
MD5 538c388b78fcc36c3d15914500b3f4c7
BLAKE2b-256 31671e34ece99b804bd26b0043d584ffb5bc789e34001ac1612eeb073b5c283f

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-py2.py3-none-any.whl.

File metadata

  • Download URL: pyspnego-0.1.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 107.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5be3fa80bc81a11b9254e3800aa350db06b2eb1b9d830f7770a1baadae415185
MD5 8f49bcc7c89e5f2d6316cfad42c12089
BLAKE2b-256 a217ac83738eb7eb1cad20ba12d78b39f1b3fd886e2a21ee786f98785aaeb513

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 348.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5701dd50597c0a11b4bd1d3921fd1c32ba3b7ec15c3e273c486870efe673dd52
MD5 3e3d54cb517d0d47a955c68f322f2879
BLAKE2b-256 7915fac460763d2afa6234d144222342a0182ff9955fa98f79e5e4844e40652a

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp39-cp39-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp39-cp39-win32.whl
  • Upload date:
  • Size: 328.8 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 83d52b9e8b55243fa3711d89e77d94935a60b8638e8659b572dee898d359bbe6
MD5 229f1755a11f926343d0664bce6816fc
BLAKE2b-256 2427428769cd2080ef6965fdd2d4a5b8713bbf75841a2d0935c408a793421539

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 348.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cc57132ebe7b6b5d14e940bf4069a1206ad0fe23f51281dee4e7979b34a369d3
MD5 ad88a3b4ae29345d9b0ee476a7d71269
BLAKE2b-256 80e11a9ae91511f28a7f60e7c1e62b023e7942a25b921da18c1891e350d5fc14

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp38-cp38-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp38-cp38-win32.whl
  • Upload date:
  • Size: 329.7 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ed4fece1a834cc29377f43f4ff459ae7eb7c7d937cfd3e4b46676fe9984c8c74
MD5 4be1ccbf130be594db639203bf5df2df
BLAKE2b-256 ba38ae4e27692761ad670fa45d49af9f34935bf6e8d4d0cb585d7b7ad868fbaf

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 345.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d3e7d55447cc353765cef6d77b3c57fd02f77ddc83a4fb3b4b696df92f908ae1
MD5 31fed2d8f43f5c1f8e2c6d5cdfb27460
BLAKE2b-256 295dd4493540550ccd2ed3f53f009faacaddc6d02bb2a31ba368931aceb19174

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp37-cp37m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 325.8 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 0940e0bdec72c6266ef9604db929ddda86f1dafe2c804ac3d6e30161a53e414d
MD5 cd9398ac9ac2988dfa78bea188629c7d
BLAKE2b-256 a9046a80d51025a77039222f38ff1c3883a67e710c99a95a5ac163f43f210fb0

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 345.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e021472424fcb477d9a211437f6a14c2d9cb59e20eeee9ae7992bd7deee50064
MD5 d868af44c7f2bdc041c4c4277d6a7210
BLAKE2b-256 7f0df182695de063ad3621e4e5cdb4ad028b981fa5478696d7ea0d0ea39673ff

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp36-cp36m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 326.0 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 507809d2e1fc8733a4f0801ee59d01db646b41d3ab8b90a6f3a16a17eef3fc37
MD5 34d79978e7644615b5fbafae27d4212d
BLAKE2b-256 5d1cb36e16988e8edb3a3225541de1632e362e3c860bc3e1d1e078b50b521999

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 343.4 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 777c9524e91298b2ec3d728dbb85e44d047ddd857db6c2658d977401fedfcc9c
MD5 5ba900f17e1cb1b0229c8ac84dd83739
BLAKE2b-256 0cc395c1331206ce5a1cf3b7483cbcadd0b3a699ad1bff3fd729731190f0899f

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp35-cp35m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 324.4 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 c05aa1efcb9b0cf3c6341c48a6b349c3b669b0d7d99ab65a789c0c1071701136
MD5 4a0ad0e3865b7d044b42322637d5d13c
BLAKE2b-256 9283c05b8a71ad12747a7e293e1fe311821a1cfcb84ede04f0bf874f674f8d4c

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 333.5 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 44469f7cf2a9435d7115c557db4df6bd6a74ce0056511b88b672b58ff2d477f7
MD5 a5d6abceff349fbd203e716b37d3f21b
BLAKE2b-256 8a624fcca498099892d361a998050fcc6d9b64560b177bd93ff10b14f04c91c3

See more details on using hashes here.

Provenance

File details

Details for the file pyspnego-0.1.6-cp27-cp27m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.6-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 318.6 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pyspnego-0.1.6-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 f90a41f7d31e049f3a2e566f02ce06d86f13bbd2e3796b3af3bdb2be75c6e836
MD5 4b438de13089c4e62a8b79e2d07e3c98
BLAKE2b-256 ceacf3c8c9b796feb13bd5c9b6453e79af5212d9fa6690ea6f972ba5e53dfe4c

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