Skip to main content

Windows Negotiate Authentication Client

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.

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.0b2.tar.gz (83.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyspnego-0.1.0b2-py2.py3-none-any.whl (93.7 kB view details)

Uploaded Python 2Python 3

pyspnego-0.1.0b2-cp38-cp38-win_amd64.whl (334.5 kB view details)

Uploaded CPython 3.8Windows x86-64

pyspnego-0.1.0b2-cp38-cp38-win32.whl (315.5 kB view details)

Uploaded CPython 3.8Windows x86

pyspnego-0.1.0b2-cp37-cp37m-win_amd64.whl (331.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

pyspnego-0.1.0b2-cp37-cp37m-win32.whl (311.7 kB view details)

Uploaded CPython 3.7mWindows x86

pyspnego-0.1.0b2-cp36-cp36m-win_amd64.whl (331.2 kB view details)

Uploaded CPython 3.6mWindows x86-64

pyspnego-0.1.0b2-cp36-cp36m-win32.whl (311.9 kB view details)

Uploaded CPython 3.6mWindows x86

pyspnego-0.1.0b2-cp35-cp35m-win_amd64.whl (329.3 kB view details)

Uploaded CPython 3.5mWindows x86-64

pyspnego-0.1.0b2-cp35-cp35m-win32.whl (310.3 kB view details)

Uploaded CPython 3.5mWindows x86

pyspnego-0.1.0b2-cp27-cp27m-win_amd64.whl (319.1 kB view details)

Uploaded CPython 2.7mWindows x86-64

pyspnego-0.1.0b2-cp27-cp27m-win32.whl (304.3 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file pyspnego-0.1.0b2.tar.gz.

File metadata

  • Download URL: pyspnego-0.1.0b2.tar.gz
  • Upload date:
  • Size: 83.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 ff78854f1ef8df55c976162ad3c8ca3e187197a166ab0703a398234c5b4b6392
MD5 b7a299daa3dfa3cbfa1e45be44c45f01
BLAKE2b-256 d29f9336974b81e6d19a45edb727cb37b2b95015ec61b78c4834bf669d25704b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.0b2-py2.py3-none-any.whl
  • Upload date:
  • Size: 93.7 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b4ddb194ffde401919f08daf8085837f7a7c3e6de47601c21084e10e91b7e93
MD5 470f212e4e125d0e35369c9a84bd718b
BLAKE2b-256 a8ada71d3280f87cb60216084c79db0ac44f8d26b8e869ce4da13d6d7ace2d5e

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 334.5 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f1663366c6513fc1b067ef9e3b039f15aa3f91aa4d38d3008dafc9564c855495
MD5 903c8907661ea2343aad0b30b0625db8
BLAKE2b-256 a24b5d63d27ad81c18d50953ad1f82580131425e2f927d0d99efcb439bf518ef

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp38-cp38-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 315.5 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ff4180663e0abff5f2c1e963f24ec002d55f4ac2a4cd4c2481b06598b9e15861
MD5 6beb5957e402f066748a40156840607e
BLAKE2b-256 8c6bd9225bbc2e937d47c883e8440a03292214c40d39e27b123675c26f46f7aa

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 331.0 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3447031310e4175c9d81f933a29f29d15650e637687ea1d5ef53279ac597e428
MD5 4b673855573bacca9137f90f6ee34eb6
BLAKE2b-256 98f7d266057aaccde10a51f3f578446c888fc513f90922f87b107c90bb8539b9

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp37-cp37m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 311.7 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d4e83915442678c1f32348dc940062e9db2af21334a4a3ac38935f05af6e08eb
MD5 a1e64c57054b54082e7023e02aceac95
BLAKE2b-256 834f7f1897ed98b349362fd16a619259cbb197530596508acf5ec419bf0093ce

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 331.2 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7926d107452bb7b0f9b1da2ff31bdc8913206e5016127ecd53957239abd018b1
MD5 17fcede01416983c24acbc5f8b1ad6d9
BLAKE2b-256 688eaaebc309d14530cee3272c87607af8d90c42c69bbc6a3016b0342b3c16ba

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp36-cp36m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 311.9 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 9c6fe50e583bae684877f08cbd99d9815a2827a5e239529fc2b5fd805b077355
MD5 e70656f79fb21d68bce14c64628cc06c
BLAKE2b-256 e7127f4e1d782738c65bf9d6aaae7d400947e3814607b0185a72f206ca6daad9

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 329.3 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 1f399c133b5ada2ca1a8eb2e75665f51360d4264e6824e57f8d957058d86de3e
MD5 54745fa2e74af432d502a46bfd76bad5
BLAKE2b-256 457f240a985f59659dd0e8420b19f9812b6499e1ff064b4aac853eb9dc2192bc

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp35-cp35m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 310.3 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 766a38008e7dcb9496a258f6c55e65133ed3d443609959be333c2b780dd01684
MD5 d081a7141acf01ca1a67ffe5c9d92dd9
BLAKE2b-256 d3b8e3e2aa58a218c4d6b4a6f2cd6c4d124965cab2e73784f05058865b412d7c

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 319.1 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 90ba845059d9cbc54f3fad158e9f5854a4b30c20e983662d7904c7e0c0478305
MD5 4b637a946366db59dd743b7f90f5ec20
BLAKE2b-256 e078c6fec5e84bd11cbc97febd2c020847c67d7a0673433d0b9df096a99f9f55

See more details on using hashes here.

File details

Details for the file pyspnego-0.1.0b2-cp27-cp27m-win32.whl.

File metadata

  • Download URL: pyspnego-0.1.0b2-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 304.3 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0b2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 c73eb58855c5a49633408c603a48f79ebb2b71f48468bbd280194cd147bb3b43
MD5 7da8255e55e3c2abdd949665c64fdb0e
BLAKE2b-256 e64736da809db025f1090f8a7d97fbcd1f4d5c954a7ffb32ef50b089ad61e14b

See more details on using hashes here.

Supported by

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