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.3.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataflake_fakeldap-4.3-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file dataflake_fakeldap-4.3.tar.gz.

File metadata

  • Download URL: dataflake_fakeldap-4.3.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dataflake_fakeldap-4.3.tar.gz
Algorithm Hash digest
SHA256 0d513d194485fbf1b6e8632467c5b309f0c4336db27ca73d5e6cc13b674bef52
MD5 de6e2e8814550275eb772dcce5047d4c
BLAKE2b-256 d7cfb0062b4470d0770b9b781d0fa30ca9ae713fc5f9d146ada372151364de17

See more details on using hashes here.

File details

Details for the file dataflake_fakeldap-4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dataflake_fakeldap-4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4d6890ad95e4584674a546e218df57be1eb6ad7f42b305420be78474188ed6d
MD5 aa22e9690e91fc8c7672a64855edf9bc
BLAKE2b-256 e54632e60baea5c3c84f1c850028a03eaa5c338b8e1e6f491cfa342eddb105e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page