Skip to main content

Windows Negotiate Authentication Client and Server

Project description

Python SPNEGO Library

Build Status codecov PyPI version

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 imlpementation.

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.2.tar.gz (94.4 kB view details)

Uploaded Source

Built Distributions

pyspnego-0.1.2-py2.py3-none-any.whl (107.3 kB view details)

Uploaded Python 2 Python 3

pyspnego-0.1.2-cp38-cp38-win_amd64.whl (347.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyspnego-0.1.2-cp38-cp38-win32.whl (329.0 kB view details)

Uploaded CPython 3.8 Windows x86

pyspnego-0.1.2-cp37-cp37m-win_amd64.whl (344.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

pyspnego-0.1.2-cp37-cp37m-win32.whl (325.2 kB view details)

Uploaded CPython 3.7m Windows x86

pyspnego-0.1.2-cp36-cp36m-win_amd64.whl (344.6 kB view details)

Uploaded CPython 3.6m Windows x86-64

pyspnego-0.1.2-cp36-cp36m-win32.whl (325.3 kB view details)

Uploaded CPython 3.6m Windows x86

pyspnego-0.1.2-cp35-cp35m-win_amd64.whl (342.8 kB view details)

Uploaded CPython 3.5m Windows x86-64

pyspnego-0.1.2-cp35-cp35m-win32.whl (323.8 kB view details)

Uploaded CPython 3.5m Windows x86

pyspnego-0.1.2-cp27-cp27m-win_amd64.whl (332.7 kB view details)

Uploaded CPython 2.7m Windows x86-64

pyspnego-0.1.2-cp27-cp27m-win32.whl (317.9 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: pyspnego-0.1.2.tar.gz
  • Upload date:
  • Size: 94.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2.tar.gz
Algorithm Hash digest
SHA256 87193ad5c47096bdc65c93cb2d2d9826657f887f90d38713d5676465f7d472aa
MD5 3d5ba0ac0a169efb6a3887a0f9f85c0f
BLAKE2b-256 2147cb432f4447c5b84f7b4feef6ddfc7ef96260246628884a0f0e2e43257cd4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 107.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 02e33fcf6ffd73cc7a2e67f6a681312c60fcc9f334d71d1157865f2bc4e7f42d
MD5 a7a20369632a953dc20ddbc7d499fa14
BLAKE2b-256 a20cee4a987eb1143e82ddee09e6b4f758d7385c964a420e5187b73b0ccddede

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 347.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 df9dee442c22b5c27718a13ef73190512e8bec38bb42fc96b582743e006d41a8
MD5 8ca38ed7f4b10f84f6149210d837bd99
BLAKE2b-256 7280e79e4492ece76a5c460a30cf35d80b5244a4093c4aa9d9220ea81a62c34c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 329.0 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bd3921674d402b6ccc1a9eb840eb4137711a34364e34eb6090eb35f9d7f2105b
MD5 342606ea2f006465b1b110667e49c1a0
BLAKE2b-256 e26aea7f2345757d55596f0c2e71250288803a0e15b5a282f66b64974c495863

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 344.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 194ad27217462d11d55239bde98dd02cd76309d8e2784c76957998fa8143adf2
MD5 89ba983e942ddc0fc786d3ba669edcac
BLAKE2b-256 01aef284f82a6336d36243466c8166b2c4b7fd27963de7dd58d75cfe4728b37a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 325.2 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 71feaa2ab7fdf0e51ad2900ad40ae12723426536efbf68b2d0a27dc6bfa333b4
MD5 cbecef44b829d72f5ee467243ec995b1
BLAKE2b-256 cc9b9f4747a94823c97520ff92955a86e58ae19e24921580bb2ed627528966be

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 344.6 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e73fe27f80fb4c33c441ab2d576d57e424802d36703d9d9dab28def6c14adf4a
MD5 1c9746fd08af3f4870ceb76c17c9264b
BLAKE2b-256 bd430548d2fb0ecce9393b54929e43e882947b35b0af9a8322409b286d72bc41

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 325.3 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 be34c32cb9202b2ab03ead8e564478796362a00368c38601a74c507cea1b0b63
MD5 954c4258075307923dbdede67eee167f
BLAKE2b-256 1d74051f0f34cfb7b930673f0c9f423a2b80a72e1cf3d3443ba068d6fd331c76

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 342.8 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 9f7b2a9372a34e7630ece66988429998b415c19ee7ff8d0733c06beb2d7bdae5
MD5 925ae6ec8b9639d6a306e8bf3ab69730
BLAKE2b-256 dcb4bbd9704057a67f3cb3fefc0fe4647a5a41726c22756bda1d537837a4b7c4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 323.8 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 f62ca9037b69befaf550b39b07817aa27153aa7ae5c2c7e34ffbd805c403b621
MD5 53e064ecdcdaa98a73a18d652d310c64
BLAKE2b-256 38d9abc5c1961c6f1606b80897fb473f6801c0f20fc9da60321ea69bcbaa4e00

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 332.7 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 d0bfdeb42c1d5f2045fc5d3eb24ab36bf8b14d4926e08ddd9c7137e28f3c91fe
MD5 e70d2777fecdfd644fb12c12d7330c80
BLAKE2b-256 5124dddafc3cf4fe6da3a59de0667ada8c07f893cf045762d4077fc1a0de1295

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.2-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 317.9 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 f5465cb975c6a85a845529f95065043315c9299d831dce06f47f606f0cbe4fae
MD5 e489d7ba7a2bfb66f3b4b658a2177927
BLAKE2b-256 9154f4d50999eb0982bb85264ca7d5091715905b11936ffb6aa14ab7f7293578

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