Controls a slapd process in a pythonic way
Project description
python-slapd ![Documentation Status](https://pypi-camo.freetls.fastly.net/5ca51793aa6cbefee37ed0ec9e83a5948a0772dd/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f736c6170642f62616467652f3f76657273696f6e3d6c6174657374)
Controls your OpenLDAP process in a pythonic way.
pip install slapd
>>> import slapd
>>> process = slapd.Slapd()
>>> process.start()
>>> process.ldapwhoami().stdout.decode("utf-8")
'dn:cn=manager,dc=slapd-test,dc=python-ldap,dc=org\n'
>>> process.stop()
Troubleshouting
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.1.tar.gz
(19.8 kB
view hashes)
Built Distribution
slapd-0.1.1-py3-none-any.whl
(21.9 kB
view hashes)