ppc64le/linux/: pyspnego-0.10.2 metadata and description
Windows Negotiate Authentication Client and Server
| author_email | Jordan Borean <[email protected]> |
| classifiers |
|
| description_content_type | text/markdown |
| keywords | windows,spnego,negotiate,ntlm,kerberos,sspi,gssapi,auth |
| license | MIT License Copyright (c) 2020 Jordan Borean, Red Hat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| metadata_version | 2.1 |
| project_urls |
|
| provides_extras | yaml |
| requires_dist |
|
| requires_python | >=3.8 |
| File | Tox results | History |
|---|---|---|
pyspnego-0.10.2-py3-none-any.whl
|
|
Python SPNEGO Library
Library to handle SPNEGO (Negotiate, NTLM, Kerberos) and CredSSP 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
- CPython 3.8+
- cryptography
- sspilib - Windows only
Optional Requirements
The following Python libraries can be installed to add extra features that do not come with the base package:
- python-gssapi and pykrb5 for Kerberos authentication on Linux
- ruamel.yaml for YAML output support on
pyspnego-parse
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
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.
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 implementation.
CredSSP Authentication
Since version 0.2.0, pyspnego can be used for CredSSP authentication. While this isn't part of the SPNEGO/Negotiate
protocol it uses common features and code like ASN.1 structures and even Negotiate auth as part of the CredSSP process.
Both initiate and accept usages are supported when specifying protocol='credssp' but there are no guarantees the
acceptor is free of any bugs so use with caution.
Backlog
- Add support for anonymous authentication
- See if
pywinrmwants to use this