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.3.tar.gz (94.4 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.3-py2.py3-none-any.whl (107.3 kB view details)

Uploaded Python 2Python 3

pyspnego-0.1.3-cp39-cp39-win_amd64.whl (347.2 kB view details)

Uploaded CPython 3.9Windows x86-64

pyspnego-0.1.3-cp39-cp39-win32.whl (328.0 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

pyspnego-0.1.3-cp37-cp37m-win_amd64.whl (344.5 kB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

File details

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

File metadata

  • Download URL: pyspnego-0.1.3.tar.gz
  • Upload date:
  • Size: 94.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a2963d52b64ecd7df3f8e9a311a423e75bd4bcc5944d46da16837607f9f6e667
MD5 2617c9345f78e3af91d0a5d14f2aa11f
BLAKE2b-256 29aad44a0faa85b80c34776dda420d374106ada464e10b877214d5c501eb820f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e63dec220a0a29bd929f8bbd401eb747da591c50f1c5a4e68f86aa73626dd57d
MD5 e549a2921c293fe14c3ab25ee93fb20b
BLAKE2b-256 0a7618d75e793e52cb24880cbdaad78bd410e4902b79f487f5f8a695cac5e223

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 347.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 95570bbef667df19d3e59d22ebb4afb88ad713f12d81899c5d82f8dd475b85d9
MD5 1f5fdbc75df17204ecade2007b9ce561
BLAKE2b-256 9e2c80acb668153633646463f6b880666830e586a07a664e8df9de9093c248e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-cp39-cp39-win32.whl
  • Upload date:
  • Size: 328.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6ffcf69090a6b10866f3e68ba5055a5f9371e9e1aab544493a9bcdf80c7e53f
MD5 fb26736baad36e35349cd808e04af67f
BLAKE2b-256 a20e0206e3a058775ec95a9f32ee6da6b9f462b5ed0853ff5333c4d33661dd11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ce50e00516bac280c93acfaab098579ef2d138790fa47a208938bfb91016e417
MD5 4659d05e9704f0f8a90822a125a2031e
BLAKE2b-256 07754c2fe67fce3d79606dddbf6f87cc2657fcd4efaa7570309904152e792fdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9b6222bf10a912351bb8cadad26307e8ca227aca0533c36bc8ad763cb3f8310e
MD5 9cd5bb9cb67429c4233dc38f20c93272
BLAKE2b-256 92f90767e8769a2a5fa3254133f75bf258ad9d6d57f3a7c50fb0205bbc53d5fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 344.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 320fdcc33599d28cfc257b01d01cfb2a8b59cd821a15949e81fb74befe8a56d9
MD5 f2e6224e8f3393f0633e7f6980dcc87b
BLAKE2b-256 86e319eda4c0daec00c1931b3a4a81f6eb70529d46334b14d3119b617ef9baf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 3ca1faf60b6e42f8583c20d40e0a29af2baf282943abd847a609356c0086c6a4
MD5 9c313308d353f247aa1b41fb8f9abbe3
BLAKE2b-256 f792d2f389620e8ca5e9c6b906e5ea4089abc6dc24aa0fb8efb65b59796bf67d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 73e896e916d47b3ab15372e48f21291c84608bc15885e091544c9417ffe2f0bc
MD5 2f18751eafac88ea807709d9cf0b6e56
BLAKE2b-256 60d0a393fcff138389980201ba64673f19fbf9487683e0fddd5e509fb2233390

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 ac7b19f0c24bfdef3065b1b0187a2653c86f15f6cc0cb123a3bf1c88e466073b
MD5 96ca13b4e44c3beac7e8b86d929f10c1
BLAKE2b-256 a7b777e5cfcdf3afe85a735cebf67c8b31fc75ae65fbd5b38b1954fb6c429511

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 53dd617ae50b3d7dea3d44b8e2184f3a11f0ddc9dd94ef6abe990cbd4b7eac50
MD5 7729953d6b60e1a21994228a85112e79
BLAKE2b-256 251f3698d72d61ed53068b5fa88b39b6542cafbab6ffaf14332f3268ca44b928

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 f87f10c66a17b7b1d9e186110c35269d353ecb6e30c7a573e65cfb1286e8799f
MD5 d90a9cf092e57f2d755d6129605e7305
BLAKE2b-256 6fecd14c88675bf0f5473a4c0512de51a25bcfa5acf07c211c6012176a34beed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 0fa9ea4bd6be196ec88db3f63a54854e6898e6a5bcba973551a99f4786cefa25
MD5 3813f2f873a8ebfa6866ec98b5da65c5
BLAKE2b-256 d296965a1cd7197e0e4894b4df9ea9179da2f34085efde4cdd06b550e8a65aec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.3-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.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyspnego-0.1.3-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 17c4c29ffa8a99d2b95942570864804f00756945bacb5c217c96d24d72523596
MD5 1dfa1cae8f8194e62bbebd7648020cab
BLAKE2b-256 14911bd57e7abdc3fcd2a4de3adcf603163273acbe0dd64a5203aada87d37e63

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