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.

Project details


Download files

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

Source Distribution

dataflake.fakeldap-4.2.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

dataflake.fakeldap-4.2-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file dataflake.fakeldap-4.2.tar.gz.

File metadata

  • Download URL: dataflake.fakeldap-4.2.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for dataflake.fakeldap-4.2.tar.gz
Algorithm Hash digest
SHA256 80df5da7779f01492c604babc0b534649a7b24fe9f2bd4a67d10b0d3a5f61dc4
MD5 126151b9c2b1a122aabf5c3fcce7737a
BLAKE2b-256 5f765b1704bf3bce1b9459587b03fe13d2e64a378b1aa94ff9370758b45cddf6

See more details on using hashes here.

File details

Details for the file dataflake.fakeldap-4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dataflake.fakeldap-4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13c0cd6a48d80a0c73800d77bc05541ddb4767cfa146e0c34f3ec203825c4fcf
MD5 02839efa9d0f4b1713f3348c71c0394b
BLAKE2b-256 0c1c7d3af5d0e03175b5f98db85962d16443a34a6d4d2449649487bf752a00a7

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