Which ldap object mapper for python can you recommend?

ldap, orm, python

Solution

If I were you I would either use python-ldap or ldaptor. Python-ldap is a wrapper for OpenLDAP so you may have problems with using it on Windows unless you are able to build from source.

LDAPtor, is pure python so you avoid that problem. Also, there is a very well written, and graphical description of ldaptor on the website so you should be able to tell whether or not it will do the job you need, just by reading through this web page:

http://eagain.net/talks/ldaptor/

Problem

I have to synchronize two different LDAP servers with different schemas. To make my life easier I'm searching for an object mapper for python like SQLobject/SQLAlchemy, but for LDAP. I found the following packages via pypi and google that might provide such functionality: pumpkin 0.1.0-beta1: Pumpkin is LDAP ORM (without R) for python. afpy.ldap 0.3: This module provide an easy way to deal with ldap stuff in python. bda.ldap 1.3.1: LDAP convenience library. Python LDAP Object Mapper: Provides an ORM-like (Django, Storm, SQLAlchemy, et al.) layer for LDAP in Python. ldapdict 1.4: Python package for connecting to LDAP, returning results as dictionary like classes. Results are cached. Which of these packages could you recommend? Or should I better use something different?

Original source