Change Log¶
v0.3.0 - October 15, 2017¶
- Don’t delete attribute when moving an entry to new subtree with unchanged rdn.
- Add context manager support to
MockLdap
. - Drop support for Python 2.6 and 3.3.
v0.2.5 - June 16, 2015 - passwd_s¶
- A simple implementation of passwd_s.
- Fixes for DN case-insensitive matching.
v0.2.4 - January 26, 2015 - SSHA fix¶
- Support SSHA passwords with salt of arbitrary length.
v0.2.3 - October 23, 2014 - Fix for Windows¶
- Don’t support {CRYPT} passwords if crypt can’t be imported.
v0.2.2 - July 21, 2014 - Password hashing¶
Add support for {CRYPT} and {SSHA} passwords.
Thanks to Dmitri Bogomolov.
v0.2.1 - May 13, 2014 - Fix for rename_s¶
- Raise ldap.ALREADY_EXISTS when renaming an object and the target already exists.
v0.2.0 - April 9, 2014 - Experimental Python 3 support¶
mockldap now provides experimental Python 3 support. Python 2.5 was dropped.
To sum up, mockldap works with Python 2.6, 2.7, 3.3 and 3.4.
Since python-ldap still isn’t making progress toward Python 3, if you’re using Python 3, you need to install a fork:
$ pip install git+https://github.com/rbarrois/python-ldap.git@py3
Thanks to Aymeric Augustin for making this happen.
v0.1.8 - March 31, 2014 - Fixes for modify_s¶
- A previous fix to modify_s was erroneous. section 4.6 of RFC 4511 states that modify operations will create new attributes and delete empty ones as necessary.
Warning
mockldap wil no longer raise ldap.UNDEFINED_TYPE. mockldap has no schema support, so it assumes that all attributes are valid.
v0.1.7 - March 7, 2014 - Filter string parser fix¶
- Filter strings with ‘&’, ‘|’, and ‘!’ in the assertion values should now be parsed correctly.
v0.1.6 - March 6, 2014 - Add whoami_s¶
- Add whoami_s() method.
v0.1.5 - February 19, 2014 - Fix to modify_s¶
- MOD_DELETE should not remove the key from the directory. Thanks to https://bitbucket.org/jlec.
v0.1.4 - September 20, 2013 - Miscellaneous fixes¶
- Raise
INVALID_DN_SYNTAX
for invalid DNs. - Raise
FILTER_ERROR
on filter string parse errors. - Include the full method call signature in
SeedRequired
exceptions.
v0.1.3 - September 18, 2013 - Python 2.5 support¶
mockldap is now compatible with Python 2.5.
Since python-ldap doesn’t seem to be making progress toward Python 3, there’s no need to drop Python 2.5 support here yet.
v0.1.2 - September 17, 2013 - Fix simple_bind_s exception¶
- simple_bind_s now raises
INVALID_CREDENTIALS
instead ofNO_SUCH_OBJECT
if the DN does not exist. This is consistent with the behavior of python-ldap.
v0.1.1 - September 8, 2013 - Setup fixes¶
Minor fixes for packaging, installation, and testing.
v0.1.0 - September 7, 2013 - Initial Release¶
Initial release.