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

Uploaded Source

Built Distributions

pyspnego-0.1.0rc1-py2.py3-none-any.whl (93.9 kB view details)

Uploaded Python 2 Python 3

pyspnego-0.1.0rc1-cp38-cp38-win_amd64.whl (334.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyspnego-0.1.0rc1-cp38-cp38-win32.whl (315.6 kB view details)

Uploaded CPython 3.8 Windows x86

pyspnego-0.1.0rc1-cp37-cp37m-win_amd64.whl (331.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

pyspnego-0.1.0rc1-cp37-cp37m-win32.whl (311.9 kB view details)

Uploaded CPython 3.7m Windows x86

pyspnego-0.1.0rc1-cp36-cp36m-win_amd64.whl (331.3 kB view details)

Uploaded CPython 3.6m Windows x86-64

pyspnego-0.1.0rc1-cp36-cp36m-win32.whl (312.0 kB view details)

Uploaded CPython 3.6m Windows x86

pyspnego-0.1.0rc1-cp35-cp35m-win_amd64.whl (329.5 kB view details)

Uploaded CPython 3.5m Windows x86-64

pyspnego-0.1.0rc1-cp35-cp35m-win32.whl (310.4 kB view details)

Uploaded CPython 3.5m Windows x86

pyspnego-0.1.0rc1-cp27-cp27m-win_amd64.whl (319.3 kB view details)

Uploaded CPython 2.7m Windows x86-64

pyspnego-0.1.0rc1-cp27-cp27m-win32.whl (304.4 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1.tar.gz
  • Upload date:
  • Size: 83.2 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.0rc1.tar.gz
Algorithm Hash digest
SHA256 6b7ad5b0a84df9664677c26a84504a3cf3609f695e59e829ac5c2162400c8c20
MD5 806eae372719f5a649d9c3aea6bdceae
BLAKE2b-256 0c5c49b3098fba967a4d645b06d1ea61174ba48e68f1ed223c2bb8e1f4262224

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-py2.py3-none-any.whl
  • Upload date:
  • Size: 93.9 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.0rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 10863f666669157f2fefaee9501370bc4aa51adb6e25f0b41d0996ab33743c5b
MD5 21c3746782e1572f1c1b6274858851b3
BLAKE2b-256 5a42f17643f7e575aef2d1df1b89fb0889fa7c6b6c1c6d97a28afa5e82dc6a81

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 334.6 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.0rc1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a62df2f88f0287bf76879cb12519330e30e8b2c6035bf67376597cc8cc39aae0
MD5 27abbd8cae5a9847af2a2a810688df7c
BLAKE2b-256 a2f9ad0beff50aa5bf6dad633483cb271bc4b038198efe6d0a3f14d4477637bb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp38-cp38-win32.whl
  • Upload date:
  • Size: 315.6 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.0rc1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8cbca0d173f8b062b61198aaefc2d83287e059647f9a99677cdd03f6453dc345
MD5 d9007830cc35bb8b182be8f8fc488237
BLAKE2b-256 47412776e88a9700bb6b6299f8bbcabbe3cd28cff3f1f53c8840d0e54905bacd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 331.2 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.0rc1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a69df8ee996bbeaf4af81aae1365acaece9e0a6d2cc68745473bac41f863b3c1
MD5 e5eee706e52e4991099adbd7e154f3f4
BLAKE2b-256 3ed29148cf955c300b1d96726c38c3141cca696e101a4e2bd8e2e41d0b0b0fdd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 311.9 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.0rc1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 f031f4300bad2a856949f3e24fe70f5533f9fd9cde56c330e1468afcd33f43cb
MD5 e4a860aa2f6af9f0be743642aa27e0f7
BLAKE2b-256 1f59194e8f4c7fd99e448483528080ea334c76df0b02cbe9fd8f68203cf0c88b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 331.3 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.0rc1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6c2e499bb5eb730a2cf0603269ed2918f70ad45e2cc7e3924c152bf352824191
MD5 cc9305139810e9d3fe650c86598f0a78
BLAKE2b-256 371e02bcc1a4ec99732ed951ed1064174f60903f55444522b24194f4aeb263a3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 312.0 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.0rc1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 277a408a0456835d621abab9945d446bfc9a15687353a8b9bb09853a7fe0beb0
MD5 d8f7d7f25baabcec95e807c353a0e033
BLAKE2b-256 60ca5614f05a7e391059808f5e3a50377b975338f1fd330d367008c0b89f90e3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 329.5 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.0rc1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 259058127d96bf1bc2c8c8955d4874ec2b48e57aa47f2a831323cf7f762658fa
MD5 b8c8a674408600377f6ef641aa3101f5
BLAKE2b-256 c65edda593f0c46ada6ea5ea09dcffc72aef57beeb4a9ea25e44b69ffa932ed4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 310.4 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.0rc1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 574a8094c0f5cca45f7d9fa32699d46f88e7923c8cb6ecc7bd226004252f43e7
MD5 35fe37c17680cb2c310dbbee3845a5ec
BLAKE2b-256 7549fbd1dbd42b1ee53debeff472fda2f1f2b8376a0836b811e961fc329b4ad3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 319.3 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.0rc1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 0d6f68166e313e868236294ea1c3d66a2381e3bdff1381b04ecca8ee6941cfa1
MD5 08e5b64a1f52b22e6c02917aeb8a7f54
BLAKE2b-256 015a462749f8d322a558d4383f33fb38d80e389ebd6082f54daa5ca19db36c49

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc1-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 304.4 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.0rc1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 748e56fbd93ad8f2adbadd9ab663349c94dc172b4bc00b7278683b4b8adc285a
MD5 c9878a1a6ca2ac454bb391367568f94b
BLAKE2b-256 ee8657c3420f34d6fa46c79831a091cf8d295cd1236dd872b985ea8c6d2b2cb7

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