Python SSSD LDAP Auth
A Python package which supports deobfuscating LDAP passwords contained in (System Security Services Daemon) sssd.conf files.
Inspiration
- Michael Ludvig's sss_deobfuscate script.
- SSSD's /src/util/crypto/libcrypto/crypto_obfuscate.c source file.
Features
- Type Hints / Editor Completion
- Readable
- Fully Tested
- Python 3.6 - 3.10 Support
Install
$ pip install sssdldapauth
Usage
CLI
$ sssdldapauth deobfuscate <obfuscated_password>
<password>
Library
from sssdldapauth import deobfuscate
password = deobfuscate("<obfuscated_password>")
Development
Required Software
Refer to the links provided below to install these development dependencies:
Getting Started
Setup
$ <runtimes.txt xargs -n 1 pyenv install -s
$ direnv allow
$ pip install -r requirements/dev.txt
$ pre-commit install
$ pip install -e .
Tests
Run the test suite against the active python environment.
$ pytest
Run the test suite against the active python environment and watch the codebase for any changes.
$ ptw
Run the test suite against all supported python versions.
$ tox
Publishing
Create
-
Update the version number in
sssdldapauth/__init__.py. -
Add an entry in
HISTORY.md. -
Commit the changes, tag the commit, and push the tags:
$ git commit -am "v<major>.<minor>.<patch>" $ git tag v<major>.<minor>.<patch> $ git push origin main --tags
-
Convert the tag to a release in GitHub with the history entry as the description.
Build
$ python -m build
Upload
$ twine upload dist/*
Metadata
Release files for sssdldapauth 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sssdldapauth-0.0.2.tar.gz | 4.1 kB | Without provenance | Details for sssdldapauth-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sssdldapauth-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for sssdldapauth-0.0.2-py3-none-any.whl |
Total release size: 9.2 kB
Release files / sssdldapauth-0.0.2.tar.gz
| Download URL | sssdldapauth-0.0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ed8969aa256cf40880a6d73ca048f4bbcfbcbe4bc9ba5a6ea34352d561739ef
|
|
BLAKE2b-256 checksum How to use checksums |
ad8969b6e6bdf5fd2cfec4cbe5bdfa440e9ac3258855470030b71cd2cd65f957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / sssdldapauth-0.0.2-py3-none-any.whl
| Download URL | sssdldapauth-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
339d21a281e2dba387a32028ce884abfaab48c46dee577370b1b57297ca85859
|
|
BLAKE2b-256 checksum How to use checksums |
fa5b61cbb24eefa0f204a2c170e1bfaa00070c783cfacf7d884a79f6c768abfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Security for sssdldapauth 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.