Package: laurelin-ldap
View documentation onReadTheDocs. You might also like
to read theintroduction.pip installlaurelin-ldapor clone the repo to get started.Please star the repo onGitHubif 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 OverviewFully 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 passanyarguments 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 fileCustom 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 InfoLaurelin followsSemVer. When you addlaurelin-ldapto your requirements, I strongly
suggest using thecompatible release operatorwith
themajor.minorthat you use initially. For example:% pip install laurelin-ldap
...
Successfully installed laurelin-ldap-1.5.0 ...
                                     ^^^Since1.5.0was installed, add the following to yourrequirements.txtand/orinstall_requireslist:laurelin-ldap~=1.5But of course use whatever version you actually installed. You’re also welcome topip 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.0Feel free to open a GitHub issue with any questions or concerns.Public API DefinitionEverything in laurelin.ldap.__all__- import directlyfrom laurelin.ldapwhenever possiblelaurelin.ldap.exceptionslaurelin.ldap.rfc*laurelin.ldap.protoutilslaurelin.ldap.configBuilt-in extensions defined inlaurelin.extensionsare stable insofar as the interfaces they present via theirLaurelinExtension,LaurelinLDAPExtension, andLaurelinLDAPObjectExtensioninstances, control keywords and
response attributes, and schema element availability. Importing extensions directly is not recommended, and any other
objects in extension modules should not be considered stable.The stability of any 3rd party extensions with names hard coded into the laurelin source atlaurelin.ldap.extensible.base.Extensible.AVAILABLE_EXTENSIONSor any future location cannot be guaranteed. (There
are no 3rd party extensions defined at this time). To guarantee no 3rd party extensions are used, and thus a complete
stability assurance, setLDAP.DEFAULT_BUILT_IN_EXTENSIONS_ONLY = Trueor passbuilt_in_extensions_only=Trueto
yourLDAP()constructor.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).