# 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.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:
```bash
sudo apt install --yes apparmor-utils
sudo aa-complain /usr/sbin/slapd
```
Raw data
{
"_id": null,
"home_page": "https://slapd.readthedocs.io/en/latest/",
"name": "slapd",
"maintainer": "\u00c9loi Rivard",
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": "eloi.rivard@aquilenet.fr",
"keywords": "ldap, slapd",
"author": "python-ldap team",
"author_email": "python-ldap@python.org",
"download_url": "https://files.pythonhosted.org/packages/8a/11/1e09b5dfa0b3e0827c7490e5fd2d30ce9712963e0275eede2ed70739d731/slapd-0.1.5.tar.gz",
"platform": null,
"description": "# python-slapd [![Documentation Status](https://readthedocs.org/projects/slapd/badge/?version=latest)](https://slapd.readthedocs.io/en/latest/?badge=latest)\nControls your OpenLDAP process in a pythonic way.\n\n```\npip install slapd\n```\n\n```python\n>>> import slapd\n>>> process = slapd.Slapd()\n>>> process.start()\n>>> process.init_tree()\n>>> process.ldapwhoami().stdout.decode(\"utf-8\")\n'dn:cn=manager,dc=slapd-test,dc=python-ldap,dc=org\\n'\n>>> process.stop()\n```\n\n# Troubleshooting\n\nOn distributions like Ubuntu, apparmor may restrict *slapd* to access some files that\n*python-slapd* has generated. This situation can be solved by passing slapd in complain mode:\n\n```bash\nsudo apt install --yes apparmor-utils\nsudo aa-complain /usr/sbin/slapd\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Controls a slapd process in a pythonic way",
"version": "0.1.5",
"project_urls": {
"Documentation": "https://slapd.readthedocs.io/en/latest/",
"Homepage": "https://slapd.readthedocs.io/en/latest/",
"Repository": "https://gitlab.com/python-ldap/python-slapd"
},
"split_keywords": [
"ldap",
" slapd"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "458df0451d9d733de0ebe6ec4b461ea051374c4a53f161798deea3353222d151",
"md5": "5ff09214c425dd26e9029d6a7617d7ad",
"sha256": "b6aa9e75c6fb280e76877864a101564e3088e3ee211a74d11bedcfb6aec18923"
},
"downloads": -1,
"filename": "slapd-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5ff09214c425dd26e9029d6a7617d7ad",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 22124,
"upload_time": "2024-08-30T11:19:21",
"upload_time_iso_8601": "2024-08-30T11:19:21.410041Z",
"url": "https://files.pythonhosted.org/packages/45/8d/f0451d9d733de0ebe6ec4b461ea051374c4a53f161798deea3353222d151/slapd-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a111e09b5dfa0b3e0827c7490e5fd2d30ce9712963e0275eede2ed70739d731",
"md5": "00b1f96e44f84fd393d6122caff6ec4c",
"sha256": "ac64be31914808325f8b9200c7115e76e61b819434915400ce46099789b6b693"
},
"downloads": -1,
"filename": "slapd-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "00b1f96e44f84fd393d6122caff6ec4c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 19652,
"upload_time": "2024-08-30T11:19:22",
"upload_time_iso_8601": "2024-08-30T11:19:22.908899Z",
"url": "https://files.pythonhosted.org/packages/8a/11/1e09b5dfa0b3e0827c7490e5fd2d30ce9712963e0275eede2ed70739d731/slapd-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-30 11:19:22",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "python-ldap",
"gitlab_project": "python-slapd",
"lcname": "slapd"
}