python-slapd 
Controls your OpenLDAP process in a pythonic way.
pip install slapd
>>> import slapd
>>> process = slapd.Slapd()
>>> process.start()
>>> process.init_tree()
>>> process.ldapwhoami().stdout.decode("utf-8")
'dn:cn=manager,dc=slapd-test,dc=python-ldap,dc=org\n'
>>> process.stop()
Troubleshooting
On distributions like Ubuntu, apparmor may restrict slapd to access some files that python-slapd has generated. This situation can be solved by passing slapd in complain mode:
sudo apt install --yes apparmor-utils
sudo aa-complain /usr/sbin/slapd
Release files for slapd 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slapd-0.1.6.tar.gz | 21.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slapd-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.0 kB
Release files / slapd-0.1.6.tar.gz
| Download URL | slapd-0.1.6.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a54cb7507b52144c43ae57f0cbf0df487cb4d7704c2b2cfee328fe92adbf8564
|
|
BLAKE2b-256 checksum How to use checksums |
c0d7c56f7f8831943e484f6c3463e182cc16e3c4c0e2643597bf53e54bec82b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|
Release files / slapd-0.1.6-py3-none-any.whl
| Download URL | slapd-0.1.6-py3-none-any.whl |
|---|---|
| Size | 27.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
387d2c904c88c39318cc8a23575458199b78396924b15d2f6298701c1d5970ca
|
|
BLAKE2b-256 checksum How to use checksums |
a328bc5fc773780b31b0f65fed94b0d16a163ab7e98c0b8f8b30e80a04cd3595
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|