A pure-Python ORM-esque LDAP client.
Project description
View documentation on ReadTheDocs. You might also like to read the introduction.
pip install laurelin-ldap or clone the repo to get started.
Please star the repo on GitHub if you like the project!
Named for one of the Two Trees of Valinor in Tolkien lore.
Laurelin, which means ‘Golden-song’ in the Quenya tongue, bore shining golden leaves, the Light from which mingled with the Silver Flowers of the Elder Tree to illuminate the land of the Valar.
Features Overview
Fully compliant with RFC 4510 and its children, as well as several other related standards.
Tested against CPython 2.7, 3.4, 3.5, 3.6, PyPy, and PyPy3.
Pythonic attributes input and presentation. It’s just a dictionary.
Exceedingly easy relative searching. All objects have a suite of search methods which will automatically pass the object’s DN as the search base. In many cases, you wont have to pass any arguments to search methods.
Similarly, all objects have a suite of modify methods which allow you to change attributes on already-queried objects without having to pass their DN again.
You never have to type the full absolute DN.
Intelligent modification will never send existing attribute values to the server, nor will it request deletion of attribute values that do not exist. This prevents many unnecessary server errors. Laurelin will go as far as to query the object for you before modifying it to ensure you don’t see pointless errors (if you want it to).
Full support for configuring laurelin and connecting to a server from a config file
Custom validation. You can define validators which check new objects and modify operations for correctness before sending them to the server. Since you control this code, this can be anything from a simple regex check against a particular attribute value, to a complex approval queue mechanism.
Highly extensible. New methods can easily and safely be bound to base classes.
Seamless integration of controls. Once defined, these are just new keyword arguments on particular methods, and additional attributes on the response object.
Includes Python implementations of standard schema elements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file laurelin-ldap-1.4.0.tar.gz
.
File metadata
- Download URL: laurelin-ldap-1.4.0.tar.gz
- Upload date:
- Size: 99.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a17f6aee0c929f204cf2d0451c89c98d3b1a486f07570206fca919c0bb6d14f |
|
MD5 | 9e0d5a630089495bf2cfe2839e33ce8f |
|
BLAKE2b-256 | 1420fb9650a051cede11426c1280cfed993f93cfcec742cdbad3ecb363dbebd7 |
File details
Details for the file laurelin_ldap-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: laurelin_ldap-1.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 118.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7453aa15b77829b14b4aeb40c070c697187bcc335764398bf0dc6ea5f1085c84 |
|
MD5 | 79d5fa1e6df4bc779241471c4a68f323 |
|
BLAKE2b-256 | 2d8ba2832518419a8123924fac24f3e00294eba8c8d0b14abf4cbc42a2db90b7 |