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.5.tar.gz
(19.7 kB
view details)
Built Distribution
slapd-0.1.5-py3-none-any.whl
(22.1 kB
view details)
File details
Details for the file slapd-0.1.5.tar.gz
.
File metadata
- Download URL: slapd-0.1.5.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.10.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac64be31914808325f8b9200c7115e76e61b819434915400ce46099789b6b693 |
|
MD5 | 00b1f96e44f84fd393d6122caff6ec4c |
|
BLAKE2b-256 | 8a111e09b5dfa0b3e0827c7490e5fd2d30ce9712963e0275eede2ed70739d731 |
File details
Details for the file slapd-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: slapd-0.1.5-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.10.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6aa9e75c6fb280e76877864a101564e3088e3ee211a74d11bedcfb6aec18923 |
|
MD5 | 5ff09214c425dd26e9029d6a7617d7ad |
|
BLAKE2b-256 | 458df0451d9d733de0ebe6ec4b461ea051374c4a53f161798deea3353222d151 |