Skip to main content

Mocked-up LDAP connection library

Project description

Unit test status Coverage Status Documentation Status PyPI Python versions

dataflake.fakeldap

This package offers a mock python-ldap library that can be used for testing code relying on python-ldap without having to configure and populate a real directory server.

Starting with version 3.0 the library will behave just like python-ldap version 3.3 or higher:

  • distinguished names, relative distinguished names, attribute names and queries are expected to be native un-encoded string values.
  • attribute values are expected to be bytes values.

If you pass the wrong type of string, the library will raise a TypeError. See https://www.python-ldap.org/en/latest/bytes_mode.html for a short description of this behavior.

Since queries are un-encoded string values and attribute values passed in the query would never match bytes values in the data store, searches will always test against both unencoded and bytes values.

Documentation

Full documentation is available at https://dataflakefakeldap.readthedocs.io/

Bug tracker

A bug tracker is available at https://github.com/dataflake/dataflake.fakeldap/issues

Download files

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

Files for dataflake.fakeldap, version 3.0
Filename, size File type Python version Upload date Hashes
Filename, size dataflake.fakeldap-3.0-py2.py3-none-any.whl (27.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dataflake.fakeldap-3.0.tar.gz (25.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page