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

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 2.7m Windows x86-64

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

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3.tar.gz
  • Upload date:
  • Size: 84.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.0rc3.tar.gz
Algorithm Hash digest
SHA256 1a70cc34fbbd71405a6df7c13a666b004188afe8c723e18c3dee7d9b814e7d29
MD5 184267115a4b53a25a817a7d93034cd7
BLAKE2b-256 377f7b35ceaa87f2fe5420616c475cd79cdfb73f52ce2051389b4c146c24878f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-py2.py3-none-any.whl
  • Upload date:
  • Size: 94.4 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.0rc3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9a6c492b77b2d5bf6ba21ad3412d8b25820baf79d4d9f31462664ea1ba140380
MD5 8d17dcab6a860634e64cb4e9a046f31d
BLAKE2b-256 f5484a293dbff36a2ba50f8b0702f07a07688f75337affbd103f83c71cc58079

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 335.2 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.0rc3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 32e042277249d719e2790069b93aec2238ea1f29c86dfe37b61155c2dd17f157
MD5 3d1fb454a3480c481c5a457fd1103e0b
BLAKE2b-256 199ce1f1adeaabbde3388b8a44cbe32d88b7dee0ca74df2b93dec27fffa5ae45

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp38-cp38-win32.whl
  • Upload date:
  • Size: 316.2 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.0rc3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 88bb2db543c27a19f9be5f8091a78466702121d0c879e5fa4634e8f76b19c182
MD5 5e12c49537e3abf379996f9922c59ed5
BLAKE2b-256 a750163554a1df845a139c95c3c4678975a5460d1b8abc665229b57911705f1d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 331.8 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.0rc3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 998f9858fdefe05beafe04c713ae3c644bbb66d4315930c70983d3e2781af5b9
MD5 541a556a92e3ebf0162bb26fe860bbaa
BLAKE2b-256 aa4718f6df237161cb30f3b3cd14d246047918a4ef1f44b18c8bb1d4c4102393

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 312.5 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.0rc3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 68442c09cf24278fa2036dfc6813d2d7bddeb90425525b0341718551d534ccac
MD5 9064ea7803e4e0280330c04543535205
BLAKE2b-256 011775b00506a63a315689f0ce7d302052965dd1ae3169435b49fb1ca2161407

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 331.9 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.0rc3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7353d0e1ee0b6370e2023b3c2077491e0208678290d4eb150e8c5ad0f181a469
MD5 c394501a54d8f153e1c48d295f727005
BLAKE2b-256 265dee627a932904fb3b77dc37ee248d7ae8634e2076d5d09abed6cd35ada1e4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 312.6 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.0rc3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 cbb601225682a93f7646b63ad1e0f18888d25de451d4df8492d11bb0ac1e9d67
MD5 375c2a229eeac2688969fc986e565807
BLAKE2b-256 a4b5649631678668235f31b94c08b03a5a870c27594eb77379cb848157bdde1b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 330.0 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.0rc3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 a9cfca641e314c024fbb093e58438f6cf476df45be44b5581cdb8f6116fbff8a
MD5 3cdcef414dd46705161c4012e8230323
BLAKE2b-256 3e929c2eb431a26239c06fafdb52e3cf4f55f80d2b52c801dc298a6b53cacf12

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 311.0 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.0rc3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 6776b12a461fee92f7603f025a57730348541e50dc6d6693a1ded1745dd69c2c
MD5 95dd3cd6baf80b98c5f490cc30c73042
BLAKE2b-256 9110c8fb5251ef480818fdafaa03f409a194ae6e68ee4ac7711c7755b8cc81ac

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 319.9 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.0rc3-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 7d56b3f4f592f6820c76d1ad8621cfd072da5fb1314df1bdbc1ed950e7366bed
MD5 4b56d0389a904d9d5330aa31e3d55920
BLAKE2b-256 3ad6872ee5fd5c915b5c1ac433ad8117604d1e8f93be1a2ce03e26e550e21ab1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyspnego-0.1.0rc3-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 305.0 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.0rc3-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 1d1426018398bf7a7d65596406039f3705de87ec591eb380263655111734109b
MD5 298abd459c9c5b2bf147cda5bd5ab078
BLAKE2b-256 679539151ea6638ea495f220746801287fcd36bbc2375734afe41168bfc17eac

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