Mocked-up LDAP connection library
Project description
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
Built Distribution
Hashes for dataflake.fakeldap-4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13c0cd6a48d80a0c73800d77bc05541ddb4767cfa146e0c34f3ec203825c4fcf |
|
MD5 | 02839efa9d0f4b1713f3348c71c0394b |
|
BLAKE2b-256 | 0c1c7d3af5d0e03175b5f98db85962d16443a34a6d4d2449649487bf752a00a7 |