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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 2.7m Windows x86-64

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

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: pyspnego-0.1.0.tar.gz
  • Upload date:
  • Size: 85.5 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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40c539469c3a80823d992b8daa585b7220b022288a66204c3231d79b48553ce7
MD5 ab0ee792cf3e24980eac99430a439884
BLAKE2b-256 b2625b498182db6eefbf1f8c93738cfa458db577fca5b7aa1a3facb069bba0ba

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 95.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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e30162ae87ca0039543143c2a27abfd6efb034c9cad0bb2a4ba0c31a3a6ee5c5
MD5 f96f477a5ba0da4e7abc2debdd11849c
BLAKE2b-256 ad8d5b5015d518a8a2720007b861f6a9fc506c3a2f26907e8f0fdec9b7fec4a6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 336.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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3f2608ae5bbbca161f2a48151790a5ec8aed4d56eb921ac44b982e2f48352776
MD5 b6076b3c3d23962db5cad79053475aad
BLAKE2b-256 f8574a234cf7ccb881845bbd34e8c8c1edfca5fdfdb5d993688a352c564c7857

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 317.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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0504112f5c84dc23b70e94f64cded3e06e811b22246c7690b22771c75aa0b40c
MD5 70f99e44ca2ba226c4fa0194eb77eaed
BLAKE2b-256 a6c93f3d138b4e41194fb9495127089ea8e04cdcd13fa6d8e5419e6fe61612cf

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 333.1 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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 282c28d4cc14c807e3b0c2989b6f4f0b9cdf2305193eeed8a5074fc737427fe1
MD5 1b16fee470abda665d6b3900bdac72e4
BLAKE2b-256 1a994f7b4fa2289e4016c6d2f76a1c0c1054d5a3fc1c9eeb9c9edd29f89c00c9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 313.8 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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 9f6199d145bb08d50dbc36b45f3d629f7748ecfa26ea1aafd7c2f929c1654977
MD5 81d4b086cc004ece6ca6bb9d80004695
BLAKE2b-256 2e2f145bf1c1b6453483009068b7c5caf0a0421af0f67cc8074cfa9a8cee6ba7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 333.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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d39bddc8396548b1a3f90eadb42f43e8748190d54d20146dd10207819415d159
MD5 12382b418ec2f6fab31ef34468de0955
BLAKE2b-256 5fbd4c0b691127c1ce34f26a6af8957c227b6f633bab3c6af14de0b4de84b227

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 314.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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 d5c912a0181dbfd7e18970cda41562f83c46aa1d7a34e0750c2a1168dc870f65
MD5 7f23e3f5a3d9ee01cd121e3785b4163e
BLAKE2b-256 a0d4b0213788330639517cc341bf94efc51e01cf713f5652eb690b185e9dcdbe

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 331.4 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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 d1bdc6af21757cb53efc3546f557b5a0b721cf329698b185c4433fe5532a8805
MD5 50279c13f85ffa0eb14153b78f5d6dfb
BLAKE2b-256 a9456be703ad74d6eba00325f1cbd800703402dd519100ec37b8d7dc0069bba1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 312.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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 c55c06d1fe0bd250b01cd0b75862bbb69742eff1c1683a166f3cccda3a8500c5
MD5 09f64b0a33207c96d33c42ebdb4a04e4
BLAKE2b-256 d37d83c1a49caf024458695d85a6b911b4c913e66925755ce7da466242762be0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 321.4 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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 8fd9b6dc42530888e86a9b5cf843616020108da894c30d6d23a43ff152040649
MD5 362895323cf92b83501ae79383599e6e
BLAKE2b-256 57e8b8d10b8b1112f246151a852072cfe7bafc407c387423561875056a90fe3f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 306.5 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.48.0 CPython/3.8.3

File hashes

Hashes for pyspnego-0.1.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 9d920f953417db4f3151baed2c374690642128e4fcbc94f7f93ebf075f4c756b
MD5 6534fbc3c5fa129f5594b6502bde4055
BLAKE2b-256 59d77766e82b531465c45fa45704d05170131e88e382eda13c901520da396524

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