Controls a slapd process in a pythonic way
Project description
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
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
slapd-0.1.6.tar.gz
(21.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
slapd-0.1.6-py3-none-any.whl
(27.4 kB
view details)
File details
Details for the file slapd-0.1.6.tar.gz.
File metadata
- Download URL: slapd-0.1.6.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a54cb7507b52144c43ae57f0cbf0df487cb4d7704c2b2cfee328fe92adbf8564
|
|
| MD5 |
af7923c85c48df9d1687ab4721c33a31
|
|
| BLAKE2b-256 |
c0d7c56f7f8831943e484f6c3463e182cc16e3c4c0e2643597bf53e54bec82b5
|
File details
Details for the file slapd-0.1.6-py3-none-any.whl.
File metadata
- Download URL: slapd-0.1.6-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
387d2c904c88c39318cc8a23575458199b78396924b15d2f6298701c1d5970ca
|
|
| MD5 |
c6a710b0f5d2c314a317df9ee978c32c
|
|
| BLAKE2b-256 |
a328bc5fc773780b31b0f65fed94b0d16a163ab7e98c0b8f8b30e80a04cd3595
|