Skip to main content

A pure-Python ORM-esque LDAP client.

Project description

https://travis-ci.org/ashafer01/laurelin.svg?branch=master

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.7, PyPy, and PyPy3.

  • Simplified filter syntax (optional, standard filter syntax is fully supported and used by default)

  • 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.

Dependent Info

Laurelin follows SemVer. When you add laurelin-ldap to your requirements, I strongly suggest using the compatible release operator with the major.minor that you use initially. For example:

% pip install laurelin-ldap
...
Successfully installed laurelin-ldap-1.5.0 ...
                                     ^^^

Since 1.5.0 was installed, add the following to your requirements.txt and/or install_requires list:

laurelin-ldap~=1.5

But of course use whatever version you actually installed. You’re also welcome to pip freeze, but patch and minor releases will always be compatible. Patch releases tend to contain important fixes, too. If you’re sure you don’t want new features coming in and only fixes, you can still use the compatible release operator like so (again subbing in your actual installed version):

laurelin-ldap~=1.5.0

Feel free to open a GitHub issue with any questions or concerns.

Public API Definition

  • Everything in laurelin.ldap.__all__ - import directly from laurelin.ldap whenever possible

  • laurelin.ldap.exceptions

  • laurelin.ldap.rfc*

  • laurelin.ldap.protoutils

  • laurelin.ldap.config

  • laurelin.extensions

Note that stability of any 3rd party extensions with names hard coded into the laurelin core code cannot be guaranteed. The stability guarantee applies only to built-in extensions shipped with laurelin-ldap in the laurelin.extensions package (There are no 3rd party extensions defined at this time).

If the user should venture into other modules outside of the declared public API above, I strongly suggest pinning your version. I also strongly advise against EVER calling a private function or method (with underscore prefix).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laurelin-ldap-2.0.1.tar.gz (89.5 kB view details)

Uploaded Source

Built Distribution

laurelin_ldap-2.0.1-py2.py3-none-any.whl (101.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file laurelin-ldap-2.0.1.tar.gz.

File metadata

  • Download URL: laurelin-ldap-2.0.1.tar.gz
  • Upload date:
  • Size: 89.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/32.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

File hashes

Hashes for laurelin-ldap-2.0.1.tar.gz
Algorithm Hash digest
SHA256 dcd64c21ac275d32431063b7509477e9bf0a12d65920b03831e8e1e34f1aab6a
MD5 79941a9154c154e3ae26fd7c2fd47f2f
BLAKE2b-256 7eadc499d1255eab9aa53a395c5ebb6430b0744d3b4915ce07c2bdf36ca6fb34

See more details on using hashes here.

File details

Details for the file laurelin_ldap-2.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: laurelin_ldap-2.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 101.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/32.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.1

File hashes

Hashes for laurelin_ldap-2.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c44697544b21e697866ad68dfac47242d2a66df2a6a9894fa94b6642ba9f9eab
MD5 3798d07fae670c4a805c92b76e8ce0c4
BLAKE2b-256 3005fd1bbec25189ede7d03b676b1bcae54be6e6f1303657eda5af52a2d25553

See more details on using hashes here.

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