Skip to main content

Controls a slapd process in a pythonic way

Project description

python-slapd Documentation Status

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)

Uploaded Source

Built Distribution

slapd-0.1.1-py3-none-any.whl (21.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page