Metadata-Version: 2.1
Name: slapd
Version: 0.1.2
Summary: Controls a slapd process in a pythonic way
Home-page: https://slapd.readthedocs.io/en/latest/
License: MIT
Keywords: zodb,orm
Author: python-ldap team
Author-email: python-ldap@python.org
Maintainer: Éloi Rivard
Maintainer-email: eloi.rivard@aquilenet.fr
Requires-Python: >=3.6,<4
Classifier: Framework :: ZODB
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides-Extra: doc
Requires-Dist: recommonmark; extra == "doc"
Requires-Dist: sphinx-issues; extra == "doc"
Requires-Dist: sphinx-rtd-theme; extra == "doc"
Requires-Dist: sphinx; extra == "doc"
Project-URL: Documentation, https://slapd.readthedocs.io/en/latest/
Project-URL: Repository, https://gitlab.com/python-ldap/python-slapd
Description-Content-Type: text/markdown

# python-slapd [![Documentation Status](https://readthedocs.org/projects/slapd/badge/?version=latest)](https://slapd.readthedocs.io/en/latest/?badge=latest)
Controls your OpenLDAP process in a pythonic way.

```
pip install slapd
```

```python
>>> 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()
```

# 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:

```bash
sudo apt install --yes apparmor-utils
sudo aa-complain /usr/sbin/slapd
```

