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

Uploaded Python 2Python 3

pyspnego-0.1.1-cp38-cp38-win_amd64.whl (348.0 kB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

File details

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

File metadata

  • Download URL: pyspnego-0.1.1.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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c45f95cd0877b6354b4e3e9ad49df30bc3d9f4f6730fc32e90eb2e32b1fef34d
MD5 c539fd3ea82a6e26c3c5e77917c448a7
BLAKE2b-256 03be6babd8aa8687c758a12fd8172391cbd45ef2f565f6d8c588052d7f725abc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 53772b4a4039785c1e6193e0172e9f8d5db8f483279f5d69abd78467f0d3c48e
MD5 71e6c094a54576b705510708f4180540
BLAKE2b-256 8096ab7926141fd3b38bee396567fb43d511edda85b500799b20ca107dc88acd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 348.0 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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7313507bad43a321c46a210a4c631d4d5aced7964bd6e720edfef2fa95f30f2e
MD5 d340970054dd76217469dbf526c8ab9f
BLAKE2b-256 2172539e71af79c029647f50d27fdf5ec2284efb2ec155fc44fe993845a140e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fe3e0ae2f8b5e5139d70b0a69f2e464b1ae0b77b04eb69df8aab9c60fdae2dfe
MD5 2e4da45b126146dbc1ef881a798d6448
BLAKE2b-256 e7cbc45d018f2d37c45ccdf1f7282e8e17b73c724b45814adab609fb59f04eb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6a3056c8e1d9753424153104ff47cde675dd306e6e762f2d2e7478902e14eda0
MD5 2f8cb1c4b84269fbf2a3eefc374d70d0
BLAKE2b-256 3e486de005252865330325f2096dcfaf66f88eae1703a1d6feb919e4799c15f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 29e71e54ae288790521538e44e8fd7645c75990dc0bfa4d0f1813d2112b75373
MD5 d6591b13d0530322755884c7c7b87733
BLAKE2b-256 c0f6150051f5e7d96ba0866ea3368de5d25b128e2043dee33f2c66290ce7cd7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 084d5669f174c658aed5ac57d3c23bd57ec7d4a10b38c2105642248145e5aa92
MD5 42958121c5aaa725c7b8e3cd2c7f254e
BLAKE2b-256 656a1a2fc80857a6364f23b8b3abadf6e04cae908996ff25dec74ee49ae46a62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 3355fc3dffbe15775a81c83c929a4401355137e3e0cf71f99e628d9a5e0dca18
MD5 a866f1a63886317f21be93ca46c1753a
BLAKE2b-256 ebe653e55ede6ab20e2262682d35ee5b04ea3868bb928424b1018bf6cba7d442

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 c02e587a214414532de363a534cd51cbd4c5b9e4ca3a345dd2ebb3328c9be961
MD5 61e645d33227e5a6a9f15cab74fdc73a
BLAKE2b-256 bf49992c326717945b66c71708cdbb3a8e21aa4b30bcf712874317952491fd12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 74e117510296bd1b1435719a6c44f29bedc45cec27eb0bea506b4783e1f8598b
MD5 c604a4dee74013dd952cf95214ad7d78
BLAKE2b-256 d9f4db0c2c2b00ac5bc2ac577caae818781fe20819d7a98b1e91cf8a48f54b1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 8086b91c07d46e63dfffb1d67190ca73120182e2f6853437215b7c8021848ae1
MD5 a4dd143c1dba15542c22293af3a1c91c
BLAKE2b-256 800f3d69c57f410ef059c105cd657b7dfda6af17b92d8d0398a649c3a6f2d530

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspnego-0.1.1-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.48.2 CPython/3.8.5

File hashes

Hashes for pyspnego-0.1.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 79b8c24d35c5f5e013bc7745b17cd4d30c627297e802301c53333688b46fc36f
MD5 bbedb5d4698151a93356947590fcf631
BLAKE2b-256 c66355e2ad6bbb6915b2481074bf18b59477e448ab37c6d09f5260ef0e33883c

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